function cntt_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#D19C58';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#6C6C6C';
				break;
			default:
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	}
}
function cntt_goTo( url ) {
	window.location.href = url;
}

function cntt_navBarClick( tableCellRef, navStyle, url) {
	cntt_navBar( tableCellRef, 0, navStyle );
	cntt_goTo( url );
}

function ThongTin(n){
	//window.open(n,'info','location=no,menubar=no,status=no,toolbar=no,resizable=1,title=no');
	var height = screen.availHeight;
    var width = screen.availWidth;        
    var winProps = "height="+height+",width="+width+",left=0,top=0,resizable=yes";        
    var theWin = window.open(n,"theWin",winProps);
    theWin.focus();
}
function VoteInfo(n){
	window.open(n,'info','width=580, height=300,top=100,left=100,scrollbars');
}
function EmailInfo(n){
	window.open(n,'Email','width=380, height=450,top=50,left=50,scrollbars');
}
function DoPopUp(URL,Name,X,Y,Center,Resizable,ScrollBars){
  if (Center == 'yes'){
    var PopUpX = (screen.width/2)-(parseInt(X)/2);
    var PopUpY = (screen.height/2)-(parseInt(Y)/2);
    var pos = ",left="+PopUpX+",top="+PopUpY;
  }else{
    var pos = "";
  }
  PopUpWindow = window.open(URL,Name,'scrollbars='+ScrollBars+',resizable='+Resizable+',width='+400+',height='+300);
}

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
