function MakeArrayday(size) 
{
	this.length = size;
	for(var i = 1; i <= size; i++) 
		this[i] = "";

	return this;
}

function MakeArraymonth(size) 
{
	this.length = size;
	for(var i = 1; i <= size; i++) 
		this[i] = "";
	return this;
}

function funClock() 
{
	var runTime = new Date();
	
	var year=runTime.getYear();

	if (year < 1000)
		year+=1900;
		
	var day=runTime.getDay();
	var month=runTime.getMonth()+1
	if (month<10)
		month="0"+month;
		
	var daym=runTime.getDate();
	if (daym<10)
		daym="0"+daym;

	
	var hours = runTime.getHours();
	var minutes = runTime.getMinutes();
	var seconds = runTime.getSeconds();
	var dn = "AM";
	if (hours >= 12) 
	{
		dn = "PM";
		hours = hours - 12;
	}

	if (hours == 0) 
		hours = 12;

	if (minutes <= 9)
		minutes = "0" + minutes;

	if (seconds <= 9)
		seconds = "0" + seconds;

	movingtime = "<b>"+ daym + "-" + month + "-" + year + " | " + hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
	document.getElementById('clock').innerHTML = movingtime;
	setTimeout("funClock()", 1000);
	
}
