function SetCookie(strName, strValue, intExpires)
{
	var strExpires = "";
	
	if(intExpires)
	{
		var dtmToday = new Date();
		dtmToday.setYear(dtmToday.getYear() + 1);
		strExpires = ";expires=" + dtmToday.toUTCString()
	}
	document.cookie = strName + "=" + escape(strValue) + strExpires + ";path=/;";
}



function GetCookie(strName)
{
	var arrCookie = document.cookie.split(";");
	var strCookie, strKey, strValue, intIndex
	for (var i=0;i<arrCookie.length;i++)
	{
		strCookie = arrCookie[i];
		if(strCookie.substring(0,1)==" ") strCookie = strCookie.substring(1, strCookie.length);
		intIndex = strCookie.indexOf("=");
		strKey = strCookie.substring(0, intIndex);
		if (strName==strKey) return unescape(strCookie.substring(intIndex+1, strCookie.length))
	}
	return null;
}