var browserType; if (document.layers) {browserType = "nn4"} if (document.all) {browserType = "ie"} if (window.navigator.userAgent.toLowerCase().match("gecko")) {browserType= "gecko"} function hide(number) { if (browserType == "gecko" ) document.poppedLayer = eval('document.getElementById(\''+number+'\')'); else if (browserType == "ie") document.poppedLayer = eval('document.all[\''+number+'\']'); else document.poppedLayer = eval('document.layers[\''+number+'\']'); document.poppedLayer.style.visibility = "hidden"; } function show(number) { //alert('document.all[\''+number+'\']'); if (browserType == "gecko" ) document.poppedLayer = eval('document.getElementById(\''+number+'\')'); else if (browserType == "ie") document.poppedLayer = eval('document.all[\''+number+'\']'); else document.poppedLayer = eval('document.layers[\''+number+'\']'); document.poppedLayer.style.visibility = "visible"; } function generateButton(label, cssExtension, link) { // cssExtension = "" | "Active" if active or inactive button // label = button label // link = href link, if none link is disabled document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(''); document.write('
'); if (link !="") { document.write(' '); } else { document.write('
'+label+'
'); } document.write('
'); } function generateTabBar(numberOfTabBarInPage, tabBarContent, isDocInReadMode, pixelAwayFromLeftBorder) { // Feld muss im Lesemodus anderen Namen haben, da ein hidden field am Ende generiert wird, vorheriges überschreibt if (isDocInReadMode) document.write(''); arrayLength = tabBarContent.length; //alert(arrayLength); for (var i=0; i < arrayLength; i++) { // Menge der Navigationsreiter //generate button (i is active button) //example: tabBar1General if (i==0) document.write('
') else document.write(''); } //end for (Reiterkombinationen) document.write('
'); } function activateTab(numberOfTabBarInPage, name, isDocInReadMode) { // verberge aktuelle Tabelle form = document.tab; if (isDocInReadMode) fieldActiveTabBar = eval('form.elements["activeTabBar"+numberOfTabBarInPage+"Read"]'); else fieldActiveTabBar = eval('form.elements["activeTabBar"+numberOfTabBarInPage]'); //alert('form.elements["activeTabBar'+numberOfTabBarInPage+'"]'); //alert('Jetziges '+fieldActiveTabBar.value) // verberge aktuellen Reiter hide(fieldActiveTabBar.value+'Nav'); hide(fieldActiveTabBar.value); // zeige Tabelle // zeige passenden Reiter fieldActiveTabBar.value=name; //alert ('Neues: '+fieldActiveTabBar.value); show(fieldActiveTabBar.value+'Nav'); show(fieldActiveTabBar.value); }