function textareaCounter(t, counterField, textLimit){ 
var textLength = t.value.length; 
var counterInput = document.getElementById(counterField); 
if(textLength > textLimit){ 
alert("En Fazla " + textLimit + " karakter girebilirsiniz."); 
t.value=t.value.substring(0,textLimit); 
} 
counterInput.value = (textLimit-parseInt(t.value.length)); 
}
