This script checks if all the images have finished loading
I have intentionally used big images that take time to load...
The document has downloaded!
If you refresh the page the forms wont reset, need to fix this.