Replaces "window.print" in the iframe viewer