
function changeMetric(setTo)
{

var x=document.getElementById("searchMenu")
x.useMetric.value=setTo;


x.submit()
}

function faceted()
{

var x=document.getElementById("searchMenu")

x.action="index.jsp";
x.content.value=10;

x.submit()


}
function search()
{

var x=document.getElementById("searchMenu")
this.document.searchMenu.keepVals.value=true;
x.action="index.jsp";
x.content.value=0;

x.submit()


}
function y(viewpage)
{

var x=document.getElementById("searchMenu")
this.document.searchMenu.viewpage.value=viewpage;



}
function changePageSearch(choiceofpage)
{

var x=document.getElementById("searchMenu")
switch(choiceofpage)
{
case "wide":
x.action="index.jsp";
x.content.value=6;
x.searchType.value="or";

break;
case "narrow":
x.action="index.jsp";
x.content.value=6;
x.searchType.value="and";

break;
case "add":
x.action="popupagents.jsp"
break;
case "home":
x.action="index.jsp"
break;
}
x.submit()
}

function navigatePage(choiceofpage)
{

var x=document.getElementById("searchMenu")
x.page.value=choiceofpage;
 x.action="index.jsp";
x.content.value=6;


x.submit()
}
function reload()
{

var x=document.getElementById("searchMenu")

x.action="index.jsp";
x.content.value=6;

x.submit()
}
function order(y)
{

var x=document.getElementById("searchMenu")

	if(x.order.value==y)
		{
		if(x.desc.value==1)
			{
			x.desc.value=0;
			}
	else if(x.desc.value==0)
		{
		x.desc.value=1;
		}
	}

x.order.value=y;
x.action="index.jsp";
x.content.value=6;


x.submit()
}

function viewProp(goToID)
{

var x=document.getElementById("searchMenu")
x.propertyID.value=goToID;
x.action="popupdrilldown.jsp?propertyID="+x.propertyID.value;


x.submit()
}

