﻿function checkLength(areaObject,maxLength) {
    if (areaObject.value.length>maxLength) {
        areaObject.value=areaObject.value.substr(0,maxLength);
    }
}

function confirm_delete() {
    if (confirm("Are you sure you want this to be PERMANENTLY DELETED?") == true) {
        if (confirm("This deletion is FINAL. Do you wish to proceed?") == true) {
            return (true);
        } else {
            return (false);
        }
    } else {
        return (false);
    }
}