   document.getElementById("right_pane").scrollTo(0, 0);
    toggleCloseBtn();
  }
  function toggleCloseBtn(showBtn) {
    let display = 'none';
    if (showBtn)
      display  = 'block';
    document.getElementById("close-btn").style.display = display;
  }
  function onProgClick(index, span) {
    if (visible)
      visible.style.display = 'none';
    visible = document.getElementById("prog_" + index);
    visible.style.display = 'block';
    document.getElementById("right_pane").scrollTo(0, 0);
    curre