// JavaScript Document
<!--//--><![CDATA[//><!--

function changeFontSize(element,step)
		{
			//step = parseInt(step,10);
			
			
			var el = document.getElementById(element);
			currentSize = parseFloat(el.style.fontSize);
			
			//alert(currentSize);
			if(currentSize==1.2)
			{
			el.style.fontSize = '1em';
			setCookie("fontsize",1,365);
			//alert(getCookie("fontsize"));
			}
			else
			{
			el.style.fontSize = '1.2em';
			setCookie("fontsize",1.2,365);
			//alert(getCookie("fontsize"));
			}
			return;
		}
function SetFirstFontSize(element)
{
		if(getCookie("fontsize")){
			var el = document.getElementById(element);
			currentSizeByCookie =getCookie("fontsize") ;
			if(currentSizeByCookie==1)
			{
			//el.style.fontSize = '1em';
			}
			else if(currentSizeByCookie==1.2)
			{
			//el.style.fontSize = '1.2em';
			}
			
		}	
}
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}


function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var WinPrint =
window.open('','','left=0,top=0,width=600,height=700,toolbar=0,scrollbars=1,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
//prtContent.innerHTML=strOldOne;
}
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

 function check_value(which_field,check_value)
    {
	formObj = document.getElementById("reg_form");
	if(formObj.elements[which_field].value==check_value){
	formObj.elements[which_field].value="";
   return;
	}
	}
function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
function flip_tab(id){
	


 if(document.getElementById(id))
 {
	
	if (document.getElementById(id).style.display == 'block')
	{ // DOM3 = IE5, NS6
		hidediv(id);
	}
	else
	{
		showdiv(id);
	}
 }
}


     
//--><!]]>

