I'm not all that familiar with using javascript.
When I tried to insert that code in the html template page (on which the PHP script is run from), it failed and gave me an error message for the line:
"with (field)"
I'll give things another go when I get the chance, but the Smarty template system makes things a little more confusing.
Theres a header page, a footer page, a template page and a PHP page. All needed to display and run the contact.php page which visitors see.
