<!--

function textCounter(field, countfield, maxlimit) {
// determine if too many characters entered
if (field.value.length > maxlimit)
// if so, truncate
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}

//-->