// JavaScript Document
// validation du formulaire
	function validationForm(monform)
		{
			monform.nom.style.backgroundColor="#fff";
			monform.prenom.style.backgroundColor="#fff";
			monform.adresse.style.backgroundColor="#fff";
			monform.tel.style.backgroundColor="#fff";
			monform.email.style.backgroundColor="#fff";
			monform.lieu.style.backgroundColor="#fff";
			monform.date.style.backgroundColor="#fff";
			
			monform.divers.style.backgroundColor="#fff";
			
			var reg_email = /^[A-Za-z0-9\.\-_]+[@][A-Za-z0-9\-\.]+[\.][A-Za-z][A-Za-z][A-Za-z]?$/;
			
			if (monform.nom.value=='')
			{
				alert("Veuillez indiquer votre nom");
				monform.nom.style.backgroundColor="#fbde69";
				monform.nom.focus();
				return false;
			}
			/*if (monform.prenom.value=='')
			{
				alert("Veuillez indiquer votre prénom");
				monform.prenom.style.backgroundColor="#fbde69";
				monform.prenom.focus();
				return false;
			}
			if (monform.adresse.value=='')
			{
				alert("Veuillez indiquer votre adresse");
				monform.adresse.style.backgroundColor="#fbde69";
				monform.adresse.focus();
				return false;
			}
			if (monform.tel.value=='')
			{
				alert("Veuillez indiquer votre n° de téléphone");
				monform.tel.style.backgroundColor="#fbde69";
				monform.tel.focus();
				return false;
			}*/
			if (monform.email.value=='')
			{
				alert("Veuillez indiquer votre adresse email");
				monform.email.style.backgroundColor="#fbde69";
				monform.email.focus();
				return false;
			}
			if(!reg_email.test(monform.email.value))
			{
				alert("Le format de votre adresse email est invalide");
				monform.email.style.backgroundColor="#fbde69";
				monform.email.focus();
				return false;
			}
			
			return true;
		}
		
