function frverif_form(theForm,lg,type)
	{

			if (theForm.nom.value=="")
					{
					if (lg=="en") { var txt="You forgot to indicate your name."; }
					else  { var txt="Vous avez oublié d'indiquer votre nom."; }
					alert(txt);
					theForm.nom.focus();
					return false;
					}
					
			if (theForm.prenom.value=="")
					{
					if (lg=="en") { var txt="You forgot to indicate your firstname."; }
					else  { var txt="Vous avez oublié d'indiquer votre prénom."; }
					alert(txt);
					theForm.prenom.focus();
					return false;
					}
					
			if (theForm.mail.value=="")
				{
				if (lg=="en") { var txt="You forgot to indicate your e-mail."; }
				else  { var txt="Vous avez oublié d'indiquer votre e-mail."; }
				alert(txt);
				theForm.mail.focus();
				return false;
				}


			var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&#402;&#352;&#338;&#381;&#353;&#339;&#382;&#376;ÀÁÂÃÆÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßáâåëìíîïñóôøúýþÿ0123456789-@-_.";
			var checkStr = theForm.mail.value;
			var allValid = true;
			for (i = 0;  i < checkStr.length;  i++)
				{
				ch = checkStr.charAt(i);
				for (j = 0;  j < checkOK.length;  j++)
				if (ch == checkOK.charAt(j))
							break;
				if (j == checkOK.length)
					{
					allValid = false;
						break;
					}
				}

			if (!allValid)
				{
				if (lg=="en") { var txt="Enter only characters, numbers and \".@_-\" for the field \"E-mail\"."; }
				else  { var txt="Entrez seulement des caractères, numéros et \".@_-\" pour le champ \"E-mail\"."; }
				alert(txt);
				theForm.mail.focus();
				return (false);
				}
		
				adresse = theForm.mail.value;
				var place = adresse.indexOf("@",1);
				var point = adresse.indexOf(".",place+1);
				if (!((place > -1)&&(adresse.length >2)&&(point > 1)))
				{
				if (lg=="en") { var txt="Enter a valid E-mail !!!\r Exemple: nom@domaine.com"; }
				else  { var txt="Entrez une adresse E-mail valide!!!\r Exemple: nom@domaine.com"; }
				alert(txt);
				theForm.mail.focus();
				return (false);
				}
			if (type=="contact" && theForm.message.value=="")
					{
					if (lg=="en") { var txt="You forgot to indicate your message."; }
					else  { var txt="Vous avez oublié d'indiquer votre message."; }
					alert(txt);
					theForm.message.focus();
					return false;
					}

	return true;
	}
	
function enrverif_form(theForm)
	{

	if (theForm.nom.value=="")
		{
		alert("Saisissez une valeur pour le champ \"Nom\"");
		theForm.nom.focus();
		return false;
		}
	
		

	if (theForm.mail.value=="")
		{
		alert("Saisissez une valeur pour le champ \"E-mail\"");
		theForm.mail.focus();
		return false;
		}

	return true;
	}

