﻿function SelectAllCheckboxes(parent, chk) {
    $(parent).find("input:checkbox").each(function () {
        if (this != chk) {
            this.checked = chk.checked;
        }
    });
}

function DeselectAllCheckboxes(parent, chk) {
    $(parent).find("input:checkbox").each(function () {
        if (this != chk) {
            this.checked = false;
        }
    });
}
