// Licensed Materials - Property of IBM // // IBM Cognos Products: pps // // (C) Copyright IBM Corp. 2005, 2017 // // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. // This forms the javascript functions used for the Banner of // PowerPlay Studio 8.3. // The functions handle any minor browser differences. var loginWindow = null; function doLogOnMenu(event) { var contextItems = new Array(); contextItems[contextItems.length] = new BannerMenuItem(c8webcontentLocation + "/branding/tools_logon.gif",strLogon,function() { logOn() }); contextItems[contextItems.length] = new BannerMenuItem(c8webcontentLocation + "/branding/tools_logoff.gif",strLogoff,function() { logOff() }); ContextMenu.display(event, contextItems); } function doHelp() { var lang = ""; var fh = topparent.getXtabFrame().document.fhidden; if (fh && fh.LA) lang = fh.LA.value; help(lang); } function doMenuHelp() { //In order to ensure the correct relative URL when the CCL help function //is called, invoke the onclick of the toolbar button directly. var button = document.getElementById("helpButton"); if (button.fireEvent) { button.fireEvent('onclick'); } else { var eventObject = document.createEvent('MouseEvents'); eventObject.initMouseEvent('click',true,true,window,0,0,0,0,0,false,false,false,false,0,null); button.dispatchEvent(eventObject); } } function doAbout() { topparent.getXtabFrame().doit('MA'); } function doHelpMenu(event) { var contextItems = new Array(); contextItems[contextItems.length] = new BannerMenuItem('',strHelp,function () { doMenuHelp(); }); contextItems[contextItems.length] = new BannerMenuItem('',strHelpWeb,function () { cognosOnWeb(); }); contextItems[contextItems.length] = new BannerMenuDivider(); contextItems[contextItems.length] = new BannerMenuItem('',strHelpWelcome,function() { topparent.gotoLocation(welcomeURL, false); } ); contextItems[contextItems.length] = new BannerMenuDivider(); contextItems[contextItems.length] = new BannerMenuItem('',strHelpAbout,function() { doAbout(); }); ContextMenu.display(event, contextItems); } function logOff() { topparent.gotoLocation(c8LogOffUrl, false); } function cognosOnWeb() { topparent.location.href = "http://www.ibm.com/cognos"; } function ccModalCallBack(command, data) { if (loginWindow != null) { loginWindow.close(); loginWindow = null; } if (command == "ok") { //Resubmit the hidden form to re-render the current page with the new capabilities"; var fh = topparent.getXtabFrame().document.fhidden; fh.CNCT.value = 13; fh.target = topparent.window.name; fh.submit(); } } function logOn() { if (window.delCookie) delCookie('cc_state'); if (loggedIntoANamespace) { var location = c8cgi + "?h_CAM_action=logon&m=portal/close.xts&md.callBack="; loginWindow = window.open(location,"ppesLogin","location=0,menubar=0,scrollbars=0,status=0,titlebar=0,toolbar=0,height=400,width=600,directories=0,resizable=0"); } else { topparent.gotoLocation(c8Home + "&h_CAM_action=logon&m_reload=", false); } }