// takes the value and limits it to the maxlength passed in


    var isNav, isIE;
    if(parseInt(navigator.appVersion) >= 4) {
      if(navigator.appName == "Netscape")
        isNav = true
      else
        isIE = true;
    }
         
    /* checks while typing*/
    function maxlengthCheck(txt, evtThis, maxlength){
      if(txt.value.length >= maxlength){
        if (isIE)
          event.keyCode = 0 // IE
        else 
          return false;  // Netscape
        maxlengthHack(txt, maxlength);
        return false;
      }
    }
    
    /* checks for pasted in text, etc*/
    function maxlengthHack(txt, maxlength){
      if(txt.value.length >= maxlength){
        txt.value = txt.value.substring(0,maxlength);
      }
    }
  
 