function checkCookie()
{
	size = getCookie('fontsize')
	if (username!=null && username!="")
	{
		changeFontSize(size)
	}
}

function changeFontSize(size) 
{	 		
	var p = document.getElementsByTagName('p');
	 
	for(i=0; i<p.length; i++) 
	{
		if(p[i].style.fontSize) 
		{
			var s = parseInt(p[i].style.fontSize.replace("pt",""));
		} 
		else 
		{
			var s = 12
		}		  
		p[i].style.fontSize = size + "px"
	}
	
	var a = document.getElementsByTagName('a');
	 
	for(j=0; j<a.length; j++) 
	{
		if(a[i].style.fontSize) 
		{
			var t = parseInt(a[j].style.fontSize.replace("pt",""));
		} 
		else 
		{
			var t = 12;
		}		  
		a[j].style.fontSize = size + "px"
	}
	
	var td = document.getElementsByTagName('td');
	 
	for(k=0; k<td.length; k++) 
	{
		if(td[k].style.fontSize) 
		{
			var u = parseInt(td[k].style.fontSize.replace("pt",""));
		} 
		else 
		{
			var u = 12;
		}		  
		td[k].style.fontSize = size + "px"
	}
	
	if (size == 11)
	{
		smFont.src = "/images/12p_down.gif"
		medFont.src = "/images/13p_up.gif"
		lgFont.src = "/images/14p_up.gif"
	}
	
	else if (size == 12)
	{
		smFont.src = "/images/12p_up.gif"
		medFont.src = "/images/13p_down.gif"
		lgFont.src = "/images/14p_up.gif"
	}
	
	if (size == 13)
	{
		smFont.src = "/images/12p_up.gif"
		medFont.src = "/images/13p_up.gif"
		lgFont.src = "/images/14p_down.gif"
	}
	
	//var exdate=new Date()
	//exdate.setDate(exdate.getDate()+10)
	//document.cookie= "fontsize" + "=" + escape(size)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}