// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
 function ok(maxchars) {
  if(document.ourform.box.value.length > maxchars) {
    alert('Too much data in the text box! Please remove '+
     (document.ourform.box.value.length - maxchars)+ ' characters');
   return false; }
  else
    return true;} 