// JavaScript Document

 function limitComment_500(frm) {
 if(frm.comment.value.length > 500) {
   alert('Too much data in the text box! Please remove '+
    (frm.comment.value.length - 500)+ ' characters');
   return false; }
 else
   return true; }