<!--

/**************************************************************************
* Clock Date Script V1.103 by Chiedu Odukwe (c) webmaster@cnodesigns.co.uk
***************************************************************************
* Script is free to use as long as this header is not modified or deleted.
* This script allows you to put current access date and time on page.
* Date appears on page in the format:- "Sun, 20 May 2001 - 12:34 hrs"
* To use add line below to your page:
*
* <script language="JavaScript" src="clock.js"></script>
*
* Ensure that this file is placed in your root folder of your website.
**************************************************************************/

	// Set the clock's font face:
	var f_face = "Verdana";

	// Set the clock's font size (in point):
	var f_size = "1";

	// Set the clock's font color:
	var f_color = "#ffffff";

	// Show the time as well? Yes=1 No=0:
	var sh_time = "0";	


function initArray() 
{
  this.length = initArray.arguments.length
  for (var i = 0; i < this.length; i++)
  this[i+1] = initArray.arguments[i]
}

var MOY = new initArray("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec");
var TheWeek = new Array("Sun","Mon","Tues","Wed","Thur","Fri","Sat");
var TodayDate = new Date(); // Generate Current Date and Time 
var MyDate = TodayDate.getDate(); // Aquire Current Date
var MyDOW = TodayDate.getDay(); // Aquire Current Day of week
var MyMonth = MOY[(TodayDate.getMonth()+1)]; // Aquire Current Month
var MyYear = TodayDate.getYear(); // Aquire Current Year
var mm = TodayDate.getMinutes(); // Aquire Current Minutes
var hh = TodayDate.getHours(); // Aquire Current Hours
if (MyYear < 2000) { MyYear = 1900 + MyYear; } // Y2K Fix
if (TodayDate.getMinutes() < 10) { mm = "0" + mm; }
if (TodayDate.getHours() <10) { hh = "0" + hh; }

// compile the clock output
myclock = '';


myclock += "<font face='" +f_face+ "' font size='" +f_size+ "' font color='" +f_color+ "'>";
myclock += (TheWeek[MyDOW] + ", " + MyDate + " " + MyMonth + " " + MyYear);

// compile time output
var mytime = (hh + ":" + mm + " hrs");

if (sh_time==1){
	document.write(myclock + " - " +mytime+"</font>");
}
else {
	document.write(myclock +"</font>");
}
// -->