If you want to add javascript from another source:
1. Choose Insert>Invisible tags>Script
2. In the dialog box, select the language (ex. Javascript), and enter the content of the script.
*note: if you leave the field blank, you can later select the script icon and browse to a text file that contains your script with the properties panel.