<!--

//  www.everymanslibrarycollecting.com -- JavaScript image pop-up function.
//  Author:  Jeffrey S. Anderson   Last modified:  01/13/08

function popUp(JPG, Name, W, H)
{    
   day = new Date();
   id = day.getTime();
   
   if (arguments.length < 3) {            		//  Only JPG, or JPG + Name, have been passed, so use default window size
       eval("OpenWindow=window.open('', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=725,height=625,left = 20,top = 20');");
   }
   else {                                        		//  All parameters have been passed, so use window size parameters
       eval("OpenWindow=window.open('', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + W + ",height=" + H + ",left = 20,top = 20');");
   }
   OpenWindow.document.write("<html><title>");
   if (arguments.length < 2)  {        		//  Only JPG passed without a title
       OpenWindow.document.write("Full image");
   }
   else {                                       		//  Title has been passed
       OpenWindow.document.write(Name);
   }
   OpenWindow.document.write("</title><body bgcolor='#669966'><center><br /><img src=" + JPG + " ><br /><br /><br />");
   OpenWindow.document.write("<img src='images/close.jpg' border='1' onclick='self.close();' /></body></html>");
   OpenWindow.document.close();
}

// -->
