tx.onkeyup=function() {char_consentiti(this)};
tx.onchange=function() {calcola()};


HO RISOLTO, GRAZIE!!