// 重庆网站制作,重庆网站建设,重庆网页设计,网站制作公司 - 第一网络 
//http://www.01netcn.com
function $(obj){return document.getElementById(obj);}

function m(obj){
span=obj.getElementsByTagName('span')[0];
num=(span.innerHTML.split("href")).length-1;
obj.onmouseout=function(){span.style.display='none'}
span.style.width=num*90+2+'px';
span.style.display='block';
}

function caseBg(obj)
{
obj.style.backgroundColor="#d0e9f8";
obj.onmouseout=function(){obj.style.backgroundColor="";}
}

//查询域名
function FF(x,y)  {
   var xmlhttp;
   if (window.ActiveXObject) {
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }else if(window.XMLHttpRequest)  {
      xmlhttp=new XMLHttpRequest();
   }
   var ob=$(y);
   if (xmlhttp) {
        xmlhttp.onreadystatechange=function () {
		  if (xmlhttp.readyState==4)  {
             if(xmlhttp.status==200)  {
	            var yy=unescape(xmlhttp.responseText);
				     show(yy,y);
	         }else {alert("error");}
          }else {show('<a class="jiazai">正在查询...</a>',y);}
		}  
	    xmlhttp.open("get",x);
		xmlhttp.send(null);
    }		
}
function show(text,y){if($(y)){$(y).innerHTML=text;}}
function CheckEmail()
{
 var etext=domain.value;
 var elen=domain.value.length;
 var i,aa;
 if (elen>60){alert("请不要输入超过60个字符！");return false;  }
 if(etext==""){alert("请输入要查询的域名！");return false;}
 for (i=0;i<=elen-1;i++)
 {
  aa=etext.charAt(i)
  if ((aa==' ')){alert("域名不能有空格！");return false;}
  if ((aa=='.')){alert("不能直接输入带后缀的域名,只要输入想注册域名的名称即可查询！");return false;}
 }
 $("load").style.display="block";
 FF('whois.asp?domain='+domain.value+'&dotype='+dotype.value,'load')
 return true;
}



lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin14").style.top=parseInt(document.getElementById
("lovexin14").style.top)+percent+"px";
lastScrollY=lastScrollY+percent; 
}
suspendcode14="<table width=113 border=0 cellspacing=0 cellpadding=0 id='lovexin14' style='right:10px; POSITION:absolute; TOP:240px;'>"+"<tr><td height=140 valign=top class=online><a href='http://wpa.qq.com/msgrd?v=1&uin=1807888312&site=qq&menu=yes' target=_blank>在线咨询</a><br /><a href='http://wpa.qq.com/msgrd?v=1&uin=1807888312&site=qq&menu=yes' target=_blank>在线咨询</a><br /><a href='http://www.01netcn.com/contact.html' target=_blank>65321901</a>"+"</td></tr></table>";
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);
