function Resiliation() {
				  if (confirm('<?php echo "$msgresiliation"; ?>')) {
					  if (confirm('Etes-vous vraiment certain ?')) {
				      location.replace('menu.php?action=R');
						}
					}
				}
				
        function Oubli() {
				  if (CheckEmail()) {
            dummy = 'menu.php?action=O&mail=' +	document.getElementById('email').value;
	  			  location.replace(dummy);
					}
				}
				
				function CheckEmail() {
				  if  (document.identification.email.value == '') {
            alert('Veuillez S.V.P. indiquer votre adresse émail.');
					  document.identification.email.focus();
		        return false;
					}
				  chaine = document.identification.email.value;
				  if (chaine.length >= 5) {
					  position = chaine.indexOf('@',1);
					  if (position > 0 && position < chaine.length) {
					  	domaine = chaine.substr(position+1);
						  adresse = chaine.substring(0, position);
						  position = domaine.indexOf('.',1);
						  if (position > 0 && position < domaine.length) {
						  	if (NoSymbol(adresse) && NoSymbol(domaine)) return true;
						  }
					  }
				  }
				  alert('Cette adresse émail n\'est pas valide.');
					document.identification.email.focus();
		      return false;
				}
						
				function NoSymbol(chaine) {
					symbols = '()<>@,;:\\[] "';
					for (i = 0; i < chaine.length; i++) {
						if (symbols.indexOf(chaine.substr(i,1)) != -1) return false;
					}
					return true;
				}
		
	      function SubmitForm() {
	        if (! CheckEmail()) return false;
				  if (document.identification.pass.value == '') {
				    alert('Veuillez S.V.P. indiquer votre mot de passe.');
					  document.identification.pass.focus();
		        return false;
				  }
				  if (document.identification.pass.value.length < 6) {
				    alert('Votre mot de passe doit avoir au moins 6 caractères.');
					  document.identification.pass.focus();
		        return false;
				  } 
	      }
