print part of page and close window on focus(cross browser)