// Version : 10/07/2011 //======================== // Validation //------------ function validation(){ var x=1; // lgt2 - Login //------------- if (document.frm.lgt2.value == "" && x==1){ x=0; document.frm.lgt2.focus(); alert (txjs[1]); return false; } if (document.frm.lgt2.value.length > 20 && x==1){ x=0; document.frm.lgt2.focus(); alert (txjs[2]); return false; } if (x==1){ z = sys5+sys6; for (i=0;i "+y); return false; } } } if (document.frm.lgt2.value.indexOf(" ")>0 && x==1){ x=0; document.frm.lgt2.focus(); alert (txjs[4]); return false; } // aem - Adresse email //--------------------- if (document.frm.aem.value == "" && x==1){ x=0; document.frm.aem.focus(); alert (txjs[5]); return false; } document.frm.aem.value = document.frm.aem.value.toLowerCase(); if(document.frm.aem.value.length>50 && x==1){ x=0; document.frm.aem.focus(); alert (txjs[6]); return false; } if(document.frm.aem.value!=""){ var z = "-_.@0123456789abcdefghijklmnopqrstuvwxyz"; var y = ""; for (i=0;i "+y); return false; } } var erreurma = 0; var positio1 = document.frm.aem.value.indexOf("@"); var positio2 = document.frm.aem.value.indexOf(".",positio1); if(positio1>0 && positio2>(positio1+1) && positio20){ x=0; document.frm.aem.focus(); alert (txjs[8]); return false; } } // Formulaire OK //--------------- if(x==1){ document.frm.ok.value = txjs[0]; document.frm.ok.disabled = true; document.frm.submit(); } } // Fin de chargement //------------------- function onl(){ // Login //------- var lgt2 = GetCookie("c0"); if(lgt2!=null && lgt2!=""){ SetCookie("c0",lgt2,exp); document.frm.lgt2.value = c2t(lgt2); } }