function sendData(param, page,place)
	 {
	  if(document.all)
	  {
   //Internet Explorer
	   var XhrObj = new ActiveXObject("Microsoft.XMLHTTP" ) ;
	  }//fin if
	  else
	  {
      //Mozilla
	   var XhrObj = new XMLHttpRequest();
	  }//fin else

	  //définition de l'endroit d'affichage:
	  var content = document.getElementById(place);
	  XhrObj.open("POST", page);
	  //Ok pour la page cible
	  XhrObj.onreadystatechange = function()
	  {
	   if (XhrObj.readyState == 4 && XhrObj.status == 200)
		content.innerHTML = XhrObj.responseText ;
	  }
		

		  XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		  XhrObj.send(param);
	 }//fin fonction SendData
	 

function detect(id)
{	
sendData('id_photo='+id,'photo.php','affiche');
}		