﻿if (document.cookie.indexOf("WYSIGN=") > 0) {
    document.getElementById("userlogin").style.display = "none";
    document.getElementById("userloginwininfo").style.display = "";
    var clearCache = new Date().getTime();
    var pars = "par=" + clearCache;
    $.ajax({ type: "get", url: "/httphandler/NetsoftokUserOnLine.ashx", data: pars, success: function(msg) {        
        if (msg.split(',')[1] == "1") {
            $("#userloginwininfo").html("<label class='loginok'>" + msg.split(',')[0] + "，欢迎来到好客网  <a href='/myinformation/' onfocus='this.blur();'>会员中心</a>  <a href='#' onclick='Ns_Check_UserLogin_Out_U_ActionFun_T();return false;' onfocus='this.blur();'>退出</a></label><label>  </label><label> </label>");
        } else {
        $("#userloginwininfo").html("<label class='loginok'>" + msg.split(',')[0] + "，欢迎来到好客网  <a href='/myinformation/' onfocus='this.blur();'>会员中心</a>   <a href='#' onclick='Ns_Check_UserLogin_Out_U_ActionFun_T();return false;' onfocus='this.blur();'>退出</a></label><label>  </label><label> </label>");
        }
    }
    }); 
 }// <a href='/space/" + msg.split(',')[0] + "/index.html' onfocus='this.blur();' target=_blank>我的主页</a> 
