var id = $G("id");

if (id != "") {
	var url = "ComeInWebSite.asp?id="+Number(id);
	startRequest(url,ComInWebSiteChk)
}
function ComInWebSiteChk(){
	if (xmlHttp.readyState == 1){
		loadBar(1);
		document.getElementById("loaderBox").style.height="120px";
		document.getElementById("loaderBox").innerHTML = '<div class="loaderBox_title"><span class="left">正在更新数据...</span><span class="right but_close"><a href="javascript:loadBar(0)"><img src="/images/but_close.gif" width="18" height="18" /></a></span></div><div class=loading></div><div class="clear"></div>';
		return false;
	}else if (xmlHttp.readyState == 4) {
		response = xmlHttp.responseText;
		if (response == "ok") {
			SetCookie("Cook_WebSiteID",id);
			window.location.reload("/");
		} 
		loadBar(0);
	}
}