<!-- hide

//	'--------------------------------------------------------------------------
//	'  AUCTIONTEQ SMALL BUSINESS EDITION
//	'  http://www.auctionteq.biz/
//	'
//	'  Copyright 2006 Webspoke Internet Solutions
//	'--------------------------------------------------------------------------


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=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 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; }

//-- END -->
