function fn_load ()
{
	//fn_loadDate();
	fn_setLogonCursor();
}

function fn_setLogonCursor ()
{
	var ref = null;
	if (document.getElementById)
	{
		if (document.getElementById('txtUsername')) ref = document.getElementById('txtUsername').focus();
	}
	else if (document.all)
	{
		if (document.all.txtUsername) ref = document.all.txtUsername.focus();
	}
}

function fn_loadDate ()
{
	var objClientDate = new Date();
	var intDay, strMonth, intYear, intHours, intMinutes;
	var strClientDate = "";
	var arrMonths = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec");
	
	intDay = objClientDate.getDate();
	strMonth = arrMonths[objClientDate.getMonth()];
	intYear = objClientDate.getFullYear();
	intHours = objClientDate.getHours();
	intMinutes = objClientDate.getMinutes();

	// pad the hours, minutes and days with zeros:
	if (intDay < 10)
	{
		intDay = "0" + intDay;
	}
	if (intHours < 10)
	{
		intHours = "0" + intHours;
	}
	if (intMinutes < 10)
	{
		intMinutes = "0" + intMinutes;
	}

	strClientDate = intDay + " " + strMonth + " " + intYear + " - " + intHours + ":" + intMinutes;
	
	if (document.getElementById) document.getElementById('todayDateTime').innerHTML = "Today's date: " + strClientDate;
	else if (document.all) document.all.todayDateTime.innerHTML = "Today's date: " + strClientDate;
		
	// if a user is logged on, and they've browsed to the home
	// page, the current client data and time needs to be displayed
	/*var ref = document.getElementById('div_date');
	if (ref)
	{
		// ok, can access this div -> now write into it!
		
		
		// output the date!
		ref.innerHTML = "<br />" + strClientDate;
		

	}*/
}/*

function fn_clearUsername ()
{
	var ref = document.getElementById('txtUsername');

	if (ref)
	{
		if (ref.value == "username") ref.value = "";
	}
}*/
