function unimplemented() { alert("Unimplemented"); } function leaveSite(isAuthenticated) { var msg = (isAuthenticated) ? "You are about to log out of and leave the Web Bill Processing Portal. Click 'OK' to continue or 'Cancel' to remain in the portal." : "You are about to leave the Web Bill Processing Portal. Click 'OK' to continue or 'Cancel' to remain in the portal."; var willLeaveSite = confirm(msg) if (willLeaveSite && isAuthenticated) { // find the parent Session Extender var sessionExtender = SessionExtender.getParentSessionExtender(); if (sessionExtender == null) { // if there's no parent, then we must be in the window containing the parent, so just get this window's Session Extender sessionExtender = SessionExtender.getSessionExtenderForWindow(top.window); } // ask the session extender to perform the logout sessionExtender.logoutOfAllApplicationsExceptTheOneInTheGivenWindow(top.window); } return willLeaveSite; } function cancelReg(page) { if(confirm("Are you sure you wish to cancel? Click 'OK' to cancel. Click 'Cancel' to return to page.")) { if(page) { window.location= page; } else { return true; } } else { return false; } }