function txtSrchKeyPress()
{
	if (window.event.keyCode == 13)
	{
		GroupSearch();
		return false;
	}
}

function GroupSearch()
{
	var t = GetDocumentObject(document, 'txtGrpSearch');
	if (!valTextStr(true, t, 'Group Name', 100))
		return false;
	
	GetDocumentObject(document, 'hidGrpSearch').value = t.value;
	SubmitForm('S', false);
}

function ChooseClass(iGrpClassID)
{
	document.frm.hidID.value = iGrpClassID;
	SubmitForm('G', false);
}

function ChooseGroup(sGrpGuid)
{
	document.frm.hidGrpGuid.value = sGrpGuid;
	SubmitForm('R', false);
}

function FilterChoose(iFilterID)
{
	document.frm.hidFilterID.value = iFilterID;
	SubmitForm("F", false);
}

function SortRecs(iSortID, sFormCmd)
{
	document.frm.hidSortID.value = iSortID;
	SubmitForm(sFormCmd, false);
}

