// version : 04/11/2007 //====================== // Variables communes //-------------------- var nbr_input = 0; // 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; } } // Création de la liste de MAJ //----------------------------- if(nbr_input>0){ var chaine_maj = ""; for(i=0;i0 && document.frm2.num_"+i+".value<1000){ var y = document.frm2.num_"+i+".value*1 + 1; chaine_maj = chaine_maj + y + \"/\"; }else{ x=0; i=nbr_input; document.frm2.num_"+i+".value = \"\"; document.frm2.num_"+i+".focus(); alert(\"Vous avez oublié d'indiquer le nombre d'autocollants en double\"); } }"); } document.frm.maj.value = chaine_maj; } // 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; } } }