﻿function isMaxLength(txtBox) {
    if (txtBox) {
        return (txtBox.value.length <= 2000);
    }
}

function isMaxLength2(txtBox) {
    if (txtBox) {
        if (txtBox.value.length >= 512) {
            txtBox.value = txtBox.value.substring(0, 511);
        }
    }
}
