// JavaScript Document

function limit(field, n){
  if (field.value.length>=n){
    field.value = field.value.substring(0, n);
  }
}

