;;;this code is image submit button, isnt it
Yes, one way of doing it.
;;;may i know the function code
BTW: 'submitForm' was a random name, this can be called anything.
Thre are two things you could do:
Would submit the form to the destination indicated in the action property of the <form> tag (no actual function needed as submit() is a function).
2.. This is the option I use for several reasons. You may want to validate or based on certain values etc direct the user to a different location(s) to the page indicated in the <form> tag, pass certain queryStrings based on some JS
Now in the head of your document:
//do validation, change action location or what ever here then:
Wind is your friend