    function bigpic(cid, index) {
      var border = 0;
      var legendHeight = 40;
      var bigPicWidth = 640;
      var bigPicHeight = 480;
      var windowWidth = bigPicWidth + 2*border;
      var windowHeight = bigPicHeight + 2*border + legendHeight;
      window.open('bigpic.php?cid='+cid+'&index='+index,'','width='+windowWidth+',height='+windowHeight+',locationbar=no,menubar=no,resizable=no');
    }
