Thanks Bodzan,
I will submit the form to the current page, with an extra variable sent.
I will then put an if statement that if the variable is set it calls the function.
If not set the function will not be called.
That way the function wont be called when the page is opened originally.
I take it you can replace a grey submit form button with an image.
I just need to read my book and learn how.
Will the above work.
Thanks for yuor help everyone.
Im learning slowly