function getXhr(){
	var xhr = null;
	if(window.XMLHttpRequest){	
		// FIREFOX
		xhr = new XMLHttpRequest();
	}
	else if(window.ActiveXObject){	
		// IE
		try {
                xhr = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                xhr = new ActiveXObject("Microsoft.XMLHTTP");
            }
	}
	else{
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		xhr = false;
	}
	return xhr;
}

function ouvrir(url) {
	var xhr_object = getXhr();
	xhr_object.open("GET", url, true);
	xhr_object.send(null);
}
