﻿function ConfirmDelete() {
    return (window.confirm("Are you sure you want to delete the current record?"));
}

function CheckAll(b) {
    for (var i = 0; i < document.forms[0].elements.length; i++) {
        var e = document.forms[0].elements[i];

        if ((e.type == 'checkbox') && (e.name != b.name) && (e.name.indexOf(b.name.substring(e.name.length - 14, e.name.length)) > -1)) {
            e.checked = b.checked;
        }
    }
}
