It could have something to do with a javascript library you have on your template? If you have a url where I can view the issue then I could debug, but that is not standard and wouldn't be caused by the insert code itself.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.