function findObj(theObj, theDoc)
{
//alert(theObj);
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
 
  return foundObj;
}



function showdiv() {
	document.getElementById('adv_filter').style.display="block";
//	document.getElementById('showlink').style.display="none";
//	document.getElementById('hidelink').style.display="inline";
}

function hidediv() {
	document.getElementById('adv_filter').style.display="none";
//	document.getElementById('showlink').style.display="inline";
//	document.getElementById('hidelink').style.display="none";
}


function showdiv2() {
	document.getElementById('us_detail').style.display="block";
}

function hidediv2() {
	document.getElementById('us_detail').style.display="none";
}

function hidediv3() {
	document.getElementById('us_detail').style.display="none";
	document.getElementById('plusminus').value="+";
}



function changediv(button)
{
	if(button.value=="+")
	{
		showdiv();
		button.value="-";
	}
	else
	{
		hidediv();
		button.value="+";
	}
}

function changediv2(button)
{
	if(button.value=="+")
	{
		showdiv2();
		button.value="-";
	}
	else
	{
		hidediv2();
		button.value="+";
	}
}

