
  function lost_password() {
	if (document.contact.numero.value.length == 0){
		window.alert("All fields must be filled in");
		return false;
		}
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.contact.email.value) == false){
		window.alert("The email adress is incorrect or empty");
		return false
		}
	return true;
}
  function inscription() {
	if (document.contact.numero.value.length == 0){
		window.alert("All fields must be filled in");
		return false;
		}
	if (document.contact.passwd.value.length == 0){
		window.alert("All fields must be filled in");
		return false;
		}
		
	if (document.contact.newpasswd.value.length == 0){
		window.alert("All fields must be filled in");
		return false;
		}
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.contact.email.value) == false){
		window.alert("The email adress is incorrect or empty");
		return false
		}
		
	return true;
}

