var xhr = null;

function open_url(url) {
	
	if (window.XMLHttpRequest) {
    xhr = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    try {
      xhr = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
      try {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
      } catch(e) {
        xhr = false;
      }
    }
  }
  
	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 = "<h3>La page n'est pas disponible.<br><br>Erreur : " + xhr.status + "</h3>";
		}
	}
}