/* - - - - - - - - - - - - - - - - - - - - - - -
 Common.js
 13. červenec 2004 11:36:47
 - - - - - - - - - - - - - - - - - - - - - - - */

function checkLength (object, length, counter)
{
  if (object.value.length > length)
  {
     object.value = object.value.substr (0, length);
     alert ("Více znaků již není možné vložit.");
  }

  counter.value = length - object.value.length;
}

