/**
* filterResults
* Used for applying a refinement through the "filter your results" drop-downs.
**/
function filterResults(filter, selectedIndex)
{
	location = document.resultFilter.elements[filter].options[selectedIndex].value;
}

/**
* sortResults
* Used by the drop-down that allows a user to sort on a given property.
**/
function sortResults(index)
{
	location = document.sortForm.sortKeys.options[index].value;
}

/**
* showNumRecords
* Used by the drop-down that allows a user to specify N number of results per page.
**/
function showNumRecords(index)
{
	location = document.recsPerPageform.recsPerPage.options[index].value;
}

/**
* submitSearch
* Performs validation on a search term (requires a value), and submits the search query.
**/
function submitSearch()
{
	if(document.searchForm.Ntt.value == "")
		alert("Please enter a search term");
	else
		document.searchForm.submit();
}