
function qxjgcontent(iid){
	
var iid=iid;		  
  var xmlhttp;
	var str =null;
	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("qxjgcontent").innerHTML=str;	
			   }else{
			   alert("系统错误,如有疑问,请与管理员联系!");
			 }
          }
       }
	  xmlhttp.open("post","qxjgcontent.asp",true);
      xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
      xmlhttp.send("para="+iid); 
	 	 
}
function TongJi()
{
	var xmlhttp;
	var str =null;
	var sendstr="";
	var FromUrl="";
        FromUrl=document.location.href;
	     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;		
	}else{
	  alert("服务器请求失败，可能是您的网速太慢，请刷新重试!");
	      }
          }
       }
	  xmlhttp.open("post","/inc/session.asp",true);
      xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
 
      xmlhttp.send("FromUrl="+FromUrl); 
    
}

function panduan()
{
	var xmlhttp;
	var str =null;
	var sendstr="";
	var FromUrl="";
    FromUrl=document.location.href;
	if (FromUrl.indexOf("h8h8.com")==-1){
	  window.close();	
	}
	         
}
//panduan();
function YouQingLink(){
	  var xmlhttp;
		var str =null;
		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("YouQing").innerHTML=str;	
			   }else{
			   alert("系统错误,如有疑问,请与管理员联系!");
			 }
          }
       }
	  xmlhttp.open("post","../YouQing.asp",true);
      xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
      xmlhttp.send(sendstr); 
	 	 
}

function clearlog(){
	  var xmlhttp;
		var str =null;
		var sendstr="";
	     try{
             xmlhttp=new XMLHttpRequest();
           }
		   catch(e){
             xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
           }
		     xmlhttp.onreadystatechange=function(){
          if (xmlhttp.readyState==4){
              if (xmlhttp.status==200){		
			     document.getElementById("liulanlog").style.display="none";	
			   }else{
			   alert("系统错误,如有疑问,请与管理员联系!");
			 }
          }
       }
	  xmlhttp.open("post","../inc/clearlog.asp",true);
      xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
      xmlhttp.send(sendstr); 
	 	 
}
//浏览记录
function liulanlog1(){
	  var xmlhttp;
		var str =null;
		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("liulanlog1").innerHTML=str;	
			   }else{
			   alert("系统错误,如有疑问,请与管理员联系!");
			 }
          }
       }
	  xmlhttp.open("post","/product/liulanlog.asp",true);
      xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
      xmlhttp.send(sendstr); 
	 	 
}


function cartche(){
	  var xmlhttp;
		var str =null;
		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("cartche").innerHTML=str;	
			   }else{
			   alert("系统错误,如有疑问,请与管理员联系!");
			 }
          }
       }
	  xmlhttp.open("post","/inc/cartche.asp",true);
      xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
      xmlhttp.send(sendstr); 
	 	 
}
 
 function yijianjianyi(){
    var xmlhttp;
	var str =null;
	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("yijianjianyi").innerHTML=str;	
			   }else{
			   alert("意见建议加载错误,如有疑问,请与管理员联系!");
			 }
          }
       }
	
	  xmlhttp.open("post","/inc/yijianjianyi.asp",true);		
      xmlhttp.setRequestHeader('content-type','application/x-www-form-urlencoded');
     xmlhttp.send(sendStr); 	  
 }
 function checkemail(){
	   if (document.getElementById("username").value==""){
		   alert("联系人不能为空 ！");
		   document.getElementById("username").focus();
		   return false;
	   }
	   if (document.getElementById("content").value==""){
		   alert("请填写您的意见！");
		   document.getElementById("content").focus();
		   return false; 
	   }
	   if ( document.getElementById("email").value.length=="" ||document.getElementById("email").value.indexOf("@")==-1||document.getElementById("email").value.indexOf(".")==-1 ) {
			window.alert('请输入您正确的Email地址!!');
			document.getElementById("email").focus();
			return false;
		}
	 
 }
  
 
 
 
 


