// roll-over sur une image function swapImg(divName, img, src) { if (divName == '') document.images[img].src = src; else { if (isNS) eval("document." + divName).document.images[img].src = src; else document.images[img].src = src; } } // remplace une sous-chaine dans une chaine function replaceString(str, strFind, strReplace) { for (var i = 0; i < str.length; i++) { if (str.substring(i, i + strFind.length) == strFind) { str = str.substring(0, i) + strReplace + str.substring(i + strFind.length, str.length); return str; } } return str; } // ouverture de la fenêtre des mentions légales function getLegalNotice() { var noticeWindow = window.open("/legalNotice.asp", "notice", "width=400,height=350,resizable=yes,scrollbars=yes,menubar=no,status=no"); noticeWindow.focus(); } // 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; }