My reccomendation would be to ditch the text type input, go back to a text area, and set the data type of the field that stores the message to 'text'. That lets it be so freaking huge, you don't have to worry about max size.
In my opinion, one should avoid client side scripting whenever possible. It's too dependent on browser version and user settings.
Hope this helps.