var ImageWindow;

function ImagePopUp(path, width, height) {
  width+=20;
  height+=30;
  ImageWindow = window.open("" , 'Picture',
  "toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width="+width+",height="+height);

  ImageWindow.document.open();
  ImageWindow.document.write("<html><head><title>Фотография запчасти");
  ImageWindow.document.write("</title></head><body>");
  ImageWindow.document.write("<center><img src="+path+" />");
  ImageWindow.document.write("</center></body></html>");
  ImageWindow.document.close();
  ImageWindow.focus();
  }

