Hai fatto un onsubmit="return controlla(document.getElementById('testo').value)) " e non funziona ?