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) {
var dt = new Date();
  http.open("POST", url, true);
  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;
};

function getXmlDom(str)
{
  try //Internet Explorer
  {
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async="false";
    xmlDoc.loadXML(str);
    return xmlDoc;
  }
  catch(e)
  {
    parser=new DOMParser();
    xmlDoc=parser.parseFromString(str,"text/xml");
    return xmlDoc;
  }
}

//var http = getHTTPObject();
