function setFontSize(size)
{ 
    if (size == "large")
    {
        document.getElementById("textSize").className = "large";
        document.cookie = "fontSize=large;path=/;";
    }
    
    if (size == "medium")
    {
        document.getElementById("textSize").className = "medium";
        document.cookie = "fontSize=medium;path=/;";
    }
    
    if (size == "small")
    {
        document.getElementById("textSize").className = "small";
        document.cookie = "fontSize=small;path=/;";
    }
}

function getFontSize()
{    
    var theSize = ReadCookie("fontSize");                
    setFontSize(theSize);     
}

function ReadCookie(cookieName)
{
 var theCookie=""+document.cookie;
 var ind=theCookie.indexOf(cookieName);
 if (ind==-1 || cookieName=="") return ""; 
 var ind1=theCookie.indexOf(';',ind);
 if (ind1==-1) ind1=theCookie.length; 
 return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
    

