function checkForm1() {
	whichForm = document.form1
	
	if(whichForm.nom.value.length==0 || 
		whichForm.prenom.value.length==0 || 
		whichForm.postcode.value.length==0 ||
		whichForm.email.value.length==0 ||
		whichForm.messageUtilisateur.value.length==0) {
		alert("Un champ obligatoire n'a pas été renseigné.")
		return	
	}
	
	if(isNaN(whichForm.postcode.value)) {
		alert("Le code postal n'est pas sous forme numérique.")
		return	
	}
		
	if(whichForm.birthDate.value.length>0 && !f_CheckDateJJMMAAAA(whichForm.birthDate.value)) {
		alert("La date de naissance saisie est incorrecte.")
		return			
	}	
	
	if(!f_IsValidEmail(whichForm.email.value)) {
		alert("L'e-mail saisi est incorrect.")
		return			
	}
	
	document.form1.submit()	
}

function checkForm2() {
	whichForm = document.form2
	
	if(whichForm.nom2.value.length==0 || 
		whichForm.prenom2.value.length==0 || 
		whichForm.postcode2.value.length==0 ||
		whichForm.email2.value.length==0) {
		alert("Un champ obligatoire n'a pas été renseigné.")
		return	
	}
	
	if(isNaN(whichForm.postcode2.value)) {
		alert("Le code postal n'est pas sous forme numérique.")
		return	
	}
	
	if(whichForm.birthDate2.value.length>0 && !f_CheckDateJJMMAAAA(whichForm.birthDate2.value)) {
		alert("La date de naissance saisie est incorrecte.")
		return			
	}
	
	if(!f_IsValidEmail(whichForm.email2.value)) {
		alert("L'e-mail saisi est incorrect.")
		return			
	}
	
	document.form2.submit()
}