function showSlide(slideName, imgWidth, imgHeight)
{
  // Creat variables to hold the various options
  var menuBarOption ='directories=no, location=no,menubar=no,status=no';
  menuBarOption += 'titlebar=no,toolbar=no';
  var frameOption = 'scrollbars=no,width='+(imgWidth+20)+',height='+(imgHeight+90)+',resizeable=no';
  var windowFeatures = menuBarOption + ',' + frameOption;
  
  // Open the window
  var newWin = open("",'myWin',windowFeatures);
  
  //Write HTML Tags to the new window
  newWin.document.writeln('<BODY STYLE="background:#000000" ALIGN="middle">');

  // Write the image to the new window
  newWin.document.writeln('<IMG NAME="slide" SRC="'+slideName+'" WIDTH='+imgWidth+' HEIGHT='+imgHeight+' BORDER=0>');


  // Write a botton to the new window
  newWin.document.writeln('<CENTER>');
  newWin.document.writeln('<HR>');
  newWin.document.writeln('<FORM NAME="form1">');
  newWin.document.writeln('<INPUT TYPE="button" NAME="button1" VALUE="Close" onClick="self.close()">');
  newWin.document.writeln('</FORM>');
  newWin.document.writeln('</CENTER>');

  // Resize the window
//  imgWidth = newWin.document.slide.width;
//  imgHeight = newWin.document.slide.height;
//  self.resizeBy(imgWidth, imgHeight);



  // Close the stream to the document and bring the window to the front
  newWin.document.close();
  newWin.focus();
}
