I'm trying to get an action to run when a user clicks on the submit button in a form. The on submit should run a function which I have put between the <head> tags at the start of the page in vbscript tags. It is failing to run the script at all. My code is too long to put in here, so can anyone please explain the bits and bobs I need to add to be able to do this. Thanks.