//Vérification de saisie des champs de demande_documentation documentation/index.php
function demande_documentation()
{
  if (document.documentation.civilite_documentation.value == 0)
  {
  alert("Veuillez sélectionner votre Civilité, Merci.");
  return false;
  }
  if (document.documentation.formation_1_documentation.value == 0)
  {
  alert("Veuillez sélectionner une Formation, Merci.");
  return false;
  }
  if (document.documentation.nom_documentation.value.length == 0)
  {
  alert("Veuillez renseigner votre Nom, Merci.");
  return false;
  }
  if (document.documentation.prenom_documentation.value.length == 0)
  {
  alert("Veuillez renseigner votre Prénom, Merci.");
  return false;
  }
  if (document.documentation.adresse_documentation.value.length == 0)
  {
  alert("Veuillez renseigner votre Adresse, Merci.");
  return false;
  }
  if (document.documentation.code_postal_documentation.value.length == 0)
  {
  alert("Veuillez renseigner votre Code Postal, Merci.");
  return false;
  }
  if (document.documentation.ville_documentation.value.length == 0)
  {
  alert("Veuillez renseigner votre Ville, Merci.");
  return false;
  }
  if (document.documentation.pays_documentation.value.length == 0)
  {
  alert("Veuillez renseigner votre Pays, Merci.");
  return false;
  }
  if (document.documentation.tel_documentation.value.length == 0 && document.documentation.tel_int_documentation.value.length == 0)
  {
  alert("Veuillez renseigner un Téléphone Français ou un Téléphone International, Merci.");
  return false;
  }
  if (document.documentation.tel_documentation.value.length > 0)
  {
    var x=document.documentation.tel_documentation.value
    var anum=/(^\d+$)|(^\d+.\d+$)/
    
	if (anum.test(x))
	{
	}
    
	else
	{
      alert("Veuillez renseigner un Téléphone valide, Merci.")
      return false;
    }
  }
  if (document.documentation.email_documentation.value.length == 0)
  {
  alert("Veuillez renseigner votre Email, Merci.");
  return false;
  }
  if (document.documentation.email_documentation.value.length > 0)
  {
    adresse = document.documentation.email_documentation.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
	{
	}
	else
	{
      alert("Veuillez renseigner un Email valide, Merci.");
	  return false;
    }
  }
  if (document.documentation.age_documentation.value.length == 0)
  {
  alert("Veuillez renseigner votre Age, Merci.");
  return false;
  }
  return true;
}

function inscription_formation()
{
  if (document.formation.civilite_formation.value == 0)
  {
  alert("Veuillez sélectionner votre Civilité, Merci.");
  return false;
  }
  if (document.formation.mensualite_formation.value == 0)
  {
  alert("Veuillez sélectionner le Nombre de Mensualités pour le Règlement, Merci.");
  return false;
  }
  if (document.formation.nom_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Nom, Merci.");
  return false;
  }
  if (document.formation.prenom_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Prénom, Merci.");
  return false;
  }
  if (document.formation.adresse_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Adresse, Merci.");
  return false;
  }
  if (document.formation.code_postal_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Code Postal, Merci.");
  return false;
  }
  if (document.formation.ville_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Ville, Merci.");
  return false;
  }
  if (document.formation.pays_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Pays, Merci.");
  return false;
  }
  if (document.formation.email_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Email, Merci.");
  return false;
  }
  if (document.formation.age_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Age, Merci.");
  return false;
  }
  if (document.formation.situation_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Situation Professionelle Actuelle, Merci.");
  return false;
  }
  if (document.formation.etude_formation.value.length == 0)
  {
  alert("Veuillez renseigner votre Niveau d'Etudes, Merci.");
  return false;
  }
  if (document.formation.connu_formation.value == 0)
  {
  alert("Veuillez renseigner la Méthode par laquelle vous nous avez connus, Merci.");
  return false;
  }
  return true;
}


//Vérification de saisie des champs de demande_orientation orientation/index.php
function demande_orientation()
{
  if (document.orientation.civilite_orientation.value == 0)
  {
  alert("Veuillez sélectionner votre Civilité, Merci.");
  return false;
  }
  if (document.orientation.formation_1_orientation.value == 0)
  {
  alert("Veuillez sélectionner au moins une Formation, Merci.");
  return false;
  }
  if (document.orientation.nom_orientation.value.length == 0)
  {
  alert("Veuillez renseigner votre Nom, Merci.");
  return false;
  }
  if (document.orientation.prenom_orientation.value.length == 0)
  {
  alert("Veuillez renseigner votre Prénom, Merci.");
  return false;
  }
  if (document.orientation.tel_1_orientation.value.length == 0)
  {
  alert("Veuillez renseigner votre Téléphone, Merci.");
  return false;
  }
  if (document.orientation.tel_1_orientation.value.length > 0)
  {
    var x=document.orientation.tel_1_orientation.value
    var anum=/(^\d+$)|(^\d+.\d+$)/
    
	if (anum.test(x))
	{
	}
    
	else
	{
      alert("Veuillez renseigner un Téléphone valide, Merci.")
      return false;
    }
  }
  if (document.orientation.email_orientation.value.length == 0)
  {
  alert("Veuillez renseigner votre Email, Merci.");
  return false;
  }
  if (document.orientation.email_orientation.value.length > 0)
  {
    adresse = document.orientation.email_orientation.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
	{
	}
	else
	{
      alert("Veuillez renseigner un Email valide, Merci.");
	  return false;
    }
  }
  return true;
}