Here is the javascript program to generate the year count at left:
yearCount = 0;
/* First, count the years from 490 B.C. to 1 B.C. */
for (yearBC=490; yearBC>0; yearBC--) {
document.write ("September, " + yearBC + " BC: " + yearCount);
document.write ("\n"); /*line break*/
yearCount++; /*increment count of years*/
}
/* Now count starting in A.D. 1 */
for (yearAD=1; yearAD<=2011; yearAD++) {
document.write ("September, AD " + yearAD + ": " + yearCount);
document.write ("\n");
yearCount++;
}
This web page is provided by DanAxtell.com to help race organizers schedule their marathon anniversary commemorations.