Ok, I'm still not having any luck. Do I have something else out of place that is preventing this from working???
Thanks for the help!!!
Heres the script:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
<html>
<head>
<title>Benefit Reporting</title>
<Script Language="JavaScript">
var ssn_field_length=0;
function TabNext(obj, event, len, next_field) {
if (event == "down"

{
ssn_field_length=obj.value.length;
}
else if (event == "up"

{
if (obj.value.length != ssn_field_length) {
ssn_field_length=obj.value.length;
if (ssn_field_length == len) {
next_field.focus();
}
}
}
}
</Script>
</head>
<form name="Main" action="benefit_data.php" method="post">
<body onload="document.getElementById("ssn_num1"

.focus()">
<div align="center">
<img src="tnologo.gif" />
</div>
<div align="center">
<hr />
<br />
Please enter Social Security:
<table>
<tr>
<td>
<input name="ss_num1" id="ss_num1" type="text" size="3" maxlength="3" onkeydown="TabNext(this,'down',3)" onkeyup="TabNext(this,'up',3,this.form.ss_num2)" />
-
<input name="ss_num2" type="text" size="2" maxlength="2" onkeydown="TabNext(this,'down',2)" onkeyup="TabNext(this,'up',2,this.form.ss_num3)" />
-
<input name="ss_num3" type="text" size="4" maxlength="4" onkeydown="TabNext(this,'down',4)" onkeyup="TabNext(this,'up',4,this.form.submit)" />
</td>
</tr>
</table>
<input type="submit" name="submit" value="SUBMIT">
</div>
</form>
</body>
</html>