<!-- Hide this script from non-JavaScript-enabled browsers
// copyright 2001-2005 by Donald Firesmith
// Print common information at the bottom of the page including:
// Date Last Updated
// An icon for printing the webpage
// Icons for validating the XHTML and CSS files
// A guestbook
// Website statistics


function getShortMonthString(month)
{
  var month_str = String(month);
  switch (month)
  {
    case 0  : {month_str = "Jan."; break;}
    case 1  : {month_str = "Feb."; break;}
    case 2  : {month_str = "Mar."; break;}
    case 3  : {month_str = "Apr."; break;}
    case 4  : {month_str = "May."; break;}
    case 5  : {month_str = "Jun."; break;}
    case 6  : {month_str = "Jul."; break;}
    case 7  : {month_str = "Aug."; break;}
    case 8  : {month_str = "Sep."; break;}
    case 9  : {month_str = "Oct."; break;}
    case 10 : {month_str = "Nov."; break;}
    case 11 : {month_str = "Dec."; break;}
  }
	return month_str;
}

function displayCurrentDate()
{
    var currentDate = new Date();
    var day = currentDate.getDate();
    var month = currentDate.getMonth();
    month = getShortMonthString(month);
    var year = currentDate.getYear();
    if(year < 1900) {year = year + 1900}
    var dateString =
      "<div class='centerAligned'><span class='tiny'><strong>" +
      day + " " + month + " " + year + "</strong></span></div>";
    document.write(dateString);
}

function getMonthString(month)
{
  var month_str = String(month);
  switch (month)
  {
    case 0  : {month_str = "January"; break;}
    case 1  : {month_str = "February"; break;}
    case 2  : {month_str = "March"; break;}
    case 3  : {month_str = "April"; break;}
    case 4  : {month_str = "May"; break;}
    case 5  : {month_str = "June"; break;}
    case 6  : {month_str = "July"; break;}
    case 7  : {month_str = "August"; break;}
    case 8  : {month_str = "September"; break;}
    case 9  : {month_str = "October"; break;}
    case 10 : {month_str = "November"; break;}
    case 11 : {month_str = "December"; break;}
  }    
	return month_str;
}

function displayLastModifiedDateOnly()
 {
    var dateLastModified = new Date(document.lastModified);
    var day = dateLastModified.getDate();
    var month = dateLastModified.getMonth();
alert(month);
    month = getMonthString(month);
    var year = dateLastModified.getYear();
    if(year < 1900) {year = year + 1900}
    var dateString = day + " " + month + " " + year + ".";
    document.write("<span class='tiny'>Last updated on " + dateString + "</span>");
}

function payPal()
{
  document.write("<br />");
  document.write("<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>");
  document.write("<input type='hidden' name='cmd' value='_xclick'>");
  document.write("<input type='hidden' name='business' value='firesmithb@hotmail.com'>");
  document.write("<input type='hidden' name='item_name' value='Donation for use of OPF Website'>");
  document.write("<input type='hidden' name='no_note' value='1'>");
  document.write("<input type='hidden' name='currency_code' value='USD'>");
  document.write("<input type='hidden' name='tax' value='0'>");
  document.write("<input type='hidden' name='return' value='../index.html'>");
  document.write("<input type='hidden' name='cancel_return' value='../index.html'>");
  document.write("<span class='tiny'>Please support this website and:</span><br /><br />");
  document.write("<input type='image' src='http://images.paypal.com/images/x-click-butcc-donate.gif' border='0' name='submit' alt='Make payments with PayPal - it&rsquo;s fast, free and secure!'>");
  document.write("</form>");
}

function printWebpage()
 {
  browserVersion = parseInt(navigator.appVersion);
  if (browserVersion >= 4)
   {window.print();}
  else
   {alert("Please update your browser for this capability.");}
 }

function displayLastModifiedDate()
 {
    var dateLastModified = new Date(document.lastModified);
    var day = dateLastModified.getDate();
    var month = dateLastModified.getMonth();
    month = getMonthString(month);
    var year = dateLastModified.getYear();
    if(year < 1900) {year = year + 1900};
    var dateString = day + " " + month + " " + year + ".";
    var htmlValidationURL = "http://validator.w3.org/check?uri=" + document.URL;
    var cssValidationURL  = "http://jigsaw.w3.org/css-validator/validator?uri=" + document.URL;
    document.write("<div class='centerAligned'><table border='0' cellpadding='10'>\n");
    document.write("<col width='235' /><col width='150' /><col width='170' />\n<tr>\n");
    document.write("<td class='centerAligned'><div class='tiny'>For full navigation, enter website at:<br /><a href='http://www.opfro.org/'>www.opfro.org</a></div></td>\n");
    document.write("<td class='centerAligned'><div class='tiny'>Last updated on<br />" + dateString + "</div></td>\n");
    document.write("<td class='centerAligned'><div class='tiny'><a href='javascript:printWebpage();'><img style='border:0; width:32px; height:32px' src='http://www.opfro.org/Graphics/Printer.gif' alt='Print this webpage' /><br />Print This Webpage</a></div></td>\n");
    document.write("</tr><tr>\n");
    document.write("<td class='centerAligned'><a href=" + htmlValidationURL + "><img style='border:0; width:88px; height:31px' src='/Graphics/valid-xhtml10.png' alt='Recheck XHTML validation of this webpage!'></a></td>\n");
    document.write("<td class='centerAligned'><a href=" + cssValidationURL +  "><img style='border:0; width:88px; height:31px' src='/Graphics/vcss.png'  alt='Recheck CSS validation of this webpage!'></a></td>\n");
    document.write("<td class='centerAligned'><div class='tiny'><img style='border:0; width:87px; height:31px' src='http://www.opfro.org/Graphics/Guestbook.gif' alt='Guest book from Lycos.'><br />\n");
    document.write("<a href='http://htmlgear.lycos.com/guest/control.guest?u=donald_firesmith&i=2&a=view'>Read it!</a> &nbsp; &nbsp;\n");
    document.write("<a href='http://htmlgear.lycos.com/guest/control.guest?u=donald_firesmith&i=2&a=sign'>Please sign it!</a></div></td>\n");
    document.write("</tr><tr>\n");
    document.write("<td class='centerAligned'><a href='http://www.opfro.org/stats/webStatistics.html' target='Contents'><strong>Website Statistics</strong></a></td>\n");
    document.write("<td class='centerAligned'>Visits: 1,620,074</td>\n");
    document.write("<td class='centerAligned'>Hits: 33,138,502</td>\n");
    document.write("</tr>\n</table>\n</div>\n");
}
// stop hiding -->
