... onclick="AbilitaText()">

function Abilita()
{
for(i=0;i<document.forms[0].elements.length;i++)
{
...