function showimage(path, width, height) {
  if (width == 0 || height == 0) {
    alert("Картинка не назначена");
    return false;
  }
  width += 25;
  if (width < 300) {
    width = 300;
  }
  if (width > 1010) {
    width = 1020;
  }
  height += 95;
  if (height < 320) {
    height = 320;
  }
  if (height > 740) {
    height = 740;
  }
  
  window.open(path, 'imagewindow', 'height=' + height + ',width=' + width + ',menubar=no,resizable=yes,status=no,scrollbars=auto');
}




