﻿
function ManageLccCalendarState(sourceCheckBoxlId, targetCheckBoxId) {
    if (document.getElementById(sourceCheckBoxlId).checked) {
        SetControlActivity(targetCheckBoxId, true);
    }
    else {
        SetControlActivity(targetCheckBoxId, false);
    }
}

function SetControlActivity(controlId, isDisabled) {
    if (document.getElementById(controlId) != null) {
        document.getElementById(controlId).disabled = isDisabled;
    }
}
