{
var End= document.cookie.indexOf(";",Offset);
if( End==-1 )
End= document.cookie.length;
// Return the portion of the cookie beginning with the offset // and ending with the ";".
return unescape( document.cookie.substring( Offset, End));
}
// Return the value of a cookie by name.
function GetCookie( Name )<
var Len= Name.length;
// Look at each substring that's the same length as the cookie name // for a match. If found, lookup the value and return it.
var i= 0;
while( i <document.cookie.length )(
var j= i + Len + 1;
if( document.cookie.substring( i, j)==(Name + "="))return GetValue( j );
i= document.cookie.indexOf( "", i )+ 1;
if( i==0 )break;
}return null;
// Create or change a cookie given it's name and value. The name and value
// are required, but the expiration date isn't. Note that if you don't specify
// an expiration date, the cookie only exists for the current session.
function SetCookie( Name, Value, Expire )