An algorithm for calculating the weekday of Jan. 1st given a year would be outside the scope of the HTML specification. Similarly, the HTML specification does not describe how you increment a number by 1. IMHO, Chris