
  function ScreenshotPopup(e) {
    if (screen.width > 640) {
      w = 720;
      h = 580;
    } else {
      w = (screen.width / 4) * 3;
      h = (screen.height / 4) * 3;
    }
    window.open(e, 'CLI_Popup', 'width=' + w + ',height=' + h + ',resizable=YES,scrollbars=YES');
  }

