// JavaScript Document

/*
This function is called when the user clicks on Large Text/Standard text 
button.Depending upon the vaule of size( ie large/small) 'sfont' querystring 
variable value is set & passed on to changefont.asp page along with 
current page address in 'thisurl' querystring variable.
Changefont asp sets the value of 'PageFont' session var.

If the browser in which this site is displayed is netscape then 
'document.location' is used to change URL value of current page
else 'cfont' is used which is the name of anchor tag of Large/Standard 
text button.

The browser check was done as Netscape could not recognize 'cfont'. 
*/

<!--
function changeSize(size)
{
	var browserName=navigator.appName; 
	var strUrl ;
	
	//alert(document.location.href);
	strUrl=document.location.href.split("#");
	strUrl=strUrl[0];
	if (browserName=="Netscape")
	{ 
		if(size == 'l')
		{
			
			var str1;
			str1 = "/ChangeFont.asp?thisurl=" + strUrl + "&sfont=Large";
			document.location.href = str1;
		}
		else if(size == 's')
		{
			var str1;
			str1 = "/ChangeFont.asp?thisurl=" + strUrl + "&sfont=small";
			document.location.href = str1;
		}		 
	}

	else 
	{ 
		if (browserName=="Microsoft Internet Explorer")
		{
			if(size == 'l')
			{
				
				cfont.href = "/ChangeFont.asp?thisurl=" + strUrl + "&sfont=Large";
				cfont.click();
			}
			else if(size == 's')
			{
				cfont.href = "/ChangeFont.asp?thisurl=" + strUrl + "&sfont=small";
				cfont.click();
			}
		}
		else
		{
			if(size == 'l')
			{
				cfont.href = "/ChangeFont.asp?thisurl=" + strUrl + "&sfont=Large";
				cfont.click();
			}
			else if(size == 's')
			{
				cfont.href = "/ChangeFont.asp?thisurl=" + strUrl + "&sfont=small";
				cfont.click();
			}
		}
	}

	
}
//-->