yOnload () { Printer.showPageSetupDialog(); window.close(); } window.onerror = HandleError;