function bldpage(imgnum,rtrn_page)


   


  {var imgnxt =0;


   var imgcur =0;


   var imgprv =0;





   imgcur = imgnum; 


   imgnxt = imgnum + 1;


   


   document.writeln('<html>');


   document.writeln('<head>');


   


   document.write('  <SCRIPT LANGUAGE="JavaScript" SRC=scripts\\' + rtrn_page + '.js>');


   document.writeln('  </S' + 'CRIPT>');


   


   


   //* document.writeln('var imgaray = new Array();');


   //* document.writeln('var caption = new Array();');


   


   //* for (ix =0; ix < imgaray.length; ix++)


   //* {    


   //*  document.writeln("imgaray[" + ix + "] = '" + imgaray[ix] + "';"); 


   //*  document.writeln("caption[" + ix + "] = '" + caption[ix] + "';");


   //* }


   document.writeln('  <SCRIPT LANGUAGE="JavaScript">');


   document.writeln('      function goToURL() { window.location = "' + rtrn_page + '.html"}');


   document.writeln('      function mailer()  { window.location = "mailto:beckyhurley@hurleysweb.com";}'); 


   document.writeln('  </S' + 'CRIPT>');


   document.writeln(' ');





  
   document.write('  <SCRIPT LANGUAGE="JavaScript" SRC=scripts\\bldpage.js>');	


   document.writeln('  </S' + 'CRIPT>');


   document.writeln(' ');


  


 


   document.writeln('</head>');








  document.writeln('<body>');

 
  document.writeln('<link rel="stylesheet" type="text/css" href="css/header.css" />');

  document.writeln(' <table align="center">');
  document.writeln('<img src=img/ChristmasHeading2.gif>');
  document.writeln('</table>');
  document.writeln('<span style="cursor: hand"> ');
  document.writeln('<table align="center" width="100%" columns="3">');					 													 
  document.writeln('<td align="center">');
  document.writeln('<img src=img/elfleft.gif  onclick="goToURL()">');																			 	
  document.writeln('</td>');
  document.writeln('<td align="center">')
  document.writeln('<img src=img/mails_1.gif  onclick="mailer()">');
  document.writeln('</td>');
  												 																										
  


  



   //* ---------------------------------------------------------------------------------------- *//


   //*  if the array index is not at the end set the call to bldpage for the next image in the  *// 


   //*  array, otherwise a client on pointrit.gif will go back to previous thumb index page.    *//


   //* ---------------------------------------------------------------------------------------- *//


  


   document.writeln(' <td align="center">');


   if (imgnxt < imgaray.length)


    {


     document.writeln('<img src=img\\elfright.gif onclick="bldpage(' + imgnxt + ",'" + rtrn_page + "')"); 


     document.writeln('">');


    }


   if (imgnxt >= imgaray.length)


    {


     document.writeln('<img src=img\\elfright.gif onclick="goToURL()">');


    }


   document.writeln('</table>');

   



   //* ---------------------------------------------------------------------------------------- *//


   //*  Table to instruct the user how to navigate.                                             *// 


   //* ---------------------------------------------------------------------------------------- *//


   document.writeln('<table width="70%" height="3%" columns=1 align="center">');


   document.writeln('  <td width="100%" align="center">');


     document.write('   <p><font size="-1">Click left Elf to return to thumbnail set. Click right Elf');


   document.writeln(' for next large image within current set.</font></p>');


   document.writeln('</td>');


   document.writeln('</table>');


   


   








   document.writeln('<table width="100%" columns=1 align="center" border="0">');


  //*  document.writeln('<td width="15%" align="left" valign="top" cellspacing="10">');


  //*  document.writeln('<p>');


  //*  document.writeln('<font size="-1">');


  //*  document.writeln(caption[imgcur]);


  //*  document.writeln('</p>');


  //*  document.writeln('</td>');





   document.writeln('  <td width="100%" align="center">');


   document.writeln('   <img src=img\\' + imgaray[imgcur] +'></img>');


   document.writeln('  </td>');


   document.writeln('</table>');  
	 
	 document.writeln('</span>');


   document.writeln('</body>');


   document.writeln('</html>');


   document.close();


  }











