First off, Hope you are using Custom HTML
Okay so now you know what to do... If your trying to use Javascript then you better be using no editor. If your using html and the editor keeps changing your code, even when you press the html tag deal that pops up in a window... stop and go back and use no editor Im telling you this to save yourself headaches, HeadOn is not nearly as effective nor as useful.