var authCookie = WM_readCookie('NetChant::Auth::AuthCookie_NetChant');
var myLocation = self.location.pathname + "";
var inAuthArea = myLocation.match(/^\/auth\//);
var strLogHTML;
 
if (authCookie)
 {
strLogHTML  = '<form border="0" name="form1" method="post" action="/auth/NetChantLOGOUTPAGE">';
strLogHTML += '<input type=hidden name=destination value="/auth/NetChantLOGIN/">';
strLogHTML += 'You are currently logged in<br><br>&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; ';
strLogHTML += '<input align="right" name="Logout" type="submit" class="button" value="Logout" />';
strLogHTML += '</form>';

 }
else
 {
 
strLogHTML = '<form action="/auth/NetChantLOGIN" method="post">';
strLogHTML += '<INPUT TYPE="hidden" NAME="destination" VALUE="/page/auto/1211452695:26644:23029:78108115.html">';
strLogHTML += 'Username:<br><input type="text" name="credential_0" size="19">';
strLogHTML += '<br>Password:<br><input type="password" name="credential_1" size="19"><br>';
strLogHTML += '<div align="right" style="line-height: 0.5;"><br><input class="button" type="submit" name="submit" value="Login" /></div>';
strLogHTML += '</form>';
 
}
 
document.write(strLogHTML);

			
