var url = "index.php?ajax=1&page=" ;

function ajax(sNomPage,sNomDiv) {	
	
	var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false; }
        }
     }
 
    xhr.onreadystatechange  = function()
    { 
         if(xhr.readyState  == 4)
         {
              if(parseInt(xhr.status)  == 200)  {
                 document.getElementById('contenu').innerHTML=xhr.responseText; 
			  } else {
				  alert( "Error code " + xhr.status) ;
                 document.getElementById('contenu').innerHTML="Error code " + xhr.status;
			  }
         }
    }; 

   xhr.open( "GET", url + sNomPage,  true); 
   xhr.send(null); 
   
}