function resize() {
    var myWidth = 0, myHeight = 0;
    if (typeof (window.innerWidth) == 'number') {
        //Non-IE
        move2Top = -60;
        myWidth = window.innerWidth;
        myHeight = window.innerHeight - 38;
    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        //IE 6+ in 'standards compliant mode'
        move2Top = -55;
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
    } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
        //IE 4 compatible
        move2Top = -55;
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
    }

    if (document.getElementById("div_sub1") != null) {
        myHeight = myHeight - 30;
        document.getElementById("div_sub1").style.top = move2Top;
    }

    if (document.getElementById("div_sub2") != null) {
        myHeight = myHeight - 30;
        document.getElementById("div_sub2").style.top = move2Top;
    }

    if (document.getElementById("div_content1") != null)
        document.getElementById("div_content1").style.top = move2Top;

    if (document.getElementById("div_unten") != null)
        document.getElementById("div_unten").style.top = move2Top - 15;

    if (document.getElementById("div_content").style.height == "")
        aktuell = 0;
    else {
        aktuell = parseFloat(document.getElementById("div_content").style.height.replace("px", ""));
    }

    //resizeTill(myHeight, aktuell+320);
    //document.getElementById("div_content").style.height = (myHeight - 320) + "px";

}

function resizeTill(h, aktuell) {

    document.getElementById("div_content").style.height = (aktuell - 320) + "px";

    document.getElementById("div_content").style.overflow = "hidden";
    aktuell += 50;
    if (h >= aktuell)
        setTimeout("resizeTill(" + h + "," + aktuell + ")", 1);
    else
        document.getElementById("div_content").style.overflow = "auto";

}
function highlight(tr) {
    tr.style.backgroundColor = "#E7E7E7";
}

function unhighlight(tr) {
    tr.style.backgroundColor = "white";
}

function getElementsByName_iefix(tag, name) {

    var elem = document.getElementsByTagName(tag);
    var arr = new Array();
    for (i = 0, iarr = 0; i < elem.length; i++) {
        att = elem[i].getAttribute("name");
        if (att == name) {
            arr[iarr] = elem[i];
            iarr++;
        }
    }
    return arr;
}
