// JavaScript For Automatically Updated date and time which is allocated under drop down menu

function startTime() 
{
	var now = new Date();
	
	var day = now.getDay();
	
	var dayName = new Array(7)
		dayName[0] = "Sunday ";
		dayName[1] = "Monday ";
		dayName[2] = "Tuesday ";
		dayName[3] = "Wednesday ";
		dayName[4] = "Thursday ";
		dayName[5] = "Friday ";
		dayName[6] = "Saturday ";
		
	var today = now.getDate();
	
	var seconds = now.getSeconds();
	
	if (seconds < 10)
	{
		seconds = "0" + seconds;
	}
	
	var minutes = now.getMinutes();
	
	if (minutes < 10)
	{
		minutes = "0" + minutes;
	}
	
	var hours = now.getHours();
	
	var status = " AM";
	
	if (hours > 12) 
	{
		hours = hours - 12;
		status = " PM";
	}

	var month = now.getMonth();
	
	var monthName = new Array(12)
		monthName[0] = "January ";
		monthName[1] = "February ";
		monthName[2] = "March ";
		monthName[3] = "April ";
		monthName[4] = "May ";
		monthName[5] = "June ";
		monthName[6] = "July ";
		monthName[7] = "August ";
		monthName[8] = "September ";
		monthName[9] = "October ";
		monthName[10] = "November ";
		monthName[11] = "December ";
		
	var year = now.getFullYear();
	
	document.getElementById('displayTime').innerHTML = dayName[day] + monthName[month] + today + ", "+ year + " | " + hours + " : " +minutes + " : " + seconds + status;
	
	t = setTimeout("startTime()", 1000);
}