/*
This boolean function indicates whether a year is or not
a leap year on either the Julian or Gregorian calendar.
Returns TRUE if leap year or FALSE if common year.
Negative years = BC years. There is no calendar year 0 (zero).
DEPENDENCIES:
Is_Valid_Date()
JD_Num()
Inv_JD_Num()
*/
function Is_Leap_Year ($sYearNum, $JorG='G')
{
$Y = trim($sYearNum);
return (Is_Valid_Date ("$Y/2/29", $JorG))? TRUE:FALSE;
}