But, (this is an old post) you could try the solution in this sitepoint blog post - http://www.sitepoint.com/blogs/2005/08/03/fixing-the-onclick-in-dreamweaver/.
Found the setting:
click on Edit, Preferences, Code Format.
Check the setting for "override case of:". put checks in both boxes.
For me, the problem went away.