document.write('');
document.write('');
var strCheckUrl="/dpo/check.asp";
var RefreshMinutes=0;
var CheckDuration=60000;
var bShow=false;
function CheckUserStatus(){
var u=Cookie.getCookie("TCGuser");
var b=false;
if(u.length>0 && escape(u)!='%00'){
b=true;
//var nf=Cookie.getCookie(u+"TCGmsgrefresh");
if(!bShow){
var msg=Cookie.getCookie("TCGmsg");
if(msg.length>0 && escape(msg)!='%00'){
//ck(u,msg);
bShow=true;
//Cookie.setCookie(u+"TCGmsgrefresh","no");
}
}
}
if(b){
var d=new Date();
var m=Math.floor(d.getTime()/60000);
var t=Cookie.getCookie("ActiveTime");
if(!isNaN(t)){
if((m-t)>RefreshMinutes){
RefreshUserStatus(strCheckUrl + "?u=" + escape(u) + '&t=' + Math.random());
Cookie.setCookie("ActiveTime",m.toString());
}
}else{
Cookie.setCookie("ActiveTime",m.toString());
}
}
}
function RefreshUserStatus(strUrl){
var http_request;
http_request=false;
if(window.XMLHttpRequest){
http_request=new XMLHttpRequest();
if(http_request.overrideMimeType){
http_request.overrideMimeType("text/xml");
}
}
else if(window.ActiveXObject){
try{
http_request=new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
http_request=new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){}
}
}
if(!http_request){
return false;
}
http_request.onreadystatechange=function(){;};
http_request.open("get",strUrl,true);
http_request.send(null);
}
setInterval("CheckUserStatus()",CheckDuration);