what is the exact code you are pasting into the CMS Window? please post it here
Are you pasting the code into the CMS Window in code View or in design View?
If you are posting it in design view, what does the code look like if you switch to code view?