var xmlHttp;

function createXMLHttpRequest() {
   if (window.ActiveXObject) { // IE浏览器
   try {
    xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	//window.alert("创建Msxml2.XMLHTTP对象实例.");
   } catch (e) {
    try {
     xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	 //window.alert("创建Microsoft.XMLHTTP对象实例.");
    } catch (e) {}
   }
  }
  if (!xmlHttp) { // 异常，创建对象实例失败
   window.alert("System can’t create the XMLHttpRequest object.");
   return false;
  }
}

function dosearchget(url,Implementationevent) {
    createXMLHttpRequest();
	//alert(url);
	url = url + "&timeStamp=" + new Date().getTime();
    xmlHttp.open("GET", url, true);
    xmlHttp.onreadystatechange = Implementationevent;
    xmlHttp.send(null);
}

function dosearchpost(url,queryString,Implementationevent) {
	createXMLHttpRequest();
	url = url + "&timeStamp=" + new Date().getTime();
    xmlHttp.open("POST", url, true);
    xmlHttp.onreadystatechange = Implementationevent;
    xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");    
    xmlHttp.send(queryString);
}
