function envoieRequete(url,id,page)
{

	var xhr_object = null;
	var position = id;
	   if(window.XMLHttpRequest)  xhr_object = new XMLHttpRequest();
	  else
	    if (window.ActiveXObject)  xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	// On ouvre la requete vers la page désirée
	xhr_object.open("GET", url, true);
	xhr_object.onreadystatechange = function(){
	if ( xhr_object.readyState == 4 )
	{
		// j'affiche dans la DIV spécifiées le contenu retourné par le fichier
		document.getElementById(position).innerHTML = xhr_object.responseText;
	}
	}
	// dans le cas du get
	xhr_object.send(null);
	
	var winl = (screen.width - 200) / 2;
	var wint = (screen.height - 150) / 2;

 window.open(page,'popup','width=200,height=150,toolbar=false,scrollbars=false,directories=false,location=false,resizable=false,status=false,top='+wint+',left='+winl+'');	
	rebours(1);

}


function kill() {
	window.open("kill.html",'popup','width=400,height=200,toolbar=false,scrollbars=false');
}
function rebours(seconde) {
	setTimeout("kill()",seconde*1000);
}
