function closeNewWindow() {if (newWindow && !newWindow.closed) {newWindow.close()}}