var xhr = null;

function open_url(url) {
	
	if 	(window.XMLHttpRequest) {
		xhr = new XMLHttpRequest();
	}
	else {
		if (window.ActiveXObject) {
			try {
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e) { }
		}
	}
	xhr.onreadystatechange = function() { reponse(); }
	xhr.open("GET", url, true);
	xhr.send(null);

}

function reponse() {
	
	if (xhr.readyState == 4) {
		
		if (xhr.status == 200) {
			document.getElementById("content").innerHTML = xhr.responseText;
		}
		else {
			document.getElementById("content").innerHTML = "<big>Page non accessible... <br />Erreur: " + xhr.status + "</big>";
		}
	
	}
	
}
