function doStartup()
{
	var txt;
	
	txt = findControl("txtUserID", false);
	if (txt != null)
	{
		txt.focus();
		txt.onkeypress = handleEnterKey;
	}
	
	txt = findControl("txtPassword", false);
	if (txt != null)
	{
		txt.onkeypress = handleEnterKey;
	}
}

function handleEnterKey()
{
	if (event.keyCode == 13)
	{
		var ctrl = findControl("btnLogon", false);
		
		if (ctrl == null)
		{
			ctrl = findControl("lnkLogon", false);
		}
		
		if (ctrl != null)
		{
			// trigger the post action
			__doPostBack(ctrl.id, "");
		}
		
		return false;
	}
	
	return true;
}

