var authCookie = WM_readCookie('NetChant::Auth::AuthCookie_NetChant');
var myLocation = self.location.pathname + "";
var inAuthArea = myLocation.match(/^\/auth\//);
var strLogHTML;
 
if (authCookie == false || authCookie == 'error001')
 {
strLogHTML = '';

 }
else {
strLogHTML  = '<div id="logoutSection">';
strLogHTML += '<form border="0" name="form1" method="post" action="/auth/NetChantLOGOUTPAGE">';
strLogHTML += '<input type=hidden name=destination value="/page/aviation_safety_network.html">';
strLogHTML += '<img src="/persistent/templateimages/loggedin.jpg">You are currently logged in&nbsp;&nbsp;';
<!--strLogHTML += '<input name="Logout" type="submit" class="logoutbutton" value="Logout">';-->
strLogHTML += '</form>';
strLogHTML += '</div>';
 
}

document.write(strLogHTML);



			
