I've just tried that and it doesnt work either. I cant understand how the action attribute can be changed no problem yet the onsubmit attribute cant.
Can someone try adding the javascript
Code:
var form = document.getElementsByTagName("form")[1];
form.onsubmit = override_submit;
to their newthread.php page and see if they can override the submit handler. Because this has me stumped.