﻿function switchFQVisibility(switcher, btnFQ, divFQ) {
    var btn = document.getElementById(btnFQ);
    var div = document.getElementById(divFQ);
    if (btn != null && div != null) {
        if (switcher) {
            btn.style.display = "none";
            div.style.display = "block";
        }
        else {
            btn.style.display = "block";
            div.style.display = "none";
        }
    }
}

function switchSubmitControlsVisibility(switcher, divComment) {
    var divComment = document.getElementById(divComment);
    if (divComment != null) {
        if (switcher) {
            divComment.style.display = "block";
        }
        else {
            divComment.style.display = "none";
        }
    }
}
