You've already recieved some good advice about how to include the JavaScript, but there are a few points I'll raise as an aside.
In reply to Problems with JavaScript from copy/paste sites
by dorward
in thread how to print CGI header
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |