function verif_contact_form()
{
	alert('verif');
	if(document.getElementById("contact_objet").value == "")  {
		alert("Veuillez entrer un objet svp");
		document.contact_form.contact_objet.focus();
		return false;
	}else
return true
}


function verification_form_repart()
{
	if(document.getElementById("s_form_zone").value == 'none')  {
		alert("Veuillez choisir un type de zone svp");
		document.getElementById("s_form_zone").focus();
		return false;
	} else
	if(document.getElementById("s_form_commune").value == 'none') {
		alert("Veuillez choisir une commune svp");
		document.getElementById("s_form_commune").focus();
		return false;
	}
	else {return true}
}

function verif_mh_rep_form(){
	var exp_date = /^(\d\d)\/(\d\d)\/(\d\d\d\d)$/;
	if((document.getElementById("rad_clmh").checked == '')&& (document.getElementById("rad_ismh").checked == ''))  {
		alert("Veuillez choisir un type de classement svp");
		document.getElementById("rad_clmh").focus();

		return false;
	} else
	if(document.getElementById("rep_date").value == '')  {
		alert("Veuillez indiquer une date svp");
		document.getElementById("rep_date").focus();
		return false;
	}else
	if((document.getElementById("rep_date").value != '') && (!(exp_date.test(document.getElementById("rep_date").value)))) {
		alert ('Le format de la date doit etre jj/mm/aaaa');
		document.getElementById("rep_date").focus();
		return false;
	}else
	if(document.getElementById("txt_rep").value == '')  {
		alert("Veuillez remplir le champs descriptif svp");
		document.getElementById("txt_rep").focus();
		return false;
	}
	if((document.getElementById("rep_date").value != '') && (exp_date.test(document.getElementById("rep_date").value))) {
		myArray = exp_date.exec(document.getElementById("rep_date").value);
		if ((myArray[1] > 31) || (myArray[2] > 12) || (myArray[3] < 1900)){
		alert('La date n est pas correcte');
		document.getElementById("rep_date").focus();
		return false;
		}else {return true;}
	}
	else
	{return true;}
}

function verif_zppaup_rep_form(){
	var exp_date = /^(\d\d)\/(\d\d)\/(\d\d\d\d)$/;

	if(document.getElementById("rep_date1").value == '')  {
		alert("Veuillez indiquer une date svp");
		document.getElementById("rep_date1").focus();
		return false;
	}else
	if((document.getElementById("rep_date1").value != '') && (!(exp_date.test(document.getElementById("rep_date1").value)))) {
		alert ('Le format de la date doit etre jj/mm/aaaa');
		document.getElementById("rep_date1").focus();
		return false;
	}else
	if((document.getElementById("rep_date2").value != '') && (!(exp_date.test(document.getElementById("rep_date2").value)))) {
		alert ('Le format de la date doit etre jj/mm/aaaa');
		document.getElementById("rep_date2").focus();
		return false;
	}else

	if((document.getElementById("rep_date1").value != '') && (exp_date.test(document.getElementById("rep_date1").value))) {
		myArray = exp_date.exec(document.getElementById("rep_date1").value);

		if ((myArray[1] > 31) || (myArray[2] > 12) || (myArray[3] < 1901)){
			alert('La date n est pas correcte');
			document.getElementById("rep_date1").focus();
			return false;
		}
		else if((document.getElementById("rep_date2").value != '') && (exp_date.test(document.getElementById("rep_date2").value))) {
				myArray = exp_date.exec(document.getElementById("rep_date2").value);
				if ((myArray[1] > 31) || (myArray[2] > 12) || (myArray[3] < 1901)){
					alert('La date n est pas correcte');
					document.getElementById("rep_date2").focus();
					return false;
				}
				else {return true;}
			}
	}
	else {return true;}
}


function verif_actu_act_pdf_form(){
	var exp_date = /^(\d\d)\/(\d\d)\/(\d\d\d\d)$/;

	if(document.getElementById("actu_titre").value == '')  {
		alert("Veuillez indiquer un titre svp");
		document.getElementById("actu_titre").focus();
		return false;
	}else
	if(document.getElementById("actu_deb").value == '')  {
		alert("Veuillez indiquer une date pou le debut de l'&eacute;venement svp");
		document.getElementById("actu_deb").focus();
		return false;
	}else
	if((document.getElementById("actu_deb").value != '') && (!(exp_date.test(document.getElementById("actu_deb").value)))) {
		alert ('Le format de la date doit etre jj/mm/aaaa');
		document.getElementById("actu_deb").focus();
		return false;
	}else
	if((document.getElementById("actu_deb").value != '') && (exp_date.test(document.getElementById("actu_deb").value))) {
		myArray = exp_date.exec(document.getElementById("actu_deb").value);

		if ((myArray[1] > 31) || (myArray[2] > 12) || (myArray[3] < 1901)){
			alert('La date n est pas correcte');
			document.getElementById("actu_deb").focus();
			return false;
		}
		else {return true;}
	}
}





