I placed that new code in and it seems to be working fine.
I will place it on the server if you wish.
On a new page I am still not getting any joy on validating a new Captcha that why on the previous page I asked
When applying a Server Validation on Captcha
is the page form selected.
or the captcha "try again"text
or the complete image?