1; function headerClosePopup(event) { if (headerActivePopup == null) { return; } // get where the event occured var eventOccuredIn; var browser=navigator.appName if (browser == "Microsoft Internet Explorer") eventOccuredIn = window.event.srcElement; else eventOccuredIn = event.targetName ? event.target : event.target.parentNode; // if the current window done if (eventOccuredIn == headerActivePopup) { return; } headerActivePopup.style.visibility = 'hidden'; headerActivePopup.style.display = 'none'; // close the screen mask ScreenMask.off(); // clear the active popup headerActivePopup = null; } // headerClosePopup