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="/index.html">';
strLogHTML += '<p>You are currently logged in</p> ';
strLogHTML += '<div class="submitWrap"><input name="Logout" type="image" src="/persistent/templateimages/prac_logout_button.jpg" class="button" value="Logout" /></div>';
strLogHTML += '</form>';

 }
else
 {
 
strLogHTML = '<form action="/auth/NetChantLOGIN" method="post">';
strLogHTML += '<INPUT TYPE="hidden" NAME="destination" VALUE="/index.html">';
strLogHTML += '<p><label>Username:<br><input type="text" name="credential_0" size="23"></label></p>';
strLogHTML += '<p><label>Password:<br><input type="password" name="credential_1" size="23"></label></p>';
strLogHTML += '<div class="submitWrap"><input class="button" type="image" src="/persistent/templateimages/prac_login_button.jpg" name="submit" value="Login" /><p><a href="/page/auto/1216614318:20048:15771:79585185.html">Register for a Login +</a></p></div>';
strLogHTML += '</form>';
 
}
 
document.write(strLogHTML);

			
