function AddFavoris() { if(window.confirm("Click OK to add this page to your bookmarks")) { if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) { window.external.AddFavorite(location.href, document.title); } else { alert("This function is avalaible only with Internet Explorer 4 +. But you can do CTRL + D to add this page to your bookmarks.") } } } // checkFormConnexion(theform) function checkFormConnexion(theform) { if(!oblig(theform.pseudo,"Username")) { return false; } else if(!oblig(theform.password,"Password")) { return false; } else { return true; } } function oblig(inputObject,inputName) { if(inputObject.value == "") { alert("Warning, "+inputName+" is required"); inputObject.focus(); return false; } return true; }