prova cosi:
codice:
<input type="text" class="dati" id="IndirizzoIP1" name="IndirizzoIP1" size="1" onkeyup="if(this.value.lastIndexOf('.')==-1)document.getElementById('IndirizzoIP2').focus();">
</input>
<input type="text" class="dati" id="IndirizzoIP2" name="IndirizzoIP2" size="1" onkeyup="if(this.value.lastIndexOf('.')==-1)document.getElementById('IndirizzoIP3').focus();">
</input>