var createXHRObject = function() {
  var temp_XHR = null;
  try {
    temp_XHR = new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch (e) {
    try {
      temp_XHR = new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch (e) {
      try{
        temp_XHR = new XMLHttpRequest();
      }
      catch (e) {
        temp_XHR = null;
      }
    }
  }
  return temp_XHR;
}

