function cshow(thisid, subAnzahl) { var divid = "cat"+thisid; for (i=1; i<=subAnzahl; ++i) { if ("cat"+i != divid) { document.getElementById("cat" + i).style.display = "none"; } else { document.getElementById("cat" + i).style.display = "inline"; } } var tabid = "tab" + thisid; for (i = 1; i<=subAnzahl; ++i) { if ("tab"+i != tabid) { document.getElementById("tab" + i).getAttributeNode("class").nodeValue = "inactive" } else { document.getElementById("tab" + i).getAttributeNode("class").nodeValue = "active" } } } function cshow1(thisid, subAnzahl) { var divid = "scat"+thisid; for (i=1; i<=subAnzahl; ++i) { if ("scat"+i != divid) { document.getElementById("scat" + i).style.display = "none"; } else { document.getElementById("scat" + i).style.display = "inline"; } } var tabid = "stab" + thisid; for (i = 1; i<=subAnzahl; ++i) { if ("stab"+i != tabid) { document.getElementById("stab" + i).getAttributeNode("class").nodeValue = "inactive" } else { document.getElementById("stab" + i).getAttributeNode("class").nodeValue = "active" } } }