function getPageEnd(){
	var xmlhttp;
	var str;
	var sendstr="";
	var url="/config/foot.asp";
	try{xmlhttp=new XMLHttpRequest();}
	catch(e){ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
	xmlhttp.onreadystatechange=function(){
		  if (xmlhttp.readyState==4){
			if (xmlhttp.status==200){	
			str=xmlhttp.responseText;
			document.getElementById("siteEND").innerHTML=str;
			}else{
			//alert("系统错误,如有疑问,请与管理员联系!"+xmlhttp.status);
			}
		  }
	}
	xmlhttp.open("get",url,true);
	xmlhttp.send(sendstr); 
}
	
  function userlogin(){
    var xmlhttp;
    var str;
    var sendstr="";
     try{
             xmlhttp=new XMLHttpRequest();
         }
	catch(e){
             xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
	xmlhttp.onreadystatechange=function(){
          if (xmlhttp.readyState==4){
              if (xmlhttp.status==200){		
			   str = xmlhttp.responseText;	
			   if(str!="")
			   {	
			     document.getElementById("userlogin").innerHTML=str;
			   }	
			   }else{
			   alert("系统错误,如有疑问,请与管理员联系!"+xmlhttp.status);
			 }
          }
       }
	xmlhttp.open("post","config/userlogin.asp",true);
	xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xmlhttp.send(sendstr); 
 }

   function userlogintop(){
    var xmlhttp;
    var str;
    var sendstr="";
     try{
             xmlhttp=new XMLHttpRequest();
         }
	catch(e){
             xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
	xmlhttp.onreadystatechange=function(){
          if (xmlhttp.readyState==4){
              if (xmlhttp.status==200){		
			   str = xmlhttp.responseText;		
			   document.getElementById("userlogintop").innerHTML=str;	
			   }else{
			   alert("系统错误,如有疑问,请与管理员联系!"+xmlhttp.status);
			 }
          }
       }
	xmlhttp.open("post","config/userlogintop.asp",true);
	xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xmlhttp.send(sendstr); 
 }



  function getNews(){
    var xmlhttp;
    var str;
    var sendstr="";
     try{
             xmlhttp=new XMLHttpRequest();
         }
	catch(e){
             xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
	xmlhttp.onreadystatechange=function(){
          if (xmlhttp.readyState==4){
              if (xmlhttp.status==200){		
			   str = xmlhttp.responseText;		
			   document.getElementById("news").innerHTML=str;	
			   }else{
			   alert("系统错误,如有疑问,请与管理员联系!"+xmlhttp.status);
			 }
          }
       }
	xmlhttp.open("get","zixun/news.html",true);
	//xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xmlhttp.send(sendstr); 
 }

//域名查询验证

function CheckIfEnglish( String )
{
	var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-";
	var i;
	var c;
	if(String.charAt( 0 )=='-')
	return false;
	if( String.charAt( String.length - 1 ) == '-' )
	return false;
	for( i = 0; i < String.length; i ++ )
	{
	c = String.charAt( i );
	if (Letters.indexOf( c ) < 0)
	return false;
	}
	return true;
}
function submitchecken() {

	var md=document.frmsearchInt.module.value;
	var obj = document.frmsearchInt.searchedDomainName;
	var content = obj.value;

	if(md=="domainsearch"||md=="domaincnsearch"||md=="mobisearch"){
		var reg = /^[^-][0-9a-zA-Z-]+[^-]$/;
		var result =  reg.exec(content);
		if (content.length<=0 || result==null)
		{
			alert("对不起!域名格式不正确!");
			obj.focus();
			return false;
		}
	}
	else{
		var reg = /^[^-][0-9a-zA-Z-]*[\u4E00-\u9FA5\uf900-\ufa2d]+[0-9a-zA-Z-]*[^-]$/;
		var result =  reg.exec(content);
		if (content.length<=0 || result==null)
		{
			alert("对不起，域名格式不正确");
			obj.focus();
			return false;
		}
	}
	document.frmsearchInt.searchType.value = "IntDomain";
	return true;
}
function submitchecken2() {

	var md=document.frmsearchInt.module.value;

	if (document.frmsearchInt.searchedDomainName.value == "") {
	alert("请输入您要查询的域名。");
	document.frmsearchInt.searchedDomainName.focus();
	return false;
	}
	if(md=="domainsearch"||md=="domaincnsearch"||md=="mobisearch"){
	if (!CheckIfEnglish(document.frmsearchInt.searchedDomainName.value )) {
	alert("在查询英文域名应输入英文不能输入中文及非法字符！");
	document.frmsearchInt.searchedDomainName.focus();
	return false;
	}
	}
	else{
	if (CheckIfEnglish(document.frmsearchInt.searchedDomainName.value )) {
	alert("在查询中文域名应至少包含一个中文字符！");
	document.frmsearchInt.searchedDomainName.focus();
	return false;
	}
	}

	document.frmsearchInt.searchType.value = "IntDomain";

	return true;
}

function setDmodule(dmtype){
	var md = eval(document.frmsearchInt.module);
	switch(dmtype){
		case 1:
			md.value="domainsearch";
			break;
		case 2:
			md.value="domaincnsearch";
			break;
		case 3:
			md.value="chinesesearch";
			break;
		case 4:
			md.value="interchinesesearch";
			break;
		case 5:
			md.value="mobisearch";
			document.frmsearchInt.mobi.value="yes";
			break;
		default:
			alert("some error occured .");
	}
}


//快速通道跳转

function MM_jumpMenu(){
	var href=document.all.menu1.value;
	if(href!="")
	window.top.location=href;
}


//广告

// MENU DROP BAR

 var h;
 var w;
 var l;
 var t;
 var topMar = 3;
 var leftMar = -10;
 var space = 2;
 var isvisible;
 var MENU_SHADOW_COLOR='#999999';
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

//function HideMenu() 
//{
// var mX;
// var mY;
// var vDiv;
// var mDiv;
//	if (isvisible == true)
//{
//		vDiv = document.all("menuDiv");
//		mX = window.event.clientX + document.body.scrollLeft;
//		mY = window.event.clientY + document.body.scrollTop;
//		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
//			vDiv.style.visibility = "hidden";
//			isvisible = false;
//		}
//}
//}
//document.write("<div id=menuDiv style='Z-INDEX: 2; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #FFFFFF;'></div>")
//function ShowMenu(vMnuCode,tWidth) {
//	vSrc = window.event.srcElement;
//	vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' bgColor='#EEEEDD' onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=tablebody1>" + vMnuCode + "</td></tr></table>";
//
//	h = vSrc.offsetHeight;
//	w = vSrc.offsetWidth;
//	l = vSrc.offsetLeft + leftMar+4;
//	t = vSrc.offsetTop + topMar + h + space-2;
//	vParent = vSrc.offsetParent;
//	while (vParent.tagName.toUpperCase() != "BODY")
//	{
//		l += vParent.offsetLeft;
//		t += vParent.offsetTop;
//		vParent = vParent.offsetParent;
//	}
//
//	menuDiv.innerHTML = vMnuCode;
//	menuDiv.style.top = t;
//	menuDiv.style.left = l;
//	menuDiv.style.visibility = "visible";
//	isvisible = true;
//    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
//}
//
//function makeRectangularDropShadow(el, color, size)
//{
//	var i;
//	for (i=size; i>0; i--)
//	{
//		var rect = document.createElement('div');
//		var rs = rect.style
//		rs.position = 'absolute';
//		rs.left = (el.style.posLeft + i) + 'px';
//		rs.top = (el.style.posTop + i) + 'px';
//		rs.width = el.offsetWidth + 'px';
//		rs.height = el.offsetHeight + 'px';
//		rs.zIndex = el.style.zIndex - i;
//		rs.backgroundColor = color;
//		var opacity = 1 - i / (i + 1);
//		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
//		el.insertAdjacentElement('afterEnd', rect);
//		global.fo_shadows[global.fo_shadows.length] = rect;
//	}
//}
//var idc= '&nbsp;<a style=font-size:9pt;line-height:14pt; href="/idc/shuanghe.asp">主机租用<font color="#000000"></font></a>&nbsp;&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href="/idc/wangluoanquan.asp">网络安全</a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href="/idc/zengzhi.asp">增值服务<font color="#000000"></font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href="/sitebuilt/ihosting.asp">主机系统<font color="#000000"></font></a>&nbsp;'
//
//var zzjz= '&nbsp;<a style=font-size:9pt;line-height:14pt; href="/zzjz/">自助建站</a>&nbsp;&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href="/sitebuilt/">网站建设</a>&nbsp;&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href="http://www.bizxun.com" target="_blank">O&nbsp;A&nbsp;软件</a>&nbsp;'
//
//var mail= '&nbsp;<a style=font-size:9pt;line-height:14pt; href="/mail/">企业邮箱</a>&nbsp;&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href="/tuiguang/">网站推广</a>&nbsp;'
//
//
//// DUI LIAN below
//function winload()
//{
//duilian2.style.top=100;
//duilian2.style.left=5;
//duilian3.style.top=100;
//duilian3.style.right=5;
//duilian5.style.top=399;
//duilian5.style.left=5;
//duilian4.style.top=450;
//duilian4.style.left=5;
//duilianbiz.style.top=450;
//duilianbiz.style.right=5;
//
//}
//{
//document.write("<div id=duilian2 style='position: absolute;visibility:visible;z-index:1;background:white'><a href=/hezuo/  target=_blank><img src='/images/leftad.gif' quality=high WIDTH=100 HEIGHT=300 border=0 TYPE='application/x-shockwave-flash' id=d1 ></img></a><BR></div>"
//+"<div id=duilian3 style='position: absolute;visibility:visible;z-index:1;background:white'><a href=/idc/tuoguandianxin.asp target=_blank><img src='/images/adright3.gif' quality=high WIDTH=100 HEIGHT=300 border=0 TYPE='application/x-shockwave-flash' id=d2 ></a></img><BR></div>"
//+"<div id=duilian4 style='position: absolute;visibility:visible;z-index:1;background:white'><a href=/idc/tejia.asp   target=_blank><img src='/images/idc20071116.gif' quality=high WIDTH=100 HEIGHT=100 border=0 TYPE='application/x-shockwave-flash' id=d3 title='特价优惠服务器'></img></a><BR></div>"
//+"<div id=duilianbiz style='position: absolute;visibility:visible;z-index:1;background:white'><a href=/aboutus/post/90.html   target=_blank><img src='/images/biz.gif' quality=high WIDTH=100 HEIGHT=100 border=0 TYPE='application/x-shockwave-flash' id=biz title='购买共享型号空间送SQL数据库'></img></a><BR></div>"
//+"<div id=duilian5 style='position: absolute;visibility:visible;z-index:1;background:white'> <img src='/images/close.gif' quality=high WIDTH=11 HEIGHT=11 border=0 TYPE='application/x-shockwave-flash' id=d5  alt ='关闭' onclick='javascript:window.guanbi()'></img><BR></div>");
//}
//winload()
////}
//
//
//
//
//function guanbi()
//{
//duilian2.style.visibility="hidden";
//duilian3.style.visibility="hidden";
//duilian4.style.visibility="hidden";
//duilian5.style.visibility="hidden";
//duilianbiz.style.visibility="hidden";
//}
