Querystring data gets truncated
<p>When I check "view source > frame info" on the window produced by the jQuery code below, it cuts off the querystring at the &amp;type=image. I'm url encoding the ampersands properly, right?</p>

<pre><code>Address: ...wp-admin/media-upload.php?post_id=28&amp;type=image&amp;

function wpe_customImages($initcontext)
{
global $post;
?&gt;
&lt;script type="text/javascript"&gt;
jQuery(document).ready(function() {
var fileInput = '';
jQuery('#wpe-uploadAttachments').click(function() {
    fileInput = jQuery(this).prev('input');
    formfield = jQuery('#upload_image').attr('name');
    post_id = jQuery('#post_ID').val();
    tb_show('', 'media-upload.php?post_id='+post_id+'&amp;amp;type=image&amp;amp;TB_iframe=true&amp;amp;wpe_idCustomAttachment=true');
    return false;
});
</code></pre>
