﻿function tl_showtab(t) {
    switch (t) {
        case 1:
            document.getElementById("form_container").style.display = "block";
            document.getElementById("tl_page2").style.display = "none";
            document.getElementById("tl_tabhead1").style.background = "url('/images/icons/produktionsspiegel_tabs/aktiv_1.png') no-repeat";
            document.getElementById("tl_tabhead2").style.background = "url('/images/icons/produktionsspiegel_tabs/inaktiv_4.png') no-repeat";
            break;
        case 2:
            document.getElementById("tl_page2").style.display = "block";
            document.getElementById("form_container").style.display = "none";
            document.getElementById("tl_tabhead1").style.background = "url('/images/icons/produktionsspiegel_tabs/inaktiv_1.png') no-repeat";
            document.getElementById("tl_tabhead2").style.background = "url('/images/icons/produktionsspiegel_tabs/aktiv_4.png') no-repeat";
            break;
    }
}
function addLoadEvent_Syn(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        };
    }
}
addLoadEvent_Syn(function() {
    if (document.getElementById("li_30") && document.getElementById("li_30").innerHTML.indexOf("Kamera") != false) {
        document.getElementById("li_30").style.display = "none";
        document.getElementById("li_26").style.display = "none";
        document.getElementById("li_29").style.display = "none";
        document.getElementById("element_27_1").onmouseup = function() {
        alert("Bitte wählen Sie einen Kameratyp aus!");
        document.getElementById("element_30_1").checked = true;
        document.getElementById("element_27_1").checked = true;
            document.getElementById("li_30").style.display = "block";
            document.getElementById("li_29").style.display = "none";
            document.getElementById("li_26").style.display = "none";
        }
        document.getElementById("element_27_2").onmouseup = function() {
            document.getElementById("li_30").style.display = "none";
            document.getElementById("li_29").style.display = "block";
            document.getElementById("li_26").style.display = "block";
        }
        document.getElementById("element_27_3").onmouseup = function() {
            document.getElementById("li_30").style.display = "none";
            document.getElementById("li_29").style.display = "block";
            document.getElementById("li_26").style.display = "block";
        }
    }
});
