Can anyone please help with the following.
I have an email attachment form which I have set up.
It is set up so that it has a few fields which are required fields and others which are optional.
The form works fine and sends the attachment etc.

The issue is that when someone chooses to send a large file attachment they think the form doesn't work because it takes longer to process.
I've added an ajax loading image which works fine and should solve the issue but I obviously have the code in the wrong place on the page becasue the loading image shows whenever I click the submit button and I only want it to show once the form has been checked for validation errors. If the form finds no validation errors it shoudl then show the code.

Can anyone help with this please?
Here's an example of the file thats causing the problems:

http://www.fennultdesign.co.uk/minut.../send-file.php


Any help would be greatly appreciated with this. Thanks in advance.