﻿function getHTTPObject() {
  var XMLHttp = null;
  try {
    XMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch(e) {
    try {
XMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
    }
    catch(e) {
XMLHttp = null
    }
  }
  if (XMLHttp == null) {
    XMLHttp=new XMLHttpRequest();
  }
  return XMLHttp;
}

var http = getHTTPObject(); // We create the HTTP Object


