@Hippy - Thanks. I closed off those input tags as well as some img tags in other templates. As for the script, rather than change it, I simply added comment codes insode the <script> tags:
Code:
<script type="text/javascript">
<!--
...
-->
</script>
as I wasn;t sure if the code changes would affect functionality.
At one stage in t he distant past, I think the original version of this style was XHTML Strict, but I got lazy over time