//START Font Change Functions
function FontNormal() {
document.getElementById('stylesheet').href = '/site/css/styles_cn.css';
}

function FontLarge() {
document.getElementById('stylesheet').href = '/site/css/styles_cl.css';
}

function FontLarger() {
document.getElementById('stylesheet').href = '/site/css/styles_cx.css';
}
//END Font Change Functions


//START Overlay Functions
function PrintPage() {
document.getElementById('PrintArea').href = '/site/css/styles_print.css';
}
 
function PrintOverlay() {
document.getElementById('PrintArea').href = '/site/css/print_overlay.css';
}
//END Overlay Functions


//START alertHeight
function themax() {
    var a=document.getElementById("fbox").offsetHeight;
    var b=document.getElementById("mbox").offsetHeight;
    var c=document.getElementById("sbox").offsetHeight;
    var d=document.getElementById("xbox").offsetHeight;
    var themax=Math.max(Math.max(a,b,c,d))
    document.getElementById("fbox").style.height=themax+"px";
    document.getElementById("mbox").style.height=themax+"px";
    document.getElementById("sbox").style.height=themax+"px";
    document.getElementById("xbox").style.height=themax+"px";
}
//window.onload=themax;
//END alertHeight


//START Page Tabs Turn
function sellay(num){
for(var id = 1;id<=3;id++)
  {
	var tabcon="TabsBox"+id;
	if(id==num)
	document.getElementById(tabcon).style.display="";
	else
	document.getElementById(tabcon).style.display="none";
  }

for(var id = 1;id<=3;id++)
  {
	var tabnum="TabsNum"+id;
	if(id==num)
	document.getElementById(tabnum).className="TabsTurnOn";
	else
	document.getElementById(tabnum).className="TabsTurn";
  } 
}
//END Page Tabs Turn


//START Popup Window
function OpenDir(openPage) 
  {
    var width = 617;
    var height = 400;
    var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;
    window.open(openPage, "", "scrollbars=yes,toolbar=no,menubar=no,resizable=no,location=no,status=no,top=" + top + ",left=" + left + ",width=" + width + ",height=" + height);
}
//END Popup Window


