function CheckForm(theform)
{
	if (theform.nom.value=='')
	{
		alert('Veuillez indiquer votre nom');
		theform.nom.focus();
		return false;
	}
	if (theform.prenom.value=='')
	{
		alert('Veuillez indiquer votre prénom');
		theform.prenom.focus();
		return false;
	}
/*	if (theform.ent.value=='')
	{
		alert('Veuillez préciser le nom de votre entreprise ou organisation');
		theform.ent.focus();
		return false;
	}
*/	if (theform.email.value=='')
	{
		alert('Veuillez indiquer votre adresse email');
		theform.email.focus();
		return false;
	}
	var x = theform.email.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (theform.email.value!="" && !filter.test(x))
	{
		alert("L'adresse email est incorrecte");
		theform.email.focus();
		return false;
	}
	if (theform.message.value=='')
	{
		alert('Veuillez saisir votre message/question');
		theform.message.focus();
		return false;
	}
	
	if (theform.imagesecu.value=='')
	{
		alert('Veuillez saisir votre code de protection');
		theform.imagesecu.focus();
		return false;
	}
	return true;
}

function CheckForm_recommander(theform)
{
	if (theform.txt_nom.value=='')
	{
		alert('Veuillez indiquer votre nom');
		theform.txt_nom.focus();
		return false;
	}
	if (theform.email_1.value=='')
	{
		alert('Veuillez indiquer votre adresse email');
		theform.email_1.focus();
		return false;
	}
	var x = theform.email_1.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (theform.email_1.value!="" && !filter.test(x))
	{
		alert("Votre adresse email est incorrecte");
		theform.email_1.focus();
		return false;
	}
	if (theform.email_2.value=='')
	{
		alert('Veuillez indiquer l\'adresse email de votre contact');
		theform.email_2.focus();
		return false;
	}
	var x = theform.email_2.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (theform.email_2.value!="" && !filter.test(x))
	{
		alert("L'adresse email de votre contact est incorrecte");
		theform.email_2.focus();
		return false;
	}
	if (theform.txt_email.value=='')
	{
		alert('Veuillez saisir votre message');
		theform.txt_email.focus();
		return false;
	}
	return true;
}

function Check_frm_newsletter(theform)
{
	if (theform.email.value=='' || theform.email.value=='indiquez ici votre courriel')
	{
		alert('Veuillez indiquer votre adresse email');
		theform.email.focus();
		return false;
	}
	var x = theform.email.value;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (theform.email.value!="" && !filter.test(x))
	{
		alert("L'adresse email est incorrecte");
		theform.email.focus();
		return false;
	}
	return true;
}
