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 Clock() {
	var i;
	
	if (!document.layers && !document.all)
		return;
		
	var runTime = new Date();
	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;
	}

	fmovingtime = "";
	movingtime = hours + ":" + minutes + ":" + seconds /* + " " + dn */;
	for (i=0; i<movingtime.length; i++)
	{
		asc_ch = movingtime.charCodeAt(i);
		if (movingtime.charAt(i) >= '0' && movingtime.charAt(i) <= '9')
			l = 0x6C0;
		else
			l = 0;
		fmovingtime += String.fromCharCode(asc_ch + l);
	}
	movingtime = fmovingtime;		 
	if (document.layers) {
		document.layers.clock.document.write(movingtime);
		document.layers.clock.document.close();
	}
	else if (document.all) {
		clock.innerHTML = movingtime;
	}
}

window.setInterval('Clock()', 1000);
