// version : 22/06/2006 //====================== // Language par défaut //--------------------- txjs = new Array ( "Vous avez oublié d'indiquer votre nom d'utilisateur.", "Vous avez oublié d'indiquer votre mot de passe.", "Patientez SVP..."); // Validation //------------ function validation(){ var x=1; // Connexion //----------- if(c0c1==0){ if (document.frm.lgt.value == "" && x==1){ x=0; document.frm.lgt.focus(); alert (txjs[0]); return false; } if (document.frm.pwt.value == "" && x==1){ x=0; document.frm.pwt.focus(); alert (txjs[1]); return false; } } // Formulaire OK //--------------- if(x==1){ if(c0c1==0){ if(document.frm.lgts.checked==true && document.frm.lgt.value!="") SetCookie("c0",t2c(document.frm.lgt.value),exp); else SetCookie("c0","",exp); if(document.frm.pwts.checked==true && document.frm.pwt.value!="") SetCookie("c1",t2c(document.frm.pwt.value),exp); else SetCookie("c1","",exp); } document.frm.ok.value = txjs[2]; document.frm.ok.disabled = true; document.frm.submit(); } } // Fin de chargement //------------------- function onl(){ // Login //------- var lgt = GetCookie("c0"); if(lgt!=null && lgt!=""){ SetCookie("c0",lgt,exp); if (c0c1==0){ document.frm.lgt.value = c2t(lgt); document.frm.lgts.checked = true; } } // Mot de passe //-------------- var pwt = GetCookie("c1"); if(pwt!=null && pwt!=""){ SetCookie("c1",pwt,exp); if (c0c1==0){ document.frm.pwt.value = c2t(pwt); document.frm.pwts.checked = true; } } }