function picpage() {

   // You'd have to know how to grab an URL in JS and extract the file name - handled below
   // This method requires cookies

   var varvalue;

   // READ THE COOKIE VALUE FOR THE FILE NAME HERE

   varvalue = get_cookie("picname");

   document.write('<html>');
   document.write('<title>Title goes here</title>');
   document.write('<body background="images/logo45.gif">');

   document.write('<font face="Verdana" size=2 color=FFFFFF>');

   document.write('You selected picture: ' + varvalue);

   document.write('</font>');
   document.write('</body>');
   document.write('</html>');

}



