Prova con:
codice:
informatica :<input type="text" name="t2" size="30" onfocus="return verifica(this);">