document.forms is an array. document.forms[0]
is the first.
Elements work the same way:
document.forms[0].elements[0].value
, etc.
You can loop until you get the value, and then submit the current form:
document.forms[x].submit()
Diodeus - James MacFarlane
source share