var currdate = new Date();
var curryear = currdate.getYear();
curryear = curryear + 1900;
var oldcolour=-1;
function onMouseOver()
{
	if(event.srcElement.tagName == "A")
	{	oldcolour = event.srcElement.style.color;
		event.srcElement.style.color = "#FF0000";
	}
	window.event.cancelBubble = true;
}
function onMouseOut()
{
	if (oldcolour!=-1)
	{	if(event.srcElement.tagName == "A")
		{	event.srcElement.style.color = oldcolour;
		}
		window.event.cancelBubble = true;
	}
}
function Init()
{
	if (navigator.appName == "Netscape")
	{	document.linkColor = '#0000FF';
		document.vlinkColor = '#800080';
		document.alinkColor = '#FF0000';
	}
	else
	{	document.onmouseout = onMouseOut;
		document.onmouseover = onMouseOver;
	}
}
function WriteCopywright()
{
  document.write("Copyright &copy; 1996-"+curryear+" ACWS Ltd. &amp; Mike Bussey");
   return;
}
function ConvertDate(argDate)
{
  var lsDate = "" + argDate;
  var lsDayMonth = lsDate.substring(0,3) +", "+ lsDate.substring(4,7);
  var dayofweek= argDate.getDate();
  var thisyear = argDate.getYear();
  if (thisyear < 50)   thisyear = thisyear + 2000;
  if (thisyear < 2000) thisyear = thisyear + 1900;
  return(lsDayMonth +" "+ dayofweek+", "+ thisyear + "");
}
function WriteDate()
{
  document.write(ConvertDate(currdate));
   return;
}
function WriteDateLastMod(LastModDefault)
{
  lastmod = document.lastModified;
  lastmoddate = Date.parse(lastmod);
  moddate = new Date(lastmod);
  if(lastmoddate == 0)
	 document.write(LastModDefault)
  else
  	if (navigator.appVersion >= "4")
  	{
  	document.write(ConvertDate(moddate));
  	}
	else
	{
	document.write(lastmod);
	}
  return;
}
