
function deleteSessionCookie(strName)
{var strValue=getSessionCookie(strName);if(null!=strValue)
{setSessionCookie(strName,"");document.cookie=strName+"=; expires=Fri, 31 Dec 1999 23:59:59 GMT;";}}
function setSessionCookie(strName,strValue)
{var curCookie=strName+"="+escape(strValue)+"; path=/; expires=";document.cookie=curCookie;}
function getSessionCookieVal(offset)
{var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)
{endstr=document.cookie.length;}
return unescape(document.cookie.substring(offset,endstr));}
function getSessionCookie(strName)
{var arg=strName+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen)
{var j=i+alen;if(document.cookie.substring(i,j)==arg)
{return getSessionCookieVal(j);}
i=document.cookie.indexOf(" ",i)+1;if(i==0)
{break;}}
return'';}
