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"
        }
    }
}


function tabPriceshow(thisid, subAnzahl) {
    var tabid = "catPR" + thisid;
    for (i = 1; i<=subAnzahl; ++i) {
        if ("catPR"+i != tabid) {
            document.getElementById("catPR" + i).style.display = "none";
        } else {
            document.getElementById("catPR" + i).style.display = "inline";
        }
    }
    
    var tabid = "tabPR" + thisid;
    for (i = 1; i<=subAnzahl; ++i) {
        if ("tabPR"+i != tabid) {
            document.getElementById("tabPR" + i).getAttributeNode("class").nodeValue = "inactivePR";
        } else {
            document.getElementById("tabPR" + i).getAttributeNode("class").nodeValue = "activePR";
        }
    }
}



