function validform()
{
	
//NOM
if (document.demande.nom.value=="")
	{
		alert ("Le champ NOM/PRENOM est obligatoire");
		document.demande.nom.focus();
return (false);
}


//ADRESSE
if (document.demande.adresse.value=="")
	{
		alert ("Le champ ADRESSE est obligatoire");
		document.demande.adresse.focus();
return (false);
}


//MESSAGE

if (document.demande.message.value=="")
{
	alert("Le champ MESSAGE est obligatoire");
	document.demande.message.focus();
return (false);
}


//EMAIL

if (document.demande.email.value=="")
{
	alert("Le champ EMAIL est obligatoire");
	document.demande.email.focus();
return (false);
}else

{
temoin=0;
verifstr=document.demande.email.value;
for(i=0;i<verifstr.length;i++)
{
car=verifstr.charAt(i);
if(car=="@")
{
	temoin=temoin+1;
}
}
if(temoin==0)
{
alert("L'email doit contenir au moins un arobase (@)");
document.demande.email.focus();
return(false);
}
if (temoin>1)
{
	alert("l'email ne peut contenir qu'un seul arobase (@)");
	document.demande.email.focus();
return(false);
}
}
if (document.demande.email.value.length >30)
{
	alert("Votre email est trop long. Recommencer svp");
	document.demande.email.focus();
return(false);
}



}
// JavaScript Document
