Adding script tag to document IE7 issue
<p>My page throws an error in IE7 when I appending an script tag the body.</p>

<p>The error occurs on the line that is commented:</p>

<pre><code>&lt;script type="text/javascript"&gt;

cmSetClientID("90065468", false,"www9.blah.com","blah.com");  

 //--&gt; 

&lt;/script&gt;
</code></pre>

<p>This is how I append the script:</p>

<pre><code>var scriptHolder = document.createElement('script'),
            body = window.parent.document.getElementsByTagName('body')[0],
            fn =    "function doMyFn(){//dosomething}";
        scriptHolder.text = fn;
        body.appendChild(scriptHolder);
        window.parent.doMyFn();
</code></pre>
