function ckn(obj){
var name = obj.value.replace(/^\s+|\s+$/,"");
if(name == "用户名"){
obj.value = "";
obj.style.color = "#000";
obj.style.border = "1px solid #9ECC00"
}
}
function cknb(obj){
var name = obj.value.replace(/^\s+|\s+$/,"");
if(name == ""){
obj.value = "用户名";
obj.style.color = "#8F9AA0";
obj.style.border = "1px solid #84A1BD"
}
}
function ckp(obj){
pwd = document.getElementById("password");
obj.style.display = "none";
pwd.style.display = "";
obj.style.border = "1px solid #84A1BD"
pwd.focus();
}
function ckpb(obj){
 c_pwd = document.getElementById("c_password");
 var str = obj.value.replace(/^\s+|\s+$/,"");
 if(str == "" && c_pwd){
 c_pwd.style.display = "";
 obj.style.display = "none";
obj.style.border = "1px solid #9ECC00"
 }
}
function h(obj,url){obj.style.behavior='url(#default#homepage)';obj.setHomePage(url);}
if (top.location != self.location) {top.location=self.location;}

/**********************广告点击计算*************************
功能：广告点击计算
参数：广告ID号，广告点击计算类型:1为只计算独立IP，2为计算全部
返回值：
***********************************************************/ 
	function AdClick(AdID,CliCouType)
	{
		var XMLHTTP=null;
		var Content="ID="+AdID+"&ClickType="+CliCouType+"&Ad_Type=4";
		try
		{
			if (window.XMLHttpRequest)
			{
				XMLHTTP=new XMLHttpRequest();
			}
			else
			{
				XMLHTTP=new ActiveXObject("Microsoft.XMLHTTP");
			}
			XMLHTTP.open("POST","System/toweldad/Dispose.asp",true);
			XMLHTTP.setRequestHeader("Content-Length",Content.length); 
			XMLHTTP.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
			XMLHTTP.send(Content);
			XMLHTTP=null;
		}
		catch (Exception)
		{
			
		}
		
	}
 

 

