<!--
function textarea_maxlength(obj,maxlength) {
   /*Validate textarea length before submitting the form*/
	/*When called, needs to send document.formname.textareaname and the number that is the maximum length for the textarea */

    var maxChar = maxlength
    if (obj.value.length > maxChar) {
        diff=obj.value.length - maxChar;
        if (diff>1)
            diff = diff + " characters";
        else
            diff = diff + " character";
            
        obj.value = obj.value.substr(0, maxChar);
        alert("You have reached the limit of " + maxChar + " characters for this field.\n" + "Please reduce your original text by " + diff);
        //alert("This field is limited to " + maxChar + " characters\n" + "Please reduce the text by " + diff);
        obj.focus();
        return (false);
    }
	else return true;
}
//-->

