function check_sexe()
{

  if (document.monform.sexe.value == "-")
  {
    alert("Sexe / Sex is empty.");
    return true;
  }
  return false;
}

function check_nom()
{

  if (document.monform.nom.value == "" || document.monform.nom.value == "Nom / Last name")
  {
    alert("Nom / Last name is empty.");
    return true;
  }
  return false;
}
                    
function check_prenom()
{
  if (document.monform.prenom.value == "" || document.monform.prenom.value == "Prénom / First Name")
  {
    alert("Prénom / First name is empty.");
    return true;
  }
  return false;
}

function check_datenais()
{
  if (document.monform.datenais.value == "" || document.monform.datenais.value == "Date naissance / Birthdate")
  {
    alert("Date naissance / Birthdate is empty.");
    return true;
  }/*
  else
  {
  	if()
  	
  }*/
  return false;
}

function check_adr1()
{
  if (document.monform.adr1.value == "" || document.monform.adr1 == "Adresse / Adress")
  {
    alert("Adresse / Address (part 1) is empty.");
    return true;
  }
  return false;
}

function check_codepostal()
{
  if (document.monform.cp.value == "" || document.monform.cp == "Code postal / Post code")
  {
    alert("Code postal / Post code is empty.");
    return true;
  }
  return false;
}
                    
function check_ville()
{
  if (document.monform.ville.value == "" || document.monform.ville == "Ville / City")
  {
    alert("Ville / Town is empty.");
    return true;
  }
  return false;
}

function check_pays()
{
  if (document.monform.pays.value == "" || document.monform.pays == "Pays / Country")
  {
    alert("Pays / Country is empty.");
    return true;
  }
  return false;
}

function check_email()
{
  re = /^[^\s@]+@[^\s@][^\s@]+\.[^\s@][^\s@]+$/;  
  if (!re.test(document.monform.email.value) || document.monform.email == "E-mail") 
  {
     alert("Unvalid e-mail.");
     return true;
  }
  return false;         
}
                    
function check_tel()
{
  if (document.monform.tel.value == "" || document.monform.tel == "Tel maison / Phone home")
  {
     alert("Telephone / Phone is empty.");
     return true;
  }
  return false;
}

function check_natel()
{
  if (document.monform.natel.value == "" || document.monform.natel == "Tel mobile / Cell phone")
  {
     alert("Tel mobile / Cell phone is empty.");
     return true;
  }
  return false;
}

function check_clubFFRS()
{

  if(document.monform.pays.value == "FRANCE" && document.monform.licence.checked == "" && (document.monform.club.value == "" || document.monform.club.value == "Club"))
  {
  	alert("Club is empty");
   	return true;
  }      
     
  return false;
}

function check_licenceFFRS()
{  
  
  if(document.monform.pays.value == "FRANCE" && document.monform.licence.checked == "" && (document.monform.nlicence.value == "" || document.monform.nlicence.value == "Numero licence FFRS"))
  {
  	alert("Licence FFRS number is empty");
   	return true;
  }      
  return false;
}
    
function check_case()
{
  if(document.monform.c1.checked == "" && document.monform.c2.checked == "" && document.monform.c3.checked == "" && document.monform.c4.checked == ""&& document.monform.c5.checked == "")
  {
  	alert("please fill the discipline you register for");
   	return true;
  }      
  return false;
}

function check_case2()
{
  if(document.monform.d1.checked == "" && document.monform.d2.checked == "" && document.monform.d3.checked == "")
  {
    alert("please choose payment method");
  	return true;
  }     
  return false;
}
                    
function checkForm()
{
  if (check_sexe() || check_nom() || check_prenom() || check_datenais() || check_adr1() || check_codepostal() || check_ville() || check_pays()  || check_email() || check_tel() || check_clubFFRS() || check_licenceFFRS() || check_case() || check_case2())
  {
     return false;
  }
  return true;
}