/*GENERAL DATA*/ /*--------------------------------------------------*/ var currentMenu = null; /*CHANGE THE CURRENT LANGUAGE*/ /*--------------------------------------------------*/ function initializeMenu(menuId, actuatorId) { var menu = document.getElementById(menuId); var actuator = document.getElementById(actuatorId); if (menu == null || actuator == null) return; actuator.onmouseover = function() { if (currentMenu) { currentMenu.style.visibility = "hidden"; this.showMenu(); } } actuator.onclick = function() { if (currentMenu == null) { this.showMenu(); } else { currentMenu.style.visibility = "hidden"; currentMenu = null; } return false; } actuator.showMenu = function() { menu.style.left = this.offsetLeft + "px"; menu.style.top = this.offsetTop + this.offsetHeight + "px"; menu.style.visibility = "visible"; currentMenu = menu; } } // cette fonction ouvre la homepage function goHome() { window.location.href = "/Web/eSurveyor/eSrvWeb.nsf/WHomepage/Homepage?OpenDocument" } // cette fonction ouvre une fenêtre pour afficher un screenshot function windowOpen(url, width, height) { t = window.open("","Image", "scrollbars=no,Toolbar=no,resizable=no,status=no,width=" + width + ",height=" + height + ",left=20,top=20"); t.document.write("Screenshot"); t.document.write(""); t.document.write("\"Cliquez"); t.document.write(""); return; }