First yes. form.Submit(); is to be changed with the name of your form, in your case you would use document.post.Submit();
If javascript is executed before the form it won't work because the form wasn't loaded.
You should install Firebug...
And Firefox has it's own error console which is also useful to view if there is something wrong with your script.
edit:
You should also define value attribute within your input or textarea fields.
If javascript is executed before the form it won't work because the form wasn't loaded.
You should install Firebug...
And Firefox has it's own error console which is also useful to view if there is something wrong with your script.
edit:
You should also define value attribute within your input or textarea fields.