﻿ var ars;
 var gu="";
 var vdd="";
 var vss="";
function startRequest(url){
 var xmlHttp;
 ars=document.getElementById("st").value;
 ars=ars.replace(/(^\s*)|(\s*$)/g,"");
 ars=encodeURIComponent(ars);
 gu=document.getElementById("gu").value;
gu=gu.replace(/(^\s*)|(\s*$)/g,"");
 gu=encodeURIComponent(gu);
 if(gu!=""){
vdd="";	 
}
 if(ars!=""&&vdd!=ars){
 url=url+"="+ars+"&gu="+gu+"";
 if (window.ActiveXObject){ 
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else if (window.XMLHttpRequest) { 
  xmlHttp = new XMLHttpRequest();
 } 
 xmlHttp.onreadystatechange = function(){
    if (xmlHttp.readyState == 1) 
    {
        document.getElementById("tx").innerHTML = "<span class=infocolor>正在加载查询信息......</span>";
    }
    if (xmlHttp.readyState == 2) 
    {
        document.getElementById("tx").innerHTML = "<span class=infocolor>查询信息加载完毕..</span>";
    }
    if (xmlHttp.readyState == 3) 
    {
        document.getElementById("tx").innerHTML = "<span class=infocolor>数据获取中.....</span>";
    } 
    
  if(xmlHttp.readyState == 4){
window.setTimeout(function() {
          document.getElementById("tx").innerHTML = xmlHttp.responseText;
          },888);
  }
 }
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
}
vdd=ars;
}




