Expected ')' error when document.write with runat=server
<p>I have a page that requires a JavaScript function:</p>

<pre><code>document.write('&lt;head id='Head1' runat='server'/&gt;');
</code></pre>

<p>But, when viewing the page in IE, I keep getting the "done but with errors..." message and when looking, I can see exactly what the problem is. When I 'View Source' I see this:</p>

<pre><code>document.write("&lt;head id="Head1"&gt;&lt;link href="/myPage/WebResource.axd?..." type="text/css" rel="stylesheet" /&gt;&lt;title&gt;
    test
&lt;/title&gt;&lt;/head&gt;");
</code></pre>

<p>It looks like something is putting a carriage return after <code>"&lt;title&gt;"</code> and after the title of the page. Therefore, the ')' is not on the same line as open-parenthesis giving me the error. Any idea how to get this to stop happening? I, personally, couldn't care less that the message is showing in IE, but not my call.</p>
