function verifLogin()
{
if (document.log.name.value.length == 0)
{
alert("Identifiant Obligatoire");
return false;
}
else if (document.log.passwd.value.length == 0)
{
alert('Mot de passe Obligatoire');
return false;
}
}


function verifContact()
{
var a,i,j,k,arobase;
i=0;
k=0;
a = document.contact.email.value;  
for(j=0; j<a.length-1;j++)
{
	if(a.charAt(j)=="@")
	{ i++; arobase=i; }
}
for(j=arobase; j<a.length-1;j++)
{
	if(a.charAt(j)==".")
		k++;
}

if (document.contact.nom.value.length == 0)
{
alert("Nom Obligatoire");
return false;
}
else if (document.contact.email.value.length == 0)
{
alert('Email Obligatoire');
return false;
}
else if(i!=1 || k<1)
{
alert("E-mail invalide");
return false;
}

else if (document.contact.message.value.length == 0)
{
alert('Message Obligatoire');
return false;
}
}
