if (myGetCookie("fontSize")){
	document.write("<style><!--");
	document.write("#main{font-size:",myGetCookie("fontSize"),"px}");
	document.write("--></style>");
}
function fontChange(size){
	mySetCookie("fontSize",size,31);
	brCheck("main").fontSize = size + "px";
}

function brCheck(myId){
	if (window.opera) myBr = document.getElementById(myId).style;
	else if (document.getElementById) myBr = document.getElementById(myId).style;
	else if (document.all) myBr = document.all[myId].style;
	else if (document.layers) myBr = document[myId];
	return myBr;
}

function mySetCookie(myCookie,myValue,myDay){
   myExp = new Date();
   myExp.setTime(myExp.getTime()+(myDay*24*60*60*1000));
   myItem = "@" + myCookie + "=" + escape(myValue) + ";";
   myExpires = "expires="+myExp.toGMTString();
   document.cookie =  myItem + myExpires;
}
function myGetCookie(myCookie){
   myCookie = "@" + myCookie + "=";
   myValue = null;
   myStr = document.cookie + ";" ;
   myOfst = myStr.indexOf(myCookie);
   if (myOfst != -1){
      myStart = myOfst + myCookie.length;
      myEnd   = myStr.indexOf(";" , myStart);
      myValue = unescape(myStr.substring(myStart,myEnd));
   }
   return myValue;
}