function valider_photo(id_photos){
	
				if(window.XMLHttpRequest) // Firefox 
	   xhr_object = new XMLHttpRequest(); 
	else if(window.ActiveXObject) // Internet Explorer 
	   xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	else { // XMLHttpRequest non supporté par le navigateur 
	   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
	   return; 
	} 
	xhr_object.open("POST", "insert_php/req_valider_photo.php", true); 
	     
	   xhr_object.onreadystatechange = function() { 
	      if(xhr_object.readyState == 4) 
	         eval(xhr_object.responseText); 
	   }
	 
	   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=iso-8859-1");
	   var data = "id_photos="+id_photos; 
	 xhr_object.send(data);
}
function ouverture_intermediaire(nom_div){
	document.getElementById(nom_div).style.display="block";
}
