function setCookie(theName,theValue,theDay)
{
	if((theName!=null) && (theValue!=null))
	{
		expDay="Wed, 01 Jan 2020 23:59:59 GMT";
		
		if(theDay!=null)
		{
			theDay=eval(theDay);
			setDay=new Date();
			setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24));
			expDay=setDay.toGMTString();
		}
		document.cookie=theName+"="+escape(theValue)+";expires="+expDay;
		return true;
	}
	return false;
}
function getCookie(theName)
{
	theName+="=";
	theCookie=document.cookie+";";
	start=theCookie.indexOf(theName);
	if(start != -1)
	{
		end=theCookie.indexOf(";",start);
		return unescape(theCookie.substring(start+theName.length,end));		
	}
	return false;
}// JavaScript Document
