/***********************************************
* Editing functions
***********************************************/

function confirmDelete(msg, url) {
    if (confirm(msg))
        location.replace(url);
}

function anyCheck(form, msg) {
    var total = 0;

    for (var j = 0; j < form.length; j++) {
        var e = form.elements[j];

        if (eval(e.type == "checkbox")) {
            if (eval(e.checked == true)) {
                total += 1;
            }
        }
    }

    if (total < 1) {
        alert(msg);
        return false;
    }
}

