	function checkMail(email) {
		  var mail = email.value;

		  var reg = new RegExp('^[a-zA-Z0-9]+([_|\.|-]{1}[a-zA-Z0-9]+)*@[a-zA-Z0-9\-\.]+([_|\.|-]­{1}[a-zA-Z0-9]+)*[\.][a-zA-Z]{2,3}$', 'i');
		  
		  if(!reg.test(mail) || mail == ""){
		    return false;
		  }
		  else {
		    return true;
		  }
	}
	
	function verif_form_send_mdp(){
		var Form_ok=true;
		var mesg_al="";
				
		if(!checkMail(document.getElementById("mail_mdp"))){
			//document.getElementById("mail_mdp").style.border="1px solid #00b2e4";
			mesg_al= mesg_al+"- Votre adresse mail ne semble pas valide, merci de la vérifier. <br/> ";
			Form_ok =false;			
		}else{
			document.getElementById("mail_mdp").style.border="1px solid #dedede";
		}
		
		if (Form_ok == true){
			document.forms['form_mdp'].submit();
			return true;
		}else{
			$.pnotify({pnotify_type: 'error',pnotify_delay: 15000,pnotify_title: 'MESSAGE D\'ERREUR',pnotify_text: mesg_al});
			return false;
		}
	}		
