How can I open a window and select objects in that window?
===

I have 

    newWindow=window.open(document.URL);
    $('div#header',newWindow.document).hide();
    $('div#footer',newWindow.document).hide();

But it doesn't seem to be working.  Any ideas?