Please post a link to the page on your site that contains the problematic script so we can check it out.
Using dreamweaver can bring up countless problems. It is a lot easier to use than learning html, but you are better off learning how to manually write out the code. Also, because you didn't actually write out the code, it is a lot harder to debug it as you may not understand what it all does.
If you want to continue using dreamweaver, that's fine by me, but you would be better off learning html (in my opinion).