function Tab(currentField, nextField)
{
    // Determine if the current field's max length has been reached.

    if (currentField.value.length == currentField.maxLength)
    {
          // Retreive the next field in the tab sequence, and give it the focus.

        document.getElementById(nextField).focus();
    }
}

