function createXMLHTTP(){
	var Ajax;
	try{
		Ajax = new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch(e){
		try{
			Ajax = new ActiveXObject("Msxml2.XMLHTTP");
			alert(Ajax);
		}
		catch(ex){
			try{
				Ajax = new XMLHttpRequest();
			}
			catch(exc){
				alert("Esse browser não tem recursos para uso do Ajax");
				Ajax = null;
			}
		}
		return Ajax;
	}

	var arrSignatures = ["MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"];

	for(var i=0;i<arrSignatures.length;i++){
		try{
			var oRequest = new ActiveXObject(arrSignatures[i]);
			return oRequest;
		}
		catch (oError){
		}
	}

	throw new Error("MSXML não está instalado no seu sistema.");
}
