//Cookie related functions
//Read the content specified in the cookie
function getCookieVal (offset) {
var endstr = (";", offset);
if (endstr == -1) endstr = ;
return unescape((offset, endstr));
}
function getCookie (name) {
var arg = name + "=";
var alen = ;
var clen = ;
var i = 0;
while (i < clen) {
var j = i + alen;
if ((i, j) == arg) return getCookieVal (j);
i = (" ", i) + 1;
if (i == 0) break;
}
return null;
}
//Write browsing actions to cookies
function setCookie (name, value) {
var exp = new Date();
(()+3600000000);
= name + "=" + value + "; expires=" + ();
}