function tickUpdate()
	{
		d = new Date();
		
		document.getElementById("clock").innerHTML = d.getFullYear() + "-" + updateFormat(d.getMonth() + 1) + "-" + updateFormat(d.getDate()) + " " + updateFormat(d.getHours()) + ":" + updateFormat(d.getMinutes());
		setTimeout("tickUpdate()",5000);
		
	}

function updateFormat(tick)
	{
		
		if (tick < 10)
			{
				i = "0" + tick;
			}
		else
			{
				i = tick;
			}
		
		return i;
	}
