function handleHttpResponse() {
//template function - actual function is passed to AjaxSendRequest
  if (http.readyState == 4) {
    if (http.status == 200) {
      result = http.responseText;
    }
  }
}

function AjaxSendRequest(http,url,qs,func,async) {
//  http.open("GET", url, true);
//  http.onreadystatechange = func;
//  http.send(null);
var vasync = true;
	if (async == undefined) {
		vasync = true;
	} else {
		vasync = async;
	} 
var dt = new Date();
  http.open("POST", url, vasync);
  http.onreadystatechange = func;
  http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  http.send(qs + "&ajaxdt=" + dt);
}

function getHTTPObject() {
var xmlhttp;
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
     try {
         xmlhttp = new XMLHttpRequest();
     } catch (e) {
         xmlhttp = false;
     }
  } else {
      if (window.ActiveXObject) { // IE
         try {
             xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
           try {
               xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
           } catch (e) {}
         }
      }
  }
  return xmlhttp;
}

//var http = getHTTPObject();

