Having some trouble getting a small app to work across several major browsers. First built it in IE6, then upgraded it to work with Mozilla, but now find that NN4 and NN6 aren't working. The part that's not working is the JavaScript to submit the forms.

I'm using a subroutine to change the values of a bunch of hidden fields to persist the state, and then to submit two forms, one in the same frame and one in a different frame.

For MSIE6, I used FormName.submit() and parent.main.FormName.submit()

Then, to get Mozilla to work, I updated the two JS submits to document.FormName.submit() and parent.main.document.FormName.submit()

What do I need to change to get the other browsers to work?