/*****************************************************************************************ouverture des différentes popup*******************************************************************************************/function Conditions() { mafenetre = window.open("/other/carte_cds/popup_carte_cds.asp","Conditions","width=450,height=520,left=200,top=100,scrollbars=yes"); mafenetre.focus();}function Carte() { mafenetre = window.open("/other/carte_cds/client_carte.asp","Client","width=380,height=100,left=200,top=100,scrollbars=no"); mafenetre.focus();}/*****************************************************************************************Fonction pour le menu privilèges : on passe le param à client_carte *******************************************************************************************/function Carte2(lib) {var mafenetre;switch(lib)    {        case "gestion":         mafenetre =        window.open("/other/carte_cds/client_carte.asp?link=gestion","Client","width=380,height=100,left=200,top=100,scrollbars=no");        break;
        case "releve":        mafenetre =        window.open("/other/carte_cds/client_carte.asp?link=releve","Client","width=380,height=100,left=200,top=100,scrollbars=no");        break;
        case "virement":         mafenetre =        window.open("/other/carte_cds/client_carte.asp?link=virement","Client","width=380,height=100,left=200,top=100,scrollbars=no");        break;        case "contact":        mafenetre =        window.open("/other/carte_cds/client_carte.asp?link=contact","Client","width=380,height=100,left=200,top=100,scrollbars=no");        break;        //case of VENTE EXCLUSIV        case "exclu":        mafenetre =        window.open("/other/carte_cds/client_carte.asp?link=exclu","Client","width=380,height=100,left=200,top=100,scrollbars=no");        break;    } mafenetre.focus(); }  /***************************************************************************************** Verif formulaire *******************************************************************************************/function checkpass(){

		var testform = 0;

		// On test la validité de l'email
		var re;

		re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,8})+$/;

		if (re.test(document.PASSWORD.email.value) == false) {
 			document.PASSWORD.email.focus();
			alert("Entrez un email valide sous la forme nom_utilisateur@nom_domaine");
			testform = 1 ;
		}

		if (testform == 0 && document.PASSWORD.MPClient.value == "") {	
			document.PASSWORD.MPClient.focus();
			alert("Vous devez saisir un mot de passe");
			testform = 1 ;
		}		

		if (testform == 0)
		{
		
		//document.PASSWORD.action.value='IDENTIFICATION';
		document.PASSWORD.submit();
		}
	}
/***************************************************************************************** Post du fomulaire sur touche retour chariot*******************************************************************************************/
function keyEnter(s) {
		if (event.keyCode == 13) {
			if (s == "PASS") {
				checkpass(); }
			else {
				checkit();}
		}
	}
function checkpass2(ACTION){
alert(ACTION);
//    document.PASSWORD.action.value='';
 //   document.PASSWORD.submit();
}