function GetCookie(sName)
{
var aCookie = document.cookie.split("; ");
for (var i=0; i < aCookie.length; i++)
{
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
return unescape(aCrumb[1]);
}
return null;
}
function SetCookie(sName, sValue)
{
date = new Date();
date.setHours(date.getHours()+1);
document.cookie = sName + "=" + escape(sValue) + "; expires=" + date.toGMTString();
}
{
var aCookie = document.cookie.split("; ");
for (var i=0; i < aCookie.length; i++)
{
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
return unescape(aCrumb[1]);
}
return null;
}
function SetCookie(sName, sValue)
{
date = new Date();
date.setHours(date.getHours()+1);
document.cookie = sName + "=" + escape(sValue) + "; expires=" + date.toGMTString();
}