// JavaScript Document
var maxchars=50;

function CheckLength()
  {
  with (document.modulo)
    {
    chars=testo.value
    if (chars.length > maxchars)
      {
      testo.value=chars.substr(0,maxchars);
      testo.blur();
      }
    chr.value=maxchars-testo.value.length;
    }
  }
