var strText = '';

strText += '<SCRIPT language="JavaScript" type="text/javascript">\r\n';
strText += '	<!--\r\n';
strText += '	\r\n';
strText += '	function arrayOfDayNames() {\r\n';
strText += '	        this[0] = "Sunday";\r\n';
strText += '	        this[1] = "Monday";\r\n';
strText += '	        this[2] = "Tuesday";\r\n';
strText += '	        this[3] = "Wednesday";\r\n';
strText += '	        this[4] = "Thursday";\r\n';
strText += '	        this[5] = "Friday";\r\n';
strText += '	        this[6] = "Saturday";\r\n';
strText += '	}\r\n';
strText += '	\r\n';
strText += '	function dayNames(dayName) {\r\n';
strText += '	        var dayNames = new arrayOfDayNames();\r\n';
strText += '	\r\n';
strText += '	        return dayNames[dayName];\r\n';
strText += '	}\r\n';
strText += '	\r\n';
strText += '	function arrayOfMonthNames() {\r\n';
strText += '	        this[0] = "January";\r\n';
strText += '	        this[1] = "February";\r\n';
strText += '	        this[2] = "March";\r\n';
strText += '	        this[3] = "April";\r\n';
strText += '	        this[4] = "May";\r\n';
strText += '	        this[5] = "June";\r\n';
strText += '	        this[6] = "July";\r\n';
strText += '	        this[7] = "August";\r\n';
strText += '	        this[8] = "September";\r\n';
strText += '	        this[9] = "October";\r\n';
strText += '	        this[10] = "November";\r\n';
strText += '	        this[11] = "December";\r\n';
strText += '	}\r\n';
strText += '	\r\n';
strText += '	function monthNames(month) {\r\n';
strText += '	        var monthNames = new arrayOfMonthNames();\r\n';
strText += '	\r\n';
strText += '	        return monthNames[month];\r\n';
strText += '	}\r\n';
strText += '	\r\n';
strText += '	var strMyDate = "";\r\n';
strText += '	\r\n';
strText += '	function getFullYear(d){\r\n';
strText += '	    var y = d.getYear();\r\n';
strText += '	    if (y < 1000) y += 1900;\r\n';
strText += '	    return y;\r\n';
strText += '	}\r\n';
strText += '		\r\n';
strText += '	function myDate(){\r\n';
strText += '	        var d = new Date();\r\n';
strText += '	        var dayname = dayNames(d.getDay());\r\n';
strText += '	        var daynumber = d.getDate();\r\n';
strText += '	        var month = monthNames(d.getMonth());\r\n';
strText += '	        var year = getFullYear(d);\r\n';
strText += '	        \r\n';
strText += '	        strMyDate =  dayname + " " + daynumber + " " + month + " "+ year;\r\n';
strText += '	}\r\n';
strText += '	\r\n';
strText += '	\r\n';
strText += '	//-->\r\n';
strText += '<\/SCRIPT>\r\n';
strText += '\r\n';
strText += '<div class="M2Date">\r\n';
strText += '<SCRIPT language="JavaScript" type="text/javascript">\r\n';
strText += '\r\n';
strText += '		<!-- Hide from old browsers \r\n';
strText += '		myDate();\r\n';
strText += '		document.write(strMyDate)\r\n';
strText += '		// End Hide -->\r\n';
strText += '</SCRIPT>\r\n';
strText += '		\r\n';
strText += '		\r\n';
strText += '<SCRIPT language="JavaScript" type="text/javascript">\r\n';
strText += '		<!-- Hide from old browsers \r\n';
strText += '		var now=new Date()\r\n';
strText += '		var don="am"\r\n';
strText += '		var hrs=now.getHours()\r\n';
strText += '		var min=now.getMinutes()\r\n';
strText += '		var str = navigator.userAgent.toLowerCase();	\r\n';
strText += '		if (hrs>=12){ don="pm" }\r\n';
strText += '		if (hrs>12) { hrs-=12 }\r\n';
strText += '		if (hrs==0) { hrs=12 }\r\n';
strText += '		if (hrs<10) { hrs="0"+hrs }\r\n';
strText += '		if (min<10) { min="0"+min }\r\n';
strText += '		\r\n';
strText += '		document.write(" " + hrs + ":" + min + don);\r\n';
strText += '			\r\n';
strText += '		//-->\r\n';
strText += '<\/SCRIPT>\r\n';
strText += '</div>\r\n';
document.write(strText);

