	function fnTimer()
	{
		seconds = seconds + 1;
		if (seconds == 60)
		{
			seconds = 0;
			minutes = minutes + 1
			if (minutes == 60)
			{
				minutes = 0;
				hours = hours + 1
				if (hours == 24)
				{
					hours = 0;
					cur_date.setDate(cur_date.getDate() + 1);
				}
			}
		}
		if (hours<13)
		{
			if (hours<10)
				temp = "0" + hours;
			else
				temp = hours;
		}
		else
		{
			if (hours - 12 < 10)
				temp = "0" + (hours - 12);
			else
				temp = hours - 12;
		}

		if (minutes<10)
			temp = temp + ":" + "0" + minutes;
		else
			temp = temp + ":" + minutes;

		if (seconds<10)
			temp = temp + ":" + "0" + seconds;
		else
			temp = temp + ":" + seconds;

		if (hours<12)
			temp = temp + " AM";
		else
			temp = temp + " PM";

		temp_date = cur_date.getDate() + "-" + scwMonthName[cur_date.getMonth()] + "-" + cur_date.getFullYear();

		document.all["ap"].innerHTML = temp_date + "&nbsp;&nbsp;&nbsp;" + temp;
//		window.status = temp;

		window.setTimeout("fnTimer()",1000);
	}