// JavaScript Document
//renvoit un objet XMLHttpRequest instancié
function renvoiXHR() {

  var xhr=null;
  
  if (window.XMLHttpRequest) {
    xhr = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    var names = [
      "Msxml2.XMLHTTP.6.0",
      "Msxml2.XMLHTTP.3.0",
      "Msxml2.XMLHTTP",
      "Microsoft.XMLHTTP"
      ];
    for(var i in names) {
      try{ xhr = new ActiveXObject(names[i]); }
      catch(e){}
    }
  } else {
    window.alert("Votre navigateur ne prend pas en charge l'objet XMLHTTPRequest.");
  }
	
	return xhr;
}
