function Form1_Validator(theForm)
{

  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 5)
  {
    alert("Tapez au moins 5 caractères dans le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._@";
  var checkStr = theForm.email.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre, chiffre et \".-_@\" caractères dans le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.passe.value == "")
  {
    alert("Tapez une valeur pour le champ \"MOT DE PASSE\".");
    theForm.passe.focus();
    return (false);
  }

  if (theForm.passe.value.length < 5)
  {
    alert("Tapez au moins 5 caractères dans le champ \"MOT DE PASSE\".");
    theForm.passe.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzfSOZsozYÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789--";
  var checkStr = theForm.passe.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre, chiffre et \"-\" caractères dans le champ \"MOT DE PASSE\".");
    theForm.passe.focus();
    return (false);
  }
  return (true);
}


function Form2_Validator(theForm)
{

  if (theForm.societe.value == "")
  {
    alert("Tapez une valeur pour le champ \"SOCIETE\".");
    theForm.societe.focus();
    return (false);
  }

  if (theForm.societe.value.length < 2)
  {
    alert("Tapez au moins 2 caractères dans le champ \"SOCIETE\".");
    theForm.societe.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzfSOZsozYÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789- \t\r\n\f";
  var checkStr = theForm.societe.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre, chiffre et blanc caractères dans le champ \"SOCIETE\".");
    theForm.societe.focus();
    return (false);
  }

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

  if (theForm.nom.value.length < 2)
  {
    alert("Tapez au moins 2 caractères dans le champ \"NOM\".");
    theForm.nom.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzfSOZsozYÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ \t\r\n\f";
  var checkStr = theForm.nom.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre et blanc caractères dans le champ \"NOM\".");
    theForm.nom.focus();
    return (false);
  }

  if (theForm.prenom.value == "")
  {
    alert("Tapez une valeur pour le champ \"PRENOM\".");
    theForm.prenom.focus();
    return (false);
  }

  if (theForm.prenom.value.length < 2)
  {
    alert("Tapez au moins 2 caractères dans le champ \"PRENOM\".");
    theForm.prenom.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzfSOZsozYÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ- \t\r\n\f";
  var checkStr = theForm.prenom.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre, blanc et \"-\" caractères dans le champ \"PRENOM\".");
    theForm.prenom.focus();
    return (false);
  }

  if (theForm.adresse_1.value == "")
  {
    alert("Tapez une valeur pour le champ \"ADRESSE\".");
    theForm.adresse_1.focus();
    return (false);
  }

  if (theForm.adresse_1.value.length < 5)
  {
    alert("Tapez au moins 5 caractères dans le champ \"ADRESSE\".");
    theForm.adresse_1.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzfSOZsozYÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-,;:()_- \t\r\n\f";
  var checkStr = theForm.adresse_1.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre, chiffre, blanc et \",;:()_-\" caractères dans le champ \"ADRESSE\".");
    theForm.adresse_1.focus();
    return (false);
  }

  if (theForm.cp.value == "")
  {
    alert("Tapez une valeur pour le champ \"CODE POSTAL\".");
    theForm.cp.focus();
    return (false);
  }

  if (theForm.cp.value.length < 4)
  {
    alert("Tapez au moins 4 caractères dans le champ \"CODE POSTAL\".");
    theForm.cp.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzfSOZsozYÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789- \t\r\n\f";
  var checkStr = theForm.cp.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre, chiffre et blanc caractères dans le champ \"CODE POSTAL\".");
    theForm.cp.focus();
    return (false);
  }

  if (theForm.ville.value == "")
  {
    alert("Tapez une valeur pour le champ \"VILLE\".");
    theForm.pays.focus();
    return (false);
  }

  if (theForm.ville.value.length < 2)
  {
    alert("Tapez au moins 2 caractères dans le champ \"VILLE\".");
    theForm.pays.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzfSOZsozYÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ \t\r\n\f";
  var checkStr = theForm.ville.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que des lettres dans le champ \"VILLE\".");
    theForm.ville.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 5)
  {
    alert("Tapez au moins 5 caractères dans le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._@";
  var checkStr = theForm.email.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre, chiffre et \"._-@\" caractères dans le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }
  return (true);
}



function Form3_Validator(theForm)
{

  if (theForm.email.value == "")
  {
    alert("Tapez une valeur pour le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 5)
  {
    alert("Tapez au moins 5 caractères dans le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.-_@";
  var checkStr = theForm.email.value;
  var allValid = true;
  var validGroups = 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)
  {
    alert("Ne tapez que  lettre, chiffre et \".-_@\" caractères dans le champ \"EMAIL\".");
    theForm.email.focus();
    return (false);
  }
  return (true);
}





