function showimage(path, width, height) {
  if (width == 0 || height == 0) {
    alert("Картинка не назначена");
    return false;
  }
  sb = "auto";
  width += 30;
  if (width < 500) {
    width = 500;
    sb = "no";
  }
  if (width > 1010) {
    width = 1020;
    sb = "yes";
  }
  height += 140;
  if (height < 320) {
    height = 320;
    sb = "no";
  }
  if (height > 670) {
    height = 670;
    sb = "yes";
  }
  window.open(path, 'imagewindow', 'left=70,top=20,height=' + height + ',width=' + width + ',menubar=no,resizable=yes,status=no,scrollbars=' + sb);
}



