﻿// copyrightYear: Display a copyright year range.
// Arguments:
//		fieldName:	startYear
//
<!-- This Javascript function is used to display the copyright year range. 
function copyrightYear(startYear) {
	// Get the current date
	var dt = new Date();
	var y  = dt.getYear();
	var yEndYear = "";
	// Y2K compliant
	if (y < 1000) y +=1900;
	// If the current year is greater the startYear, then display the range, otherwise just the current year
	if (y > startYear) yEndYear = "-" + y;
	document.write(startYear + yEndYear);
}
