// roll-over d'une image function swapImg(imgName, imgFile) { document.images[imgName].src = imgFile; } // ouverture de la fenêtre des mentions légales function getLegalNotice() { var noticeWindow = window.open("/legalNotice.asp", "notice", "width=400,height=370,resizable=yes,scrollbars=yes,menubar=no,status=no"); noticeWindow.focus(); } // check du formulaire d'identification function checkLogForm(obj) { if (!checkInputText(obj.login)) { obj.login.focus(); return false; } if (!checkInputText(obj.password)) { obj.password.focus(); return false; } return true; } // vérifie si un champ de type TEXT est vide function checkInputText(obj) { if (!isEmpty(obj.value)) return true; obj.focus(); return false; } // vérif si une chaine de caractères est vide function isEmpty(chaine) { taille = chaine.length; for (i = 0; i < taille; i++) { if (chaine.substring(i, i + 1) != " ") return false; } return true; }