// v1.1

function createXMLHttpRequest() {
  var http
  if (window.XMLHttpRequest && (!/MSIE [7-9]/i.test(navigator.appVersion) || /^http/i.test(location.href)))
    http = new XMLHttpRequest()
  else if (window.ActiveXObject)
    http = new ActiveXObject("Microsoft.XMLHTTP")
  else
    alert("ERROR: No XMLHttpRequest supported")

  return http
}

