

now = new Date();
var mon = now.getMonth() + 1;
var yr = now.getYear();
if (yr<1900) {yr = yr + 1900;}



//create the highlight object and determine the total number of highlights (nHigh)
ph = new Photo();

//cycle through the past three months
//sort the output so that the newest highlight comes first
//run through all highlights
for (ic=1;ic<=ph.getSize();ic++) 
{

    document.write("<TR>");
    document.write("<TD valign=top>");
    document.write("<A HREF=" + "'" + ph.getFeaturedPhoto('photo',ic)+ "'" + "ALT='" + ph.getFeaturedPhoto('alttext',ic) + "'>");
    document.write("<IMG SRC=" + "'" + ph.getFeaturedPhoto('smallphoto',ic) + "'" + "ALT='" + ph.getFeaturedPhoto('alttext',ic) + "'>"); 
    document.write("</A>");
    document.write("</TD>");
    document.write("<TD>");
    document.write("<FONT SIZE=-1>");
    document.write(ph.getFeaturedPhoto('text',ic));
    if (ph.getFeaturedPhoto('link',ic) != "")
    {
      document.write("<A HREF=" + "'" + ph.getFeaturedPhoto('link',ic) + "'>");
      document.write(" ... more ... ");
      document.write("</A>");
    }
    document.write("</FONT>");
    document.write("</TD>");
    document.write("</TR>");
  
}
<!-- end photos_1.js -->