function showImage(id, w, h) {
  href = "/show/image_" + id + ".htm";
  w += 20;
  h += 10;
  sh = screen.height - 80;
  if (document.all) sh -= 40;
  sw = screen.width;
  if (h > sh) h = sh;
  if (w > sw) w = sw;
  posX = sw/2 - w/2;
  posY = sh/2 - h/2;
  if (posY < 0) posY = 0;
  if (posX < 0) posX = 0;
  posCode = (document.all) ? ",left=" + posX + ",top=" + posY : ",screenX=" + posX + ",screenY=" + posY;
  moreWin = window.open (href, "karnavalImage", "status=no, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, width=" + w + ", height=" + h + posCode);
  moreWin.focus();
}
function catalogCard(url) {
  href = url;
  w = 620;
  sh = screen.height - 100;
  if (document.all) sh -= 40;
  sw = screen.width;
  posX = sw/2 - w/2;
  posY = 0;
  if (posX < 0) posX = 0;
  posCode = (document.all) ? ",left=" + posX + ",top=" + posY : ",screenX=" + posX + ",screenY=" + posY;
  catalogCardWin = window.open (href, "karnavalCostumeCard", "status=no, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, width=" + w + ", height=" + sh + posCode);
  catalogCardWin.focus();
}
