// Emulate the Gecko XMLHttpRequest object in IE so we can use the same XMLHttpRequest object referance for all browsers.
if (window.ActiveXObject && !window.XMLHttpRequest) {
  window.XMLHttpRequest = function() {
    var ex;
    var xList = new Array('Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP');
    for (i=0; i<xList.length; i++) {
      try { return new ActiveXObject(xList[i]); } catch(ex) { return false; }
    }
  }
}