<!-- hide

//	'--------------------------------------------------------------------------
//	'  AUCTIONTEQ SOFTWARE
//	'  http://www.auctionteq.biz/
//	'
//	'  Copyright 2008 Webspoke Internet Solutions
//	'--------------------------------------------------------------------------

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 viewPhoto(iAuctionID)
{
	sPageURL = "auction_photo.asp?id=" + iAuctionID;
	photoWindow=window.open(sPageURL,"photoWindow","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=20,left=20,width=700,height=500");
}
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 creditCardDetails(iMemberID)
{
	sPageURL = "my_account_credit_card.asp?id=" + iMemberID;
	photoWindow=window.open(sPageURL,"creditCardWindow","toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=0,top=200,left=150,width=600,height=250");
}
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 popupWindow(w, h, page)
{
	popupWindowX = window.open(page,"popupWindow","toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1,top=10,left=10,width="+w+",height="+h+"");
}

function changeChildTDs(eTR, sNewTDClassName)
{
// take a TR element and change the className of it's children TDs to new className

	childrenTDs = eTR.childNodes;		
	 for(var i = 0; i < childrenTDs.length; i++)
	 {
		//if (childrenTDs[i].tagName == "TD")
			childrenTDs[i].className = sNewTDClassName;
	 }	
}


//-- END -->