function valider(champs,confirmation){ // valide le formulaire
	
	tmp=champs.split(",");
	
	err=0
	for(i=0;i<tmp.length;i++){
		if(document.getElementById(tmp[i]).value==""){err++}
		}
	
	if(confirmation==1){
		if(document.getElementById("confirmation").checked==false){err++}
		}
		
	if(err==0){
		document.form1.action="send.php"
		document.form1.submit()
		}else{
			alert("Vous devez renseigner tous les champs obligatoires !")
			}
	
	}
function fixbug(){
	theObjects = document.getElementsByTagName("object"); 
	for(var i=0; i<theObjects.length;i++){theObjects[i].outerHTML = theObjects[i].outerHTML;}
}