<input type=text name=text0 onkeypress=woyingjie(this.value,1)>
<input type=text name=text1 onkeypress=woyingjie(this.value,2)>
<input type=text name=text2 onkeypress=woyingjie(this.value,3)>
<input type=text name=text3>
<script>
function woyingjie(hoho,i){
if(hoho.indexOf(".")>-1){
document.all("text"+i).focus();
}
}
</script>
<input type=text name=text1 onkeypress=woyingjie(this.value,2)>
<input type=text name=text2 onkeypress=woyingjie(this.value,3)>
<input type=text name=text3>
<script>
function woyingjie(hoho,i){
if(hoho.indexOf(".")>-1){
document.all("text"+i).focus();
}
}
</script>
<input type=text name=text1 onpropertychange=woyingjie(this.value,2)>
<input type=text name=text2 onpropertychange=woyingjie(this.value,3)>
<input type=text name=text3>
<script>
function woyingjie(hoho,i){
if(hoho.indexOf(".")>-1){
document.all("text"+(i-1)).value=hoho.substring(0,hoho.length-1)
document.all("text"+i).focus();
}
}
</script>