function XmlHttpReq() {
	var myObject;
	if(typeof(XMLHttpRequest)!='undefined') {/*Firefox, Opera, Safari, IE7*/
			myObject = new XMLHttpRequest();
	}
	else {
		var activeXObjects = ['Msxml2.XMLHTTP.6.0','Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP'];
		for(var i=0; i<activeXObjects.length; i++) {
			try {
				myObject =  new ActiveXObject(activeXObjects[i]);
			}
			catch(err){}
			}
	}
	/*There is something with the way Firfox parse the alias "this" for the xmlhttprequest object.
	See also here: https://bugzilla.mozilla.org/show_bug.cgi?id=198595 */
	return myObject;
}