function UpdateCounter(cont){
	maxInput = 1500;
	if (cont.commento.value.length > maxInput){
		alert ("Attenzione: i caratteri a disposizione sono 1500");
		Form.commento.value= cont.commento.value.substring(0,maxInput);
		Disp = 0;
	}
	else{
		Disp = maxInput - cont.commento.value.length;
	}
	cont.Counter.value = Disp;
}
function onTxtFocus(){
	Compute = true;
}

function onTxtBlur(){
	Compute = false;
	UpdateCounter(document.cont);
}
