I am needing to write a script to check forms as they are submitted. The trick is I can't go through and add a onsubmit to each form tag. I can only add add code to the beginning and end of the page. One though I had was to use javascript to add onsubmit events to each form when the page comes up, but I can't figure out how to set an onsubmit action thorugh javascript and not in the form tag. Any help would be greatly appreciated.