// This file contains the javascript functions required by the tabbedPage stylesheet // Store the active tab of the tabbed dialog var activeTab = 0; // Switch tabbed pages in the tab dialog function switchTab(newTab) { if (activeTab!=0) { if (document.getElementById("tdTab" + newTab)!=null) { // Switch the selected page var curActivePage = document.getElementById("tdTab" + activeTab); var newActivePage = document.getElementById("tdTab" + newTab); curActivePage.className = ""; newActivePage.className = "current"; // Switch the visible page curActivePage = document.getElementById("tdPage" + activeTab); newActivePage = document.getElementById("tdPage" + newTab); curActivePage.style.display = "none"; newActivePage.style.display = ""; // Store the active tab activeTab = newTab; } } }