bad request when trying to print a page using javascript
<p>I am trying to print a page using javascript, and i am getting a "Bad Request" when a new window popsup if i clicked the 'print' button.
 Here is my javascript code that opens a window by capturing the current location and assigning the media css to print.</p>

<pre><code>function printerFriendlyNew() {
    genPopUp = window.open("","printer","toolbar=no,location=no,scrollbars=yes,directories=no,status=yes,menubar=yes,resizable=yes,width=760,height=600");
    genPopUp.location.href = document.location.href + "&amp;css=print";
    if (genPopUp.opener == null) genPopUp.opener = window;
    genPopUp.opener.name = "opener";
}
</code></pre>

<p>Any idea why i get the 'bad request' error ?</p>
