Hi Ian,
A lot of times, the javascript error is because of a corrupt cache file in Dreamweaver.
You could try deleting it and then restarting Dreamweaver.
See instructions here: http://assets.webassist.com/technote...ion_issues.pdf
Best regards,
Brian