﻿// JScript File


function NormalFontSize() 
{
    var activestate=11;
    //alert(activestate);
    var p = document.getElementsByTagName('td');
    var q = document.getElementsByTagName('span');
    var r = document.getElementsByTagName('a');
    var s = document.getElementsByTagName('p');
    
   for(i=0;i<p.length;i++)
    {
    p.item(i).style.fontSize = "11px";
    }
   for(i=0;i<q.length;i++)
    {
    q.item(i).style.fontSize = "11px";
    }
   for(i=0;i<r.length;i++)
    {
    r.item(i).style.fontSize = "11px";
    }
    for(i=0;i<s.length;i++)
    {
    s.item(i).style.fontSize = "11px";
    
   }
  

   setcookie("FontActive",activestate,0);
   
 
}



function MediumFontSize() 
{

var activestate=12;
    //alert(activestate);
    var p = document.getElementsByTagName('td');
    var q = document.getElementsByTagName('span');
    var r = document.getElementsByTagName('a');
    var s = document.getElementsByTagName('p');
    
   for(i=0;i<p.length;i++)
    {
    p.item(i).style.fontSize = "12px";
    }
   for(i=0;i<q.length;i++)
    {
    q.item(i).style.fontSize = "12px";
    }
   for(i=0;i<r.length;i++)
    {
    r.item(i).style.fontSize = "12px";
    }
    for(i=0;i<s.length;i++)
    {
    s.item(i).style.fontSize = "12px";
    }
  setcookie("FontActive",activestate,0);
}


function LargeFontSize()
{

var activestate=13;
    //alert(activestate);
var p = document.getElementsByTagName('td');
    var q = document.getElementsByTagName('span');
    var r = document.getElementsByTagName('a');
    var s = document.getElementsByTagName('p');
    
   for(i=0;i<p.length;i++)
    {
    p.item(i).style.fontSize = "13px";
    }
   for(i=0;i<q.length;i++)
    {
    q.item(i).style.fontSize = "13px";
    }
   for(i=0;i<r.length;i++)
    {
    r.item(i).style.fontSize = "13px";
    }
    for(i=0;i<s.length;i++)
    {
    s.item(i).style.fontSize = "13px";
    }
setcookie("FontActive",activestate,0);
}




   function  setcookie(name,value,days) {
	if (days) {
		var date = new date();
		date.settime(date.gettime()+(days*24*60*60*1000));
		var expires = "; expires="+date.togmtstring();
	}

	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
	
       
}       
   

function ReadCookie() 
 {
//   alert("hiascasc");
    reads("FontActive");
 }
  
  
 function reads(cookieName)
{


 var theCookie=""+document.cookie;
 var ind=theCookie.indexOf(cookieName);
  if (ind==-1 || cookieName=="")
 {
   // alert("No cookie");
    return ""; 
  }
 var ind1=theCookie.indexOf(';',ind);
 if (ind1==-1) ind1=theCookie.length; //return value of the cookie length
 //return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
// return(theCookie);

    
   var Fsize=unescape(theCookie.substring(ind+cookieName.length+1,ind1));//Gets the Fontsize value in Fsize
   //alert(Fsize);
   if(Fsize==11)
   {
    NormalFontSize();
    }

    else if(Fsize==12)
    {
    MediumFontSize();
    }
    else if(Fsize==13)
   {
       LargeFontSize();
   }
}
