/*******************************************************************************
Designed by Mike Wright of Page Maker Web Design (www.pagemaker.co.nz)
Copyright (c) Mike Wright (mike@pagemaker.co.nz)
This script can be used freely as long as all copyright messages are intact.

The following line should be in the header section...
<script type="text/javascript" src="../assets/js/copyright.js"></script>
...with the src address adjusted according to where the .js file is stored.

The following line should be in the body somewhere...
<p>Copyright &copy; <script>displayDates (2005)</script> <a href="http://pagemaker.co.nz">Page Maker Limited</a>.</p>
...with the year in brackets changed to the year that the site started.
*******************************************************************************/

var today = new Date ()

function displayDates (startYear) {
	thisYear = today.getYear ()
	if (thisYear == startYear) {
		document.write (startYear)
	}
	else {
		document.write (startYear, " - ", thisYear)
	}
}

function selectYear (startYear) {
	thisYear = today.getYear ()
	for (i = startYear; i <= thisYear; i++) {
		document.write ("<option>", i)
	}
}

function selectDate (x) {
	for (i = 1; i <= x; i++) {
		if (i < 10) {
			document.write ("<option>0", i)
		}
		else {
			document.write ("<option>", i)
		}
	}
}
