Thanks for posting this code. I just want to point out that adding this code will cause the template to fail w3c xhtml validation. This is one reason why I have not included this code in the template package.
Thanks,
Anne
It only fails on the contact page, because of the id "enquiry" is used two times. Normally it doesn't fail for me. I haven't bothered changing the id name, but that shouldn't be a problem.