function VerifMail()
{
	var nom = document.getElementById("nom");
	var prenom = document.getElementById("prenom");
	var email = document.getElementById("email").value;
	email = email.replace(/\'/,"")
	email = email.replace(/\"/,"")
	email = email.replace(/\</,"")
	email = email.replace(/\>/,"")
	email = email.replace(/\&/,"")
  if ((email.indexOf('@',0)==-1) || (email.indexOf('.',0)==-1)){
      alert("Your mail is invalid.");
      return false;
  }
  else{
      if (nom.value==""){
          alert("Your last name is needed.");
          return false;
      }
      else if (prenom.value==""){
          alert("Your first name is needed.");
          return false;
      }
      else { return true; }
  }
}


function VerifMail2(){
 	var email = document.getElementById("email").value;
	email = email.replace(/\'/,"")
	email = email.replace(/\"/,"")
	email = email.replace(/\</,"")
	email = email.replace(/\>/,"")
	email = email.replace(/\&/,"")
  	if ((email.indexOf('@',0)==-1) || (email.indexOf('.',0)==-1)){
    	alert("Your mail is invalid.");
      	return false;
  	}
  	else { return true; }
}


function VerifMail3(email_to){
  	var email_to = document.getElementById(email_to).value;
	email_to = email_to.replace(/\'/,"")
	email_to = email_to.replace(/\"/,"")
	email_to = email_to.replace(/\</,"")
	email_to = email_to.replace(/\>/,"")
	email_to = email_to.replace(/\&/,"")
  	if ((email_to.indexOf('@',0)==-1) || (email_to.indexOf('.',0)==-1)){
    	alert("Your correspondent\'s mail is invalid.");
    	return false;
  	}
  	else { return true; }
}
