Cut all code between the <script> and </script> tags and paste it to a .js file. Don't include HTML commenting (<!-- and -->), or any other HTML tags. To include the file on the page, use this code:
Code:
<script type="text/javascript" src="filename.js"></script>
Make sure the path to the .js file is correct.
Helps keep your coding cleaner.
Geoserv.