function popUpWin(msg, pic, imgWidth, imgHeight)  {

   if ( navigator.appName == "Netscape" ) {
      winWidth = imgWidth + 25;
      winHeight = imgHeight + 40;
   }
   else {
      winWidth = imgWidth + 30;
      winHeight = imgHeight + 50;
   }

   windowpopUp=window.open("","PicFrame",'toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=yes,width='+winWidth+',height='+winHeight);

   if (windowpopUp.document.images.length > 0) {
      windowpopUp.document.close();
      windowpopUp.close();
      windowpopUp=window.open("","PicFrame",'toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=yes,width='+winWidth+',height='+winHeight);
   }

   offsetX = ( screen.width - (winWidth + 12)) / 2
   offsetY = ( screen.height - (winHeight + 31)) / 2
   windowpopUp.moveTo(offsetX,offsetY);

   windowpopUp.document.write('<html>');
   windowpopUp.document.write('<head>');
   windowpopUp.document.write('<title>' + msg + '</title>');
   windowpopUp.document.write('<link rel=stylesheet href="../style.css" type="text/css">');
   windowpopUp.document.write('</head>');

   windowpopUp.document.write('<body>');
   windowpopUp.document.write('<center>');
   windowpopUp.document.write('<table border=5 bordercolor=gray cellspacing=0 cellpadding=0>');

//   windowpopUp.document.write('<tr><td><img src="' + pic + '"></td></tr>');


   windowpopUp.document.write('<tr><td><img height="' + imgHeight + '" width="' + imgWidth + '"src="' + pic + '"></td></tr>');
   windowpopUp.document.write('<caption align=bottom><div class=caption>' + msg + '</div></caption>');
   windowpopUp.document.write('</table>');
   windowpopUp.document.write('</center>');

   windowpopUp.document.write('</body>');
   windowpopUp.document.write('</html>');

   //bring the finished window forward
   windowpopUp.focus();

   }
