function counter(mlimit) {
	if (document.form.text.value.length > mlimit) 
		document.form.text.value = document.form.text.value.substring(0, mlimit);
	else
		document.form.txarlen.value = mlimit - document.form.text.value.length;
}
