//AFFICHER une page PHP ou HTML dans une div
function envoieRequete(url,id){
	document.getElementById(id).innerHTML='<div align="center" align="center">Chargement en cours...</div>';
	var xhr_object=null;
	if(window.XMLHttpRequest)
		xhr_object=new XMLHttpRequest();
	else
		if(window.ActiveXObject) xhr_object=new ActiveXObject("Microsoft.XMLHTTP");
		xhr_object.open("GET",url,true);
		xhr_object.onreadystatechange=function(){
			if(xhr_object.readyState==4){
				document.getElementById(id).innerHTML=xhr_object.responseText;
			}
		}
	xhr_object.send(null);
}

//EXECUTER une page PHP sans L'AFFICHER
function file(fichier){
	 if(window.XMLHttpRequest) // FIREFOX
		  xhr_object=new XMLHttpRequest();
	 else if(window.ActiveXObject) // IE
		  xhr_object=new ActiveXObject("Microsoft.XMLHTTP");
	 else
		  return(false);
	 xhr_object.open("GET", fichier, false);
	 xhr_object.send(null);
	 if(xhr_object.readyState== 4) return(xhr_object.responseText);
	 else return(false);
}
