JavaScript function to quickly open a print dialog from a new URL