function FrontPage_Form1_Validator(theForm)
{

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

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

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

  if (theForm.Telephone.value.length < 10)
  {
    alert("Tapez au moins 10 caractères dans le champ \"Telephone\".");
    theForm.Telephone.focus();
    return (false);
  }
  
  if (theForm.Telephone.value.length == 10){
    old = theForm.Telephone.value;
    chaine = old.substring(0,2)+"-"+old.substring(2,4)+"-"+old.substring(4,6)+"-"+old.substring(6,8)+"-"+old.substring(8,10);
    theForm.Telephone.value = chaine;
  }
  
  
  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);
  }

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

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

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

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

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

  if (theForm.logement_chargement.selectedIndex < 0)
  {
    alert("S&eacute;lectionnez une des options \"Votre logement\".");
    theForm.logement_chargement.focus();
    return (false);
  }

  if (theForm.formule_souhaitee.selectedIndex < 0)
  {
    alert("Sélectionnez une des options \"Formule souhaitée\".");
    theForm.formule_souhaitee.focus();
    return (false);
  }

  if (theForm.nombre_etage_chargement.value == "")
  {
    alert("Tapez une valeur pour le champ \"Nombre d'étage\".");
    theForm.nombre_etage_chargement.focus();
    return (false);
  }

  if (theForm.nombre_etage_chargement.value.length < 1)
  {
    alert("Tapez au moins 1 caractères dans le champ \"Nombre d'étage\".");
    theForm.nombre_etage_chargement.focus();
    return (false);
  }

  if (theForm.nombre_pieces_chargement.value == "")
  {
    alert("Tapez une valeur pour le champ \"Nombre de pièces\".");
    theForm.nombre_pieces_chargement.focus();
    return (false);
  }

  if (theForm.nombre_pieces_chargement.value.length < 1)
  {
    alert("Tapez au moins 1 caractères dans le champ \"Nombre de pièces\".");
    theForm.nombre_pieces_chargement.focus();
    return (false);
  }

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

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

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

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

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

  if (theForm.date_demenagement.value == "")
  {
    alert("Tapez une valeur pour le champ \"Date ou période de déménagement souhaitée\".");
    theForm.date_demenagement.focus();
    return (false);
  }

  if (theForm.date_demenagement.value.length < 1)
  {
    alert("Tapez au moins 1 caractères dans le champ \"Date ou période de déménagement souhaitée\".");
    theForm.date_demenagement.focus();
    return (false);
  }
  return (true);
}