// Write current document date as ddmmmyy and copyright notice.
// If string parsed display that instead.

function update(date)
	{
	if( date.length==0 )
	{
		var now = new Date(document.lastModified);
		var monArray = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
		var yr = now.getYear();

		// Some servers do not return docdate - valid 1996-2010
		if( yr>10 && yr<96 )
		{
			date = "[date unavailable]";
		}
		else
		{
			// If agent interprets year as year-1900 -- e.g. Opera shows year 2000 as 100
			// In this case, calculate actual year as year-100
			if (yr>=100)
			{
				yr=yr-100;
			}
			yr = ((yr<10) ? "0" : "") + yr;
			date = ((now.getDate()<10) ? "0" : "") + now.getDate() + monArray[now.getMonth()] + yr;
		}
	}
	document.write(
		"<p class=update align=center>Updated: " + date + ". Copyright &copy; 1998-2001 S.T. Planken. All rights reserved.<br>" +
		"Reproduction in whole or in part in any form or medium without express written permission is prohibited.<br>" +
		"(If you came to this document directly or if you want to bookmark this site, use the <a target=\"_top\" href=\"index.html\"><font color=\"#808080\">index<\/font><\/a>)"
	)
}