﻿    function SetActive(linkSelected, control, contentSelected, control1) {
        window.document.getElementById(linkSelected).setAttribute("class", "active");
        window.document.getElementById(linkSelected).setAttribute("className", "active");
        window.document.getElementById(contentSelected).setAttribute("class", "show");
        window.document.getElementById(contentSelected).setAttribute("className", "show");

        var linkUnselected = window.document.getElementById(control).value;
        var contentUnselected = window.document.getElementById(control1).value;

        if (linkSelected != linkUnselected) {
            window.document.getElementById(linkUnselected).removeAttribute("class");
            window.document.getElementById(linkUnselected).removeAttribute("className");
            window.document.getElementById(contentUnselected).setAttribute("class", "hidden");
            window.document.getElementById(contentUnselected).setAttribute("className", "hidden");
            window.document.getElementById(control).value = linkSelected;
            window.document.getElementById(control1).value = contentSelected;
        }
    }


    function SubmenuContent(linkSelected, control, contentSelected, control1) {
        window.document.getElementById(contentSelected).setAttribute("class", "show");
        window.document.getElementById(contentSelected).setAttribute("className", "show");
        var linkUnselected = window.document.getElementById(control).value;
        var contentUnselected = window.document.getElementById(control1).value;
        if (linkSelected != linkUnselected) {
            window.document.getElementById(contentUnselected).setAttribute("class", "hidden");
            window.document.getElementById(contentUnselected).setAttribute("className", "hidden");
            window.document.getElementById(control).value = linkSelected;
            window.document.getElementById(control1).value = contentSelected;
        }
    }



   

