var win = window.open('', '_blank', '');
to create a new window
to build the new window's HTML. It contains a button with an "onClick" attribute of "window.print();".
When the new window's print button is clicked with IE6 (I haven't tested with other browsers), nothing happens - no error, but no Windows print dialog either.