
function imgpopup(winname, width, height) {
  if (width == "")  width = 450;
  if (height == "")  height = 500;
  if (winname == "")  winname = "popup";
  var top = 0;
  width += 40;
  height += 60;
  var left = (screen.width- width) / 2 ;
  var win_arg = "scrollbars=no,status=no,location=no,toolbar=no,resizable=yes,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;
  window.open("photo.html", winname, win_arg);
}

function imgpopupbg(winname, width, height) {
  if (width == "")  width = 450;
  if (height == "")  height = 500;
  if (winname == "")  winname = "popup";
  var top = 0;
  width += 40;
  height += 60;
  var left = (screen.width- width) / 2 ;
  var win_arg = "scrollbars=no,status=no,location=no,toolbar=no,resizable=yes,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;
  window.open("photo-bg.html", winname, win_arg);
}