var allcookies = document.cookie;
var urlname=document.URL
urlname = urlname.replace(/http:\/\//,"");
urlname = urlname.replace(/www.abqsportslive.com/,"www.abqjournal.com/sports/live");
var cookie=allcookies.lastIndexOf("AUTH=TOPE")
var killit=("<a href=\"javascript:(function(){C=document.cookie.split(%22; %22);for(d=%22.%22+location.host;d;d=(%22%22+d).substr(1).match(/\..*$/))for(sl=0;sl<2;++sl)for(p=%22/%22+location.pathname;p;p=p.substring(0,p.lastIndexOf('/')))for(i in C)if(c=C[i]){document.cookie=c+%22; domain=%22+d.slice(sl)+%22; path=%22+p.slice(1)+%22/%22+%22; expires=%22+new Date((new Date).getTime()-1e11).toGMTString()} location.reload()})()\"><font color=white>Log out</font></a>")
if (cookie > 0) {
        document.write(killit)
}
else {
document.write("<a href=http://www.abqjournal.com/cgi-bin/decision.pl?attempted="+urlname+"><font color=white -2>Login</a></font>")
}
