
var today_date= new Date()
var month=today_date.getMonth()
var today=today_date.getDate()
var year=today_date.getFullYear()

var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");

function init ( )
		{
		  timeDisplay = document.createTextNode ( "" );
		  document.getElementById("clock").appendChild ( timeDisplay );
		}
		
function updateClock ( )
		{
		  var currentTime = new Date ( );
		  var currentHours = currentTime.getHours ( );
		  var currentMinutes = currentTime.getMinutes ( );
		  var currentSeconds = currentTime.getSeconds ( );
		  currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
		  currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
		  var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
		  currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
		  currentHours = ( currentHours == 0 ) ? 12 : currentHours;
		  var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;
		  document.getElementById("clock").firstChild.nodeValue = currentTimeString;
		}


function PrintContent()
		{
			var DocumentContainer = document.getElementById('historyListPanel');
			var WindowObject = window.open('', "TrackHistoryData", 
								  "width=740,height=600,top=200,left=250,toolbars=no,scrollbars=yes,status=no,resizable=yes");
			WindowObject.document.writeln(DocumentContainer.innerHTML);
			WindowObject.document.close();
			WindowObject.focus();
			WindowObject.print();
			WindowObject.close();
		}
