Hi. I have a page that has the following script embedded in the HTML body.

Code:
<script language="javascript" type="text/javascript">
document.write('<a href="javascript:popupWindow(\'http://www.hitchsource.com/licenseplateholder-pi-27157.html\')"><img src="product_thumb.php?img=images/CU_31002.jpg&amp;w=100&amp;h=78" width="100" height="78" hspace="5" vspace="5" border="0" alt="License Plate Holder" title="License Plate Holder"><br>+Click to zoom</a>'); 
</script>
When I run the W3C code validator on the page, I get the following error message:

The Validator found an end tag for the above element, but that element is not currently open.

The message is referring to the </a> tag. How do I fix the problem with this script?

Thanks in advance!