// 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 displaying error messages in the actionpane // PowerPlay Studio. // The functions handle any minor browser differences. var dialogContent; var preContent; var renameContent; var deleteContent; var previousContent; function initErrorVars() { dialogContent = document.getElementById("dialogContent"); preContent = document.getElementById("preContent"); renameContent = document.getElementById("renameContent"); deleteContent = document.getElementById("deleteContent"); presentContent = null; } function displayContent() { if (previousContent != "display") { hideAllContent(); showContent(dialogContent); previousContent = "display"; } } function displayPreContent() { if (previousContent != "pre") { hideAllContent(); showContent(preContent); previousContent = "pre"; } } function displayRenameContent() { if (previousContent != "rename") { hideAllContent(); showContent(renameContent); previousContent = "rename"; } } function displayDeleteContent() { if (previousContent != "delete") { hideAllContent() showContent(deleteContent); previousContent = "delete"; } } function showContent(content) { var contentArea = document.getElementById("contentArea"); if (!content) return false; contentArea.appendChild(content); } function hideAllContent() { var contentArea = document.getElementById("contentArea"); while(contentArea.childNodes.length > 1) contentArea.removeChild(contentArea.childNodes[contentArea.childNodes.length - 1]) }