messageObj = new DHTML_modalMessage(); // We only create one object of this class messageObj.setShadowOffset(5); // Large shadow function displayMessage(url) { displayMessage(url,400,200) } function displayMessage(url,width,height) { messageObj.setSource(url); messageObj.setCssClassMessageBox(false); messageObj.setSize(width,height); messageObj.setShadowDivVisible(true); // Enable shadow for these boxes messageObj.display(); } function displayStaticMessage(messageContent,cssClass) { messageObj.setHtmlContent(messageContent); messageObj.setSize(300,150); messageObj.setCssClassMessageBox(cssClass); messageObj.setSource(false); // no html source since we want to use a static message here. messageObj.setShadowDivVisible(false); // Disable shadow for these boxes messageObj.display(); } function closeMessage() { messageObj.close(); } //to make sure tabber WORKS due to already existing "onload" commands that it cannot override automatically with the existing tabber.js script: try{ var oldOnLoad; var tabberArgs; if (!tabberArgs) { tabberArgs = {}; } oldOnLoad = window.onload; if (typeof window.onload != 'function') { window.onload = function() { tabberAutomatic(tabberArgs); }; } else { window.onload = function() { oldOnLoad(); tabberAutomatic(tabberArgs); }; } }catch(err){}