// JavaScript Document pour le contrôle des champs de la table contact
  function valider_form_contact(theForm) 
  {  
		if (theForm.pChamp1.value.length == 0)
		{
			alert("Fields marked * are compulsory !");
			theForm.pChamp1.focus();
			return false;
		}
		if (theForm.pChamp2.value.length == 0)
		{
			alert("Fields marked * are compulsory !");
			theForm.pChamp2.focus();
			return false;
		}
		if (theForm.pChamp8.value.length == 0)
		{
			alert("Fields marked * are compulsory !");
			theForm.pChamp8.focus();
			return false;
		}
		if (theForm.pChamp10.value.length == 0)
		{
			alert("Fields marked * are compulsory !");
			theForm.pChamp10.focus();
			return false;
		}
		if (!isValidMail(theForm.pChamp10.value))
		{
			alert("Invalid e-mail format ! \n (at least 6 characters and the presence of @ and .)");
			theForm.pChamp10.focus();
			return false;
		}

		// CP numerique
		if (theForm.pChamp5.value.length != 0 &&
			isNaN(theForm.pChamp5.value))
		{
			alert("The field Zip code can be only Digital !");
			theForm.pChamp5.focus();
			return false;
		}

		if ( !isPhoneNumber(theForm.pChamp8.value) )
		{
			alert("Invalid phone");
			theForm.pChamp8.focus();
			return false;
		}
		

		// FAX numerique
		if ( !isPhoneNumber(theForm.pChamp9.value) )
		{
			alert("Invalid fax");
			theForm.pChamp9.focus();
			return false;
		}

		// Nom TEXTE
		if (!isTexte(theForm.pChamp2.value))
		{
			alert("The field Name can contain only text !");
			theForm.pChamp2.focus();
			return false;
		}

		// Prenom TEXTE
		if (!isTexte(theForm.pChamp3.value))
		{
			alert("The field First name can contain only text !");
			theForm.pChamp3.focus();
			return false;
		}

		// Adresse TEXTE
		if (!isTexte(theForm.pChamp4.value))
		{
			alert("The field Address can contain only text !");
			theForm.pChamp4.focus();
			return false;
		}

		// Ville TEXTE
		if (!isTexte(theForm.pChamp6.value))
		{
			alert("The field City can contain only text !");
			theForm.pChamp6.focus();
			return false;
		}

    return true;
  }// JavaScript Document pour le contrôle des champs de la table contact
  function valider_form(theForm) 
  {  
		if (theForm.pChamp1.value.length == 0)
		{
			alert("Fields marked * are compulsory !");
			theForm.pChamp1.focus();
			return false;
		}
		if (theForm.pChamp2.value.length == 0)
		{
			alert("Fields marked * are compulsory !");
			theForm.pChamp2.focus();
			return false;
		}
		if (theForm.pChamp8.value.length == 0)
		{
			alert("Fields marked * are compulsory !");
			theForm.pChamp8.focus();
			return false;
		}
		if (theForm.pChamp10.value.length == 0)
		{
			alert("Fields marked * are compulsory !");
			theForm.pChamp10.focus();
			return false;
		}
		if (!isValidMail(theForm.pChamp10.value))
		{
			alert("Invalid e-mail format ! \n (at least 6 characters and the presence of @ and .)");
			theForm.pChamp10.focus();
			return false;
		}

		// CP numerique
		if (theForm.pChamp5.value.length != 0 &&
			isNaN(theForm.pChamp5.value))
		{
			alert("The field Zip code can be only Digital !");
			theForm.pChamp5.focus();
			return false;
		}

		if ( !isPhoneNumber(theForm.pChamp8.value) )
		{
			alert("Invalid phone");
			theForm.pChamp8.focus();
			return false;
		}
		

		// FAX numerique
		if ( !isPhoneNumber(theForm.pChamp9.value) )
		{
			alert("Invalid fax");
			theForm.pChamp9.focus();
			return false;
		}

		// Nom TEXTE
		if (!isTexte(theForm.pChamp2.value))
		{
			alert("The field Name can contain only text !");
			theForm.pChamp2.focus();
			return false;
		}

		// Prenom TEXTE
		if (!isTexte(theForm.pChamp3.value))
		{
			alert("The field First name can contain only text !");
			theForm.pChamp3.focus();
			return false;
		}

		// Adresse TEXTE
		if (!isTexte(theForm.pChamp4.value))
		{
			alert("The field Address can contain only text !");
			theForm.pChamp4.focus();
			return false;
		}

		// Ville TEXTE
		if (!isTexte(theForm.pChamp6.value))
		{
			alert("The field City can contain only text !");
			theForm.pChamp6.focus();
			return false;
		}

    return true;
  }