<SCRIPT LANGUAGE="VBSCRIPT">
function GetCookie(sName)
'msgbox document.cookie
DIM aCookie, i, aCrumb
GetCookie = ""
aCookie = split(document.cookie, "; ")
FOR i = LBOUND(aCookie) to UBOUND(aCookie)
aCrumb = split(aCookie(i), "=")
if sName = aCrumb(0) then
GetCookie = unescape(aCrumb(1))
EXIT FOR
end if
NEXT
end function
Sub SetCookie(sName, sValue)
document.cookie = sName & "=" & escape(sValue) & "; expires=Tue, 31 Dec 2002 23:59:59 GMT"
end Sub