You might want to output all of your javascript through the print statement and the 'here to' block:
print <<endhtml;
<script language="javascript" text="javascript">
var this = 'that';
</script>
endhtml;
This will allow you to cut and paste all of your javascript into the document.
Or you could include your Javascript in the Web document with the script tag in this fashion:
print "<script src='your_javascript_file.js'>";
---
Chris
'You can't get there from here.'