"; var windowUrl = 'about:blank'; var uniqueName = new Date(); var windowName = 'Print' + uniqueName.getTime(); printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=420,height=730'); printWindow.document.write(headstr + oldstr + footstr); printWindow.document.close(); printWindow.focus(); }