function checkTextArea(sentText, maxChar){ var text = sentText.value; /*alert("here");*/ /*test total length first as a shortcut*/ if (text.length > maxChar) { alert("Your comments field is longer than is allowed. \nThis field may be up to " + maxChar + " characters total. \nYour text is " + text.length + " characters long."); return false; } return true; } /* Copyright © 2000-2002 Trapezoid, Inc. All Rights Reserved. */