function validate(){
  if (document.fcont.nom.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }
  
  if (document.fcont.prenom.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

  if (document.fcont.adresse.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

  if (document.fcont.code.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

 if (document.fcont.ville.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

  if (document.fcont.pays.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

  if (document.fcont.titn.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

  if (document.fcont.nrocr.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

  if (document.fcont.expir.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

  if (document.fcont.email.value.length == 0) {
    alert("Merci de compléter tous les champs obligatoires"); 
    return false; 
  }

  email = document.fcont.email.value;
  var place = email.indexOf("@",0);
  var point = email.indexOf(".",0);
  if ((place > 0)&&(email.length >6)&&(point > 0)){
    return true;
  }
  else {
    alert('Erreur : Entrez une adresse e-mail valide');
    return false;
  }
}

function validate_en(){
  if (document.fcont.nom.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }
  
  if (document.fcont.prenom.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

  if (document.fcont.adresse.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

  if (document.fcont.code.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

 if (document.fcont.ville.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

  if (document.fcont.pays.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

  if (document.fcont.titn.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

  if (document.fcont.nrocr.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

  if (document.fcont.expir.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

  if (document.fcont.email.value.length == 0) {
    alert("Please make sure you've filled in all the compulsory fields"); 
    return false; 
  }

  email = document.fcont.email.value;
  var place = email.indexOf("@",0);
  var point = email.indexOf(".",0);
  if ((place > 0)&&(email.length >6)&&(point > 0)){
    return true;
  }
  else {
    alert('Please fill in a valid email address');
    return false;
  }
}
 
var crypt="sergegirard";
    crypt +="@";
    crypt +="wanadoo.fr";

function mail(Nom){
  window.location.href="mailto:" + Nom + "@wanadoo.fr";
}

function pop(href,width,height) { 
  var width = width + 40;
  var height = height + 40;
  window.open( href, '_blank', 'width=' + width + ', height=' + height + ',scrollbars=1,resizable=1');
  return false;
}
