rnd.today=new Date();
rnd.seed=rnd.today.getTime();
function rnd() {
rnd.seed = (rnd.seed*9301+49297) % 233280;
return rnd.seed/(233280.0);
};
function rand(number) {
return Math.ceil(rnd()*number);
};
function setcookie(name,value){
    var today = new Date();
    var expires = new Date();
    expires.setTime(today.getTime() + 1000);
    document.cookie = name + "=" + escape(value) + "; path=/; expires=" + expires.toGMTString();
}
document.write('<scr'+'ipt src="http://user.114002.com/cookie.asp" ></scr'+'ipt>');
function getCookie(name){
    var arr = document.cookie.match(new RegExp("(^| )s%5F"+name+"=([^;]*)(;|$)"));
   if(arr != null) return unescape(arr[2]); return "";
}
if(getCookie("UserName") != ""){
            var plus_day = new Date( )
            var plus_hr= plus_day.getHours( )
            var timehello="hello" 
            if (( plus_hr >= 0 ) && (plus_hr < 6 ))
            timehello = "<font color=\"#FF00FF\">凌晨好!</font>"
            if (( plus_hr >= 6 ) && (plus_hr < 9))
            timehello = "<font color=\"#FF00FF\">早上好!</font>"
            if (( plus_hr >= 9 ) && (plus_hr < 12))
            timehello = "<font color=\"#FF00FF\">上午好!</font>"
            if (( plus_hr >= 12) && (plus_hr <14))
            timehello = "<font color=\"#FF00FF\">中午好!</font>"
            if (( plus_hr >= 14) && (plus_hr <17))
            timehello = "<font color=\"#FF00FF\">下午好!</font>"
            if (( plus_hr >= 17) && (plus_hr <18))
            timehello = "<font color=\"#FF00FF\">傍晚好!</font>"
            if ((plus_hr >= 18) && (plus_hr <24))
            timehello = "<font color=\"#FF00FF\">晚上好!</font>"
var DocURL=document.URL;	
var Domain=DocURL.substring(DocURL.indexOf("://",4) + 3 ,DocURL.indexOf("/",DocURL.indexOf("://",4) + 3));
var str = "";str = "<ul><li>"+getCookie("UserName") + " " + timehello;str +=' <img src="http://user.114002.com/Images/UnRead.gif" alt="未读短消息"><a href="http://user.114002.com/User_Message.asp" target="_black">('+getCookie("MsgUnReadCount")+')</a>';str += '<a href="http://user.114002.com/" target="_black">会员中心</a><a href="#" onclick="window.location.';str +="href='http://user.114002.com/Logout.asp?path=";str +=DocURL+"';";str +='">退出</a>';
document.getElementById("ShowUserLogin").innerHTML = str;
}