<!--
// Validation Email.
function check_email(e) {
 ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
  for(i=0; i < e.length ;i++){
      if(ok.indexOf(e.charAt(i))<0){ 
        return (false);
      }	
  } 
  if (document.images) {
      re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
      re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
      if (!e.match(re) && e.match(re_two)) {
        return (-1);		
      } 
  }
}

var compteur=0;
var pop_merci;

function check_form(f) { 
// Teste le NOM
if ((f.nom.value.length < 1) || (f.nom.value == "Surname") || (f.nom.value == "Surname")) {
alert("Please enter your Surname.");
f.nom.focus();
if(document.all || document.getElementByID){
f.nom.style.background = "#F7F1EF";
}
return (false);
}

// Test EMAIL
if(!check_email(f.FROM.value)){
alert("Please, enter a correct Email address.");
f.FROM.focus(); 
if(document.all || document.getElementByID){
f.FROM.style.background = "#F7F1EF";
}
return (false);
}


// Test TEXTE
if ((f.Texte.value.length < 1) || (f.Texte.value == "Your text")) {
alert("Please, enter a text.");
f.Texte.focus();
if(document.all || document.getElementByID){
f.Texte.style.background = "#F7F1EF";
}
return (false);
}


// TEST DOUBLE-SUBMIT
//if (compteur == 0){
//compteur++;
//pop_merci=window.open("Confirm_Contact.htm","merci","width=280,height=160,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no");
//return true;
//}
//else{
//alert("Send in process!");
//return false;
//}
return (true);
}
//-->

