<!-- hide
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function isANumber(theElement)
{
  s = theElement;
  if ( (s == "") || (isNaN(Math.abs(s)) && (s.charAt(0) != '#')))
  {
    return false;
  }
  return true;
}

function isANumberOrBlank(theElement)
{
  s = theElement;
  if ( (isNaN(Math.abs(s)) && (s.charAt(0) != '#')))
  {
    return false;
  }
  return true;
}


function viewPhoto(iAuctionID)
{
	sPageURL = "auction_photo.asp?id=" + iAuctionID;
	photoWindow=window.open(sPageURL,"photoWindow","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,top=20,left=20,width=500,height=400");
}

function openTerms()
{
	sPageURL = "terms_print.asp";
	termsWindow=window.open(sPageURL,"termsWindow","toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1,top=10,left=10,width=600,height=500");
}

function trim(strText) 
{
    // get rid of leading spaces
    while (strText.substring(0,1) == ' ')
        strText = strText.substring(1, strText.length);

    // get rid of trailing spaces
    while (strText.substring(strText.length-1,strText.length) == ' ')
        strText = strText.substring(0, strText.length-1);

    return strText;
}

// jumps to a category page, based on the user selection in header
function jumpToCategory()
{
	if ( document.formSearch.category.value == "Select" )
	{
		return false;
	}
	else	//get value of browse drop-down and jump to new page
	{
		window.location="category_view.asp?id=" + document.formSearch.category.options[document.formSearch.category.selectedIndex].value;

	}
}

function stripSpaces(x) {
    while (x.substring(0,1) == ' ') x = x.substring(1);
    return x;
}

function empty(x) { if (x.length > 0) return false; else return true; }

function show(DOM_Item)
{
	if (document.getElementById) // netscape 6+   IE 5+  - make IE 4 compatible
	{
		thisItem = document.getElementById(DOM_Item).style;
		thisItem.display = "block";
	}
}

function hide(DOM_Item)
{
	if (document.getElementById) 
	{
		thisItem = document.getElementById(DOM_Item).style;
		thisItem.display = "none";
	}
}

function openWasteSites()
{
	sPageURL = "waste_sites.php";
	wasteSitesWindow=window.open(sPageURL,"wasteSitesWindow","toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1,top=10,left=10,width=800,height=550");
}
//-- END -->
