// JavaScript Document
function addEmail(courriel,lan,merciMsg){
	merci = function(){
		document.getElementById('courriel').value = merciMsg;
	}
	if(validMail(courriel)){
		callAjax('/addMail.php?c='+courriel+'&lan='+lan,merci,null,null);
	}else{
		if(lan==1){
			alert('Veuillez entrer une adresse courriel valide.');
		}else{
			alert('Enter your email adress.');
		}
	}
}