function $(){return document.getElementById?document.getElementById(arguments[0]):eval(arguments[0]);}
function trim(s) {return s.replace(/(^\s*)|(\s*$)/g,"");}
function XMLHttps(){
var ret=null;
try {ret=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try {ret=new ActiveXObject("Microsoft.XMLHTTP")}catch(ee){ret=null;}}
if(!ret&&typeof XMLHttpRequest !="undefined"){ret=new XMLHttpRequest();}
return ret;
}

function Msge(){
var xmlHttp=XMLHttps();
xmlHttp.open("GET","Message.php?Msg=Msg",true); 
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4 && xmlHttp.status==200){var Utb=xmlHttp.responseText;
if(Utb.split("|")){var M1=Utb.split("|")[0];var M2=Utb.split("|")[1];
if(M2=="Yes"){if($(M1).innerHTML==0){$(M1).innerHTML=1;doit("Message");}$("Login").innerHTML=0;}
if(M2=="NO"){if($(M1).innerHTML==1){$(M1).innerHTML=0;}$("Login").innerHTML=0;}
}
if(Utb=="NON"){$("Login").innerHTML=1;}
}}
xmlHttp.setRequestHeader("If-Modified-Since","0");
xmlHttp.send(null);
}

function loginbox(){}
var TXmask = "TX_new_Mask";
var TXdivID = "TX_new_Div";
function TXdiv(TXImg) {
	if ($(TXdivID)) document.removeChild($(TXdivID));
	if ($(TXmask)) document.removeChild($(TXmask));
	// ¼¤»îÍ¼²ã
	var TXnewDiv = document.createElement("div");
	TXnewDiv.id = TXdivID;
	TXnewDiv.style.position = "absolute";
	TXnewDiv.style.zIndex = "9999";
	TXnewDiv.style.textAlign = "center";
	TXnewDiv.style.width = "100%";
	TXnewDiv.style.height = "100%";
	TXnewDiv.style.top = (0+parseInt(document.documentElement.scrollTop))+"px";
	TXnewDiv.style.left = 0;
	var TXHtmlCode;	
	TXHtmlCode = "<table width='100%' height='"+document.documentElement.offsetHeight
	TXHtmlCode+= "' border='0' cellpadding='0' cellspacing='0' onclick='TXHideDiv();'><tr><td align='center' valign='middle'>";
	TXHtmlCode+= "<iframe frameborder='0' scrolling='no' src='"+TXImg+"' id='win' style='height:310px; width:484px;'></iframe>";
	TXHtmlCode+= "</td></tr></table>"
	TXnewDiv.innerHTML = TXHtmlCode ;
	document.body.appendChild(TXnewDiv);
	// ±³¾°Í¼²ã
	var TXnewMask = document.createElement("div");
		TXnewMask.id = TXmask;
		TXnewMask.style.position = "absolute";
		TXnewMask.style.zIndex = "1";
		TXnewMask.style.width = document.documentElement.scrollWidth + "px";
		TXnewMask.style.height = document.documentElement.scrollHeight + "px";
		TXnewMask.style.top = "0px";
		TXnewMask.style.left = "0px";
		TXnewMask.style.background = "#000";
		TXnewMask.style.filter = "alpha(opacity=60)";
		TXnewMask.style.opacity = "0.40";
		document.body.appendChild(TXnewMask); 
	}
function TXHideDiv() {document.body.removeChild($(TXdivID)); document.body.removeChild($(TXmask));}
function Log(){Msge();window.setTimeout("Log()",5000);}
function Message(){Log();if($("loginbox")){loginbox();}}
window.onload=Message;