function submitLink( theStrLinkTarget, theStrLinkType, theStrTag, theStrLinkTerm, theLngResultID )
{
	document.frmSearchBrowseResults.ltarg.value = theStrLinkTarget;
	document.frmSearchBrowseResults.ltype.value = theStrLinkType;
	if ( theStrLinkTerm != null && theStrLinkTerm != '' )
	{
		if ( theStrTag == '' )
			document.frmSearchBrowseResults.lterm.value = theStrLinkTerm;
		else
			document.frmSearchBrowseResults.lterm.value = theStrTag + " \"" + theStrLinkTerm + "\"";
	}
	document.frmSearchBrowseResults.dpos.value  = theLngResultID;
	document.frmSearchBrowseResults.submit();	
	return false;
}

function submitForm(strLinkType, strTerm, strPosition)
{
	document.frmSearchBrowseResults.linktype.value =strLinkType;

	if (strLinkType == 'search')					
		document.frmSearchBrowseResults.ss.value = strTerm;
	else if (strLinkType == 'browsedetails' || strLinkType == 'browse' )
	{
		if ( document.frmSearchBrowseResults.so )
			document.frmSearchBrowseResults.so.value =strTerm;	
		document.frmSearchBrowseResults.sd.value =strTerm;
	}				
	else
		document.frmSearchBrowseResults.sd.value =strTerm;
	
	if (strPosition != '')
		document.frmSearchBrowseResults.dpos.value =strPosition;

	document.frmSearchBrowseResults.submit();	
}

function clearAllQualifiers(lngQualActualCount)
{
	if (lngQualActualCount > 1)			
	{
		var lngQualCount = document.frmSearchBrowseResults.qualifier.length;

		for (var i=0; i < lngQualCount;i++)
		{
			document.frmSearchBrowseResults.qualifier[i].checked="";
		}
	}
	else
	{
		document.frmSearchBrowseResults.qualifier.checked="";
	}
}		

function explodeChecked(lngPosition)
{
	var strCheckExplodeStatus  = eval("document.frmSearchBrowseResults.e_"+lngPosition+".checked")
	if (strCheckExplodeStatus)
	{
		eval("document.frmSearchBrowseResults.s_"+lngPosition+".checked=true")
	}	
}

function focusChecked(lngPosition)
{
	var strCheckFocusStatus  = eval("document.frmSearchBrowseResults.f_"+lngPosition+".checked")

	if (strCheckFocusStatus)
	{
		eval("document.frmSearchBrowseResults.s_"+lngPosition+".checked=true")
	}
}

function selectChecked(lngPosition, strHasExplode, strHasFocus)
{
	var strCheckSelectStatus  = eval("document.frmSearchBrowseResults.s_"+lngPosition+".checked")

	if (!strCheckSelectStatus)
	{
		if (strHasFocus == "Y")
			eval("document.frmSearchBrowseResults.f_"+lngPosition+".checked=false")
		if (strHasExplode == "Y")
			eval("document.frmSearchBrowseResults.e_"+lngPosition+".checked=false")
	}
}