function currentYYMM() {
  var loToday = new Date();
  var liMonth = loToday.getMonth() + 1;
  var liYear  = loToday.getYear();
  if (liYear >= 2000)
    liYear -= 2000;
  else if (liYear >= 100) {
    liYear -= 100;
    //liMonth -= 1;
  }
  return (liYear  < 10 ? "0" : "") + liYear
       + (liMonth < 10 ? "0" : "") + liMonth;
}
function indexLink(asText, asFile, abPara) {
  document.writeln((abPara ? "<p>" : "<br>")
                 + "<a href=\"" + asFile.toLowerCase() + ".html\">"
                 + (asFile == currentYYMM() ? "<b>" : "")
                 + asText
                 + (asFile == currentYYMM() ? "</b>" : "")
                 + "</a>");
}
function navline(asAnchor)
{
  if (asAnchor)
    document.writeln("<a NAME=\"" + asAnchor + "\"></a>");
  document.writeln("<center>");
  document.writeln("<div class=\"Nav\">");
//  document.write("2011: ");
//  document.write("<a href=\"1101.html\">Jan</a> | ");
//  document.write("<a href=\"1102.html\">Feb</a> | ");
//  document.write("<a href=\"1103.html\">Mar</a> | ");
//  document.write("<a href=\"1104.html\">Apr</a> | ");
//  document.write("<a href=\"1105.html\">May</a> | ");
//  document.write("<a href=\"1106.html\">Jun</a> | ");
//  document.write("<a href=\"1107.html\">Jul</a> | ");
//  document.write("<a href=\"1108.html\">Aug</a> | ");
//  document.write("<a href=\"1109.html\">Sep</a> | ");
//  document.write("<a href=\"1110.html\">Oct</a> | ");
//  document.write("<a href=\"1111.html\">Nov</a> | ");
//  document.write("<a href=\"1112.html\">Dec</a><br>");
  document.write("&nbsp;2012: ");
  document.write("<a href=\"1201.html\">Jan</a> | ");
  document.write("<a href=\"1202.html\">Feb</a> | ");
  document.write("<a href=\"1203.html\">Mar</a> | ");
  document.write("<a href=\"1204.html\">Apr</a> | ");
  document.write("<a href=\"beyond.html\">May and Beyond</a><br>");
//  document.write("2010: ");
//  document.write("<a href=\"1001.html\">Jan</a> | ");
//  document.write("<a href=\"1002.html\">Feb</a> | ");
//  document.write("<a href=\"1003.html\">Mar</a> | ");
//  document.write("<a href=\"1004.html\">Apr</a> | ");
//  document.write("<a href=\"1005.html\">May</a> | ");
//  document.write("<a href=\"1006.html\">Jun</a> | ");
//  document.write("<a href=\"1007.html\">Jul</a> | ");
//  document.write("<a href=\"1008.html\">Aug</a> | ");
//  document.write("<a href=\"1009.html\">Sep</a> | ");
//  document.write("<a href=\"1010.html\">Oct</a> | ");
//  document.write("<a href=\"1011.html\">Nov</a> | ");
//  document.write("<a href=\"1012.html\">Dec</a><br>");
//  document.write("<a href=\"beyond.html\">January 2011 and Beyond</a><br>");
//  document.write("2009: ");
//  document.write("<a href=\"0901.html\">Jan</a> | ");
//  document.write("<a href=\"0902.html\">Feb</a> | ");
//  document.write("<a href=\"0903.html\">Mar</a> | ");
//  document.write("<a href=\"0904.html\">Apr</a> | ");
//  document.write("<a href=\"0905.html\">May</a> | ");
//  document.write("<a href=\"0906.html\">Jun</a> | ");
//  document.write("<a href=\"0907.html\">Jul</a> | ");
//  document.write("<a href=\"0908.html\">Aug</a> | ");
//  document.write("<a href=\"0909.html\">Sep</a> | ");
//  document.write("<a href=\"0910.html\">Oct</a> | ");
//  document.write("<a href=\"0911.html\">Nov</a> | ");
//  document.write("<a href=\"0912.html\">Dec</a><br>");
//  document.write("2008: ");
//  document.write("<a href=\"0801.html\">Jan</a> | ");
//  document.write("<a href=\"0802.html\">Feb</a> | ");
//  document.write("<a href=\"0803.html\">Mar</a> | ");
//  document.write("<a href=\"0804.html\">Apr</a> | ");
//  document.write("<a href=\"0805.html\">May</a> | ");
//  document.write("<a href=\"0806.html\">Jun</a> | ");
//  document.write("<a href=\"0807.html\">Jul</a> | ");
//  document.write("<a href=\"0808.html\">Aug</a> | ");
//  document.write("<a href=\"0809.html\">Sep</a> | ");
//  document.write("<a href=\"0810.html\">Oct</a> | ");
//  document.write("<a href=\"0811.html\">Nov</a> | ");
//  document.writeln("<a href=\"0812.html\">Dec</a> | ");
//  document.write("2007: ");
//  document.write("<a href=\"0701.html\">Jan</a> | ");
//  document.write("<a href=\"0702.html\">Feb</a> | ");
//  document.write("<a href=\"0703.html\">Mar</a> | ");
//  document.write("<a href=\"0704.html\">Apr</a> | ");
//  document.write("<a href=\"0705.html\">May</a> | ");
//  document.write("<a href=\"0706.html\">Jun</a> | ");
//  document.write("<a href=\"0707.html\">Jul</a> | ");
//  document.write("<a href=\"0708.html\">Aug</a> | ");
//  document.write("<a href=\"0709.html\">Sep</a> | ");
//  document.write("<a href=\"0710.html\">Oct</a> | ");
//  document.write("<a href=\"0711.html\">Nov</a> | ");
//  document.writeln("<a href=\"0712.html\">Dec</a>");
  document.writeln("<a href=\"recurring.html\">Recurring Events</a>");
  document.writeln("</div>");
  document.writeln("</center>");
  return;
}
function otherCalendars() {
  document.writeln("<center>");
  document.writeln("<div class=\"Nav\"><b>Other Calendars</b><br>");
  document.writeln("<a href=\"http://www.healeyclub.org/events.htm\" target=\"_blank\">A.H. Club of America</a> |");
  document.writeln("<a href=\"http://www.austin-healey.org/\" target=\"_blank\">A.H. Assoc. of S. Calif.</a> |");
  document.writeln("<a href=\"http://clubs.hemmings.com/clubsites/sandiegotriumph/activities.htm\" target=\"_blank\">Triumph Sports Car Club of S.D.</a>");
  document.write("<br>");
  document.writeln("<a href=\"http://www.sandiegomgclub.org/UpcomingEvents/Upcoming%20Events.htm\" target=\"_blank\">S.D. MG Club</a> |");
  document.writeln("<a href=\"http://www.britishcarweek.org/events.html\" target=\"_blank\">BritishCarWeek.org</a> |");
  document.writeln("<a href=\"http://www.desertcruisers.com/index.php?pagename=EventsCalendar&stateid=CA&cityid=SanDiego\" target=\"_blank\">DesertCruisers.com</a> |");
  document.writeln("<a href=\"http://www.streetrodinsider.com/ContentPage.asp?ContentID=227\" target=\"_blank\">StreetRodInsider.com</a>");
  document.writeln("</div>");
  document.writeln("</center>");
  return;
}
function prevLink(asPrev) {
  if (asPrev.length > 0)
    document.writeln("<div class=\"PrevMonth\"><a href=\"" + asPrev.toLowerCase() + ".html\""
    + " title=\"Previous\">&laquo;&laquo;</a></div>");
}
function nextLink(asNext) {
  if (asNext.length > 0)
    document.writeln("<div class=\"NextMonth\"><a href=\"" + asNext.toLowerCase() + ".html\""
    + " title=\"Next\">&raquo;&raquo;</a></div>");
}
function beginMonth(asTitle, asAnchor, asPrev, asNext) {
  document.writeln("<center>");
  document.writeln("<div class=\"Month\">");

  prevLink(asPrev);
  nextLink(asNext);
  document.writeln("<p class=\"MonthTitle\">" + asTitle + "</p>");

  document.writeln("<table class=\"Calendar\" cellspacing=\"1\" cellpadding=\"1\">");
  document.write("<tr>");
  document.write("<th class=\"CalTH\">Sunday</th>");
  document.write("<th class=\"CalTH\">Monday</th>");
  document.write("<th class=\"CalTH\">Tuesday</th>");
  document.write("<th class=\"CalTH\">Wednesday</th>");
  document.write("<th class=\"CalTH\">Thursday</th>");
  document.write("<th class=\"CalTH\">Friday</th>");
  document.write("<th class=\"CalTH\">Saturday</th>");
  document.writeln("</tr>");
  return;
}
function detail(asAnchor,
                asLeftIcon, asLeftURL,
                asRightIcon, asRightURL,
                asDate, asEventName, asEventURL,
                asEventDesc,
                asVenue, asVenueURL,
                asAddress, asMapURL,
                asLine3,
                asHostType, asHostName, asHostURL) {
  var asTgt = "_blank";
  if (asLeftIcon.length == 0)
    document.writeln("<p class=\"DetailNoIcon\">");
  else
    document.writeln("<p class=\"Detail\">");

  if (asAnchor.length > 0)
    document.writeln("<a name=\"" + asAnchor + "\"></a>");

  if (asDate.length > 0)
    document.writeln("<b>" + asDate + "</b><br>");

  if (asLeftIcon.length > 0)
    document.writeln((asLeftURL.length > 0 ? "<a href=\"" + asLeftURL + "\"" +
                     (asLeftURL.substring(0, 3) == "../" ? "" : " target=\"_blank\"") + ">" : "")
                   + "<img src=\"" + asLeftIcon + "\" class=\"LeftIcon\" border=0>"
                   + (asLeftURL.length > 0 ? "</a>" : ""));

  if (asRightIcon.length > 0)
    document.writeln((asRightURL.length > 0 ? "<a href=\"" + asRightURL + "\""
                   + (asRightURL.substring(0, 3) == "../" ? "" : " target=\"_blank\"")
                   + ">" : "")
                   + "<img src=\"" + asRightIcon + "\" class=\"RightIcon\" border=0>"
                   + (asRightURL.length > 0 ? "</a>" : ""));

  if (asEventName.length > 0)
    document.writeln((asEventURL.length > 0 ? "<a href=\"" + asEventURL + "\""
                   + (asEventURL.substring(0, 3) == "../" ? "" : " target=\"_blank\"")
                   + ">" : "")
                   + asEventName
                   + (asEventURL.length > 0 ? "</a>" : ""));

  if (asEventDesc.length > 0)
    document.writeln(asEventDesc);

  if (asVenue.length > 0)
    document.write(" &ndash; "
                 + (asVenueURL.length > 0 ? "<a href=\"" + asVenueURL + "\""
                 + (asVenueURL.substring(0, 4) == "../" ? "" : " target=\"_blank\"")
                 + ">" : "")
                 + asVenue
                 + (asVenueURL.length > 0 ? "</a>" : ""));

  if (asAddress.length > 0)
    document.writeln(", "
                   + (asMapURL.length > 0 ? "<a href=\"" + asMapURL + "\""
                   + (asMapURL.substring(0, 3) == "../" ? "" : " target=\"_blank\"")
                   + ">" : "")
                   + asAddress
                   + (asMapURL.length > 0 ? "</a>" : ""));
  else
    document.writeln("");


  if (asLine3.length > 0)
    document.writeln(asLine3);

  if (asHostName.length > 0) {
    document.writeln((asHostType.length > 0 ? "<br>" + asHostType + "ed by: " : "<center>")
                   + (asHostURL.length > 0 ? "<a href=\"" + asHostURL + "\"" +
                     (asHostURL.substring(0, 3) == "../" ? "" : " target=\"_blank\"") + ">" : "")
                   + asHostName
                   + (asHostURL.length > 0 ? "</a>" : "")
                   + (asHostType.length > 0 ? "" : "</center>"));
  }
  return;
}

