Replacing ? from document.location.search
<p>I have the following code which i am using document.location.search in it.. I want to replace the ? with an &amp;.. How i can do that please?</p>

<pre><code>&lt;script language="javascript"&gt;
        document.write("&lt;a href='http://www.gfi.com/downloads/downloads.aspx?pid=fax&amp;lid=en" + document.location.search + "'&gt;&lt;img src='http://images.gfi.com/download-imagery/button-download.png' border='0'&gt;&lt;/a&gt;");
            &lt;/script&gt;
</code></pre>
