function imgPop(text,imgWidth,imgHeight,winTitle) {
  outputStart='<html><head><title>'+winTitle+'</title></head><body><table border="0" width="100%" height="100%"><tr><td align="center" width="100%" height="100%"><img src="';
  outputEnd='" alt=""></td</tr></table></body></html>';
  imgWidth=imgWidth + 50;
  imgHeight=imgHeight + 50;
  if(imgWidth<51)
    imgWidth=500;
  if(imgHeight<51)
    imgHeight=500;
  imgWindow=window.open('','imgWindow','width='+imgWidth+',height='+imgHeight+',resizable=1');
  imgWindow.focus();
  imgWindow.document.open();
  imgWindow.document.write(outputStart+text+outputEnd);
  imgWindow.document.close();
}

