This is my function to recognize a leap year.
Sven Reulen.