
cookieString=document.cookie
cookieName = "SESSION_ID" + "="
    
if (cookieString.length>=0) {
   
i=cookieString.indexOf(cookieName)

if (i!=-1) {
    i += cookieName.length
    j = cookieString.indexOf(",",i)
    
    if (j==-1) {j = cookieString.length}
    
    cookieValue = unescape(cookieString.substring(i,j))

if (cookieValue != "-1" || cookieValue == ""){
	document.write("<TABLE CELLPADDING='3' CELLSPACING='0' BORDER='0' width='100%'><TR><TD VALIGN='TOP' width='17'><a href=/cgi-bin/ncommerce3/Logoff?merchant_rn=31308269&url=/><IMG SRC='http://pics1.edeal.com/images/p2/wl/dell/img/content_arrow.gif' WIDTH='12' HEIGHT='17' BORDER='0' HSPACE='2'></a></td><TD VALIGN='TOP' width='142'><FONT FACE='arial,helvetica' SIZE='-1'><a href=/cgi-bin/ncommerce3/Logoff?merchant_rn=31308269&url=/>Sign Off</a></font></td></tr></table>");
}
else{
	var curURL=location.href;
	var returnURL=escape(curURL);
	var theLink="<a href='/cgi-bin/ncommerce3/LogonForm?merchant_rn=31308269&url=" + returnURL + "'>";
	document.write("<TABLE CELLPADDING='3' CELLSPACING='0' BORDER='0' width='100%'><TR><TD VALIGN='TOP' width='17'>" +theLink + "<IMG SRC='http://pics1.edeal.com/images/p2/wl/dell/img/content_arrow.gif' WIDTH='12' HEIGHT='17' BORDER='0' HSPACE='2'></a></td><TD VALIGN='TOP' width='142'><FONT FACE='arial,helvetica' SIZE='-1'>" +theLink + "Sign On</a></font></td></tr></table>");
} //logged on sesson not found		

} //found SESSION_ID
else {
	var curURL=location.href;
	var returnURL=escape(curURL);
	var theLink="<a href='/cgi-bin/ncommerce3/LogonForm?merchant_rn=31308269&url=" + returnURL + "'>";
	document.write("<TABLE CELLPADDING='3' CELLSPACING='0' BORDER='0' width='100%'><TR><TD VALIGN='TOP' width='17'>" +theLink + "<IMG SRC='http://pics1.edeal.com/images/p2/wl/dell/img/content_arrow.gif' WIDTH='12' HEIGHT='17' BORDER='0' HSPACE='2'></a></td><TD VALIGN='TOP' width='142'><FONT FACE='arial,helvetica' SIZE='-1'>" +theLink + "Sign On</a></font></td></tr></table>");
} //SESSID_ID not found

} //cookieString exists
