function textLimit(f, c, l) {
 c = document.getElementById(c);
 if (f.value.length > l) f.value = f.value.substring(0,l);
 c.value = (l-f.value.length)>0?l-f.value.length:0;
}
