// version : 22/06/2006 //====================== // Validation //------------ function validation(){ var x=1; 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; } if (document.frm.pwt2.value.length > 10 && x==1){ x=0; document.frm.pwt2.focus(); alert (txjs[3]); document.frm.pwt2.value = ""; document.frm.pwt3.value = ""; return false; } if (document.frm.pwt2.value == "" && x==1){ x=0; document.frm.pwt2.focus(); alert (txjs[4]); return false; } if (document.frm.pwt2.value.length < 3 && x==1){ x=0; document.frm.pwt2.focus(); alert (txjs[5]); document.frm.pwt2.value = ""; document.frm.pwt3.value = ""; return false; } for (i=0;i "+y); document.frm.pwt2.value = ""; document.frm.pwt3.value = ""; return false; } } if (document.frm.pwt3.value == "" && x==1){ x=0; document.frm.pwt3.focus(); alert (txjs[7]); return false; } if (document.frm.pwt2.value != document.frm.pwt3.value && x==1){ x=0; document.frm.pwt2.focus(); alert (txjs[8]); document.frm.pwt2.value = ""; document.frm.pwt3.value = ""; return false; } // Formulaire OK //--------------- if(x==1){ 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); document.frm.lgt.value = c2t(lgt); } sca(); } // Scan du formulaire //-------------------- function sca(){ document.frm.pwts.value = document.frm.pwt2.value.length+" / 10"; setTimeout("sca()",500); }