Help... CS4 disabling Javascript functions?

Hello! I am working with an older (CS3) file in CS4. I have some simple javascript on an actions frame on the site. Example:

commercial_btn.onRelease = function() {
getURL("JavaScript:openWin('commerical.html', '600', '620')");

For some reason this code is being disabled when I publish. When I click on it in preview, it brings up a browser window. But when I publish it, on my computer that is not connected to the internet, it says something like “Adobe flash player has stopped…” and when I test it on the computer which is connected to the internet, it doesn’t do anything at all. Only one Javascript pop up works - it has slightly different code and is in a different place. I tried applying the code to these other buttons but no luck. HELP! Thank you…