// JavaScript Document/* Create a new XMLHttpRequest object to talk to the Web server */
/*var xmlHttp = false;
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}*/

/*var xmlHttp = false;
if (typeof(XMLHttpRequest) === "undefined") {
  XMLHttpRequest = function() {
    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
      catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
      catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); }
      catch(e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); }
      catch(e) {}
    throw new Error("This browser does not support XMLHttpRequest.");
  };
}
xmlHttp = XMLHttpRequest;*/
var xmlHttp = null;
function createXMLHttpRequest(){
    if(typeof window.XMLHttpRequest != "undefined"){
        xmlHttp = new XMLHttpRequest();
    }
    if(typeof window.ActiveXObject != "undefined"){
        try {
            xmlHttp = new ActiveXObject("MSXML2.XMLHTTP.6.0");
        }
        catch(e){
            try {
                xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
            }
            catch(e){
                try {
                    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                }
                catch(e){
                    xmlHttp = null;
                }
            }
        }
    }
    return xmlHttp;
}
createXMLHttpRequest();

//alert(xmlHttp);
