function popup(painting) {
  leftPos = 0
  if (screen) {
    leftPos = screen.width-652
  }
  showWindow = window.open(painting, 'popWin', 'width=632,height=700,left='+leftPos+',top=10')
  showWindow.focus
}

