function checkForm(){
	var theForm = document.ajout_newsletter;
	if (theForm.mail.value!=""){
		var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
		var check=/@[\w\-]+\./;
		var checkend=/\.[a-zA-Z]{2,3}$/;
		var bEmailCheck = true ;
		if(((theForm.mail.value.search(exclude) != -1)||(theForm.mail.value.search(check)) == -1)||(theForm.mail.value.search(checkend) == -1)){
			alert("L'adresse \'E-mail\' est incorrecte !");
			theForm.mail.focus();
			return;
		}
	} else {
		alert("Veuillez remplir le champ 'e-mail'");
		theForm.mail.focus();
		return;
	}
	theForm.action="newsletter.php";
	theForm.submit();
}

function handleMailInputOver(o) {
 if('E-mail'==o.value) {
  o.value = "";
 }
 o.focus();
}
 
function handleMailInputOut(o) {
 if(''==o.value) o.value = 'E-mail';
}