Function Tofocus (itemname) // Press Enter the next location
{
Var a
a = evAl ("Document.vouch." itemname)
a.focus ()
}
Use οNKEYPRESS = "JavaScrip: if (Window.Event.KeyCode == 13) {TOFOCUS ('NextFormName')} to extract the next control name
(Source: Developer Club)