function changeAuctionStartType(radioButton) {	if(radioButton.checked && radioButton.value == 0) {		document.getElementById('auctionStartDate').disabled = true;		document.getElementById('auctionStartHour').disabled = true;		document.getElementById('auctionStartMin').disabled = true;		document.getElementById('auctionStartMeridiem').disabled = true;		} else if(radioButton.checked && radioButton.value == 1) {		document.getElementById('auctionStartDate').disabled = false;		document.getElementById('auctionStartHour').disabled = false;		document.getElementById('auctionStartMin').disabled = false;		document.getElementById('auctionStartMeridiem').disabled = false;	}}function changeFixedStartType(radioButton) {	if(radioButton.checked && radioButton.value == 0) {		document.getElementById('fixedStartDate').disabled = true;		document.getElementById('fixedStartHour').disabled = true;		document.getElementById('fixedStartMin').disabled = true;		document.getElementById('fixedStartMeridiem').disabled = true;		} else if(radioButton.checked && radioButton.value == 1) {		document.getElementById('fixedStartDate').disabled = false;		document.getElementById('fixedStartHour').disabled = false;		document.getElementById('fixedStartMin').disabled = false;		document.getElementById('fixedStartMeridiem').disabled = false;	}}function changeAcceptOffers(checkBox) {	if(checkBox.checked) {		document.getElementById('fixedOffersDiv').style.display = 'block';	} else {		document.getElementById('fixedOffersDiv').style.display = 'none';	}}function changeAcceptOffersMulti(checkBox,inventoryID) {	if(checkBox.checked) {		document.getElementById('fixedAutoDeclineOffers' + inventoryID).disabled=false;		document.getElementById('fixedAutoAcceptOffers' + inventoryID).disabled=false;	} else {		document.getElementById('fixedAutoDeclineOffers' + inventoryID).disabled=true;		document.getElementById('fixedAutoAcceptOffers' + inventoryID).disabled=true;	}}function changeSellIndividuallyMulti(dropdown,checkbox) {	var selectedQty = dropdown.options[dropdown.selectedIndex].value;		if(selectedQty > 1) {		checkbox.disabled = false;	} else {		checkbox.disabled = true;		checkbox.checked = false;	}}function recalculateAuctionShipping(dropdown,shippingCode,shippingAmount,multiplier) {	var selectedQty;	var shippingTotal;		if(dropdown) {		if(dropdown.options) {			selectedQty = dropdown.options[dropdown.selectedIndex].value;		} else {			selectedQty = dropdown.value;		}	} else {		selectedQty = 0;	}		if(multiplier) {		selectedQty *= multiplier;	}		if(shippingCode == 'cards') {		var full50 = Math.floor(selectedQty/50);		var remainder = selectedQty % 50;		var remainderAmount = 0;		if(remainder == 1) {			remainderAmount = 2;		} else if(remainder == 2) {			remainderAmount = 2;		} else if(remainder == 3) {			remainderAmount = 3;		} else if(remainder >= 4 && remainder <= 8) {			remainderAmount = 6;		} else if(remainder >= 9 && remainder <= 20) {			remainderAmount = 8;		} else if(remainder >= 21 && remainder <= 50) {			remainderAmount = 16;		}		shippingTotal = (full50*16)+remainderAmount;		// USPS Shipping Calculator //		//if(selectedQty == 1) {		//	shippingTotal = 1.35;		//} else if(selectedQty == 2) {		//	shippingTotal = 2.05;		//} else if(selectedQty == 3) {		//	shippingTotal = 2.65;		//} else if(selectedQty > 3) {		//	var extra = (selectedQty - 3) * 0.40;		//	shippingTotal = 2.65 + extra;		//} else {		//	shippingTotal = 0;		//}	} else if(shippingCode == 'boxes') {		// USPS Shipping Calculator //		if(selectedQty == 1) {			shippingTotal = 1.35;		} else if(selectedQty == 2) {			shippingTotal = 2.05;		} else if(selectedQty == 3) {			shippingTotal = 2.65;		} else if(selectedQty > 3) {			var extra = (selectedQty - 3) * 0.40;			shippingTotal = 2.65 + extra;		} else {			shippingTotal = 0;		}	} else if(shippingCode == 'packs') {		// USPS Shipping Calculator //		if(selectedQty == 1) {			shippingTotal = 1.35;		} else if(selectedQty == 2) {			shippingTotal = 2.05;		} else if(selectedQty == 3) {			shippingTotal = 2.65;		} else if(selectedQty > 3) {			var extra = (selectedQty - 3) * 0.40;			shippingTotal = 2.65 + extra;		} else {			shippingTotal = 0;		}	} else if(shippingCode == 'custom') {		shippingTotal = selectedQty*shippingAmount;	} else {		// USPS Shipping Calculator //		if(selectedQty == 1) {			shippingTotal = 1.35;		} else if(selectedQty == 2) {			shippingTotal = 2.05;		} else if(selectedQty == 3) {			shippingTotal = 2.65;		} else if(selectedQty > 3) {			var extra = (selectedQty - 3) * 0.40;			shippingTotal = 2.65 + extra;		} else {			shippingTotal = 0;		}	}			document.getElementById('auctionShipping').innerHTML = "$" + shippingTotal.toFixed(2);}function recalculateFixedShipping(dropdown,checkbox,shippingCode,shippingAmount,multiplier) {	var selectedQty;	if(dropdown) {		if(dropdown.options) {			selectedQty = dropdown.options[dropdown.selectedIndex].value;		} else {			selectedQty = dropdown.value;		}	} else {		selectedQty = 0;	}		if(multiplier) {		selectedQty *= multiplier;	}		if(selectedQty > 1) {		checkbox.disabled = false;		if(document.getElementById('sellIndividuallyDiv')) {			document.getElementById('sellIndividuallyDiv').style.display = 'inline-block';		}	} else {		checkbox.disabled = true;		checkbox.checked = false;		if(document.getElementById('sellIndividuallyDiv')) {			document.getElementById('sellIndividuallyDiv').style.display = 'none';		}	}		if(checkbox.checked) {		if(shippingCode == 'cards') {			document.getElementById('fixedShipping').innerHTML = "See shipping amounts for cards";		} else if(shippingCode == 'boxes') {			document.getElementById('fixedShipping').innerHTML = "See shipping amounts for boxes";		} else if(shippingCode == 'packs') {			document.getElementById('fixedShipping').innerHTML = "See shipping amounts for packs";		} else {			document.getElementById('fixedShipping').innerHTML = "See shipping amounts";		}	} else {		var shippingTotal;			if(shippingCode == 'cards') {			var full50 = Math.floor(selectedQty/50);			var remainder = selectedQty % 50;			var remainderAmount = 0;			if(remainder == 1) {				remainderAmount = 2;			} else if(remainder == 2) {				remainderAmount = 2;			} else if(remainder == 3) {				remainderAmount = 3;			} else if(remainder >= 4 && remainder <= 8) {				remainderAmount = 6;			} else if(remainder >= 9 && remainder <= 20) {				remainderAmount = 8;			} else if(remainder >= 21 && remainder <= 50) {				remainderAmount = 16;			}			shippingTotal = (full50*16)+remainderAmount;			// USPS Shipping Calculator //			//if(selectedQty == 1) {			//	shippingTotal = 1.35;			//} else if(selectedQty == 2) {			//	shippingTotal = 2.05;			//} else if(selectedQty == 3) {			//	shippingTotal = 2.65;			//} else if(selectedQty > 3) {			//	var extra = (selectedQty - 3) * 0.40;			//	shippingTotal = 2.65 + extra;			//} else {			//	shippingTotal = 0;			//}		} else if(shippingCode == 'boxes') {			// USPS Shipping Calculator //			if(selectedQty == 1) {				shippingTotal = 1.35;			} else if(selectedQty == 2) {				shippingTotal = 2.05;			} else if(selectedQty == 3) {				shippingTotal = 2.65;			} else if(selectedQty > 3) {				var extra = (selectedQty - 3) * 0.40;				shippingTotal = 2.65 + extra;			} else {				shippingTotal = 0;			}		} else if(shippingCode == 'packs') {			// USPS Shipping Calculator //			if(selectedQty == 1) {				shippingTotal = 1.35;			} else if(selectedQty == 2) {				shippingTotal = 2.05;			} else if(selectedQty == 3) {				shippingTotal = 2.65;			} else if(selectedQty > 3) {				var extra = (selectedQty - 3) * 0.40;				shippingTotal = 2.65 + extra;			} else {				shippingTotal = 0;			}		} else if(shippingCode == 'custom') {			shippingTotal = selectedQty*shippingAmount;		} else {			// USPS Shipping Calculator //			if(selectedQty == 1) {				shippingTotal = 1.35;			} else if(selectedQty == 2) {				shippingTotal = 2.05;			} else if(selectedQty == 3) {				shippingTotal = 2.65;			} else if(selectedQty > 3) {				var extra = (selectedQty - 3) * 0.40;				shippingTotal = 2.65 + extra;			} else {				shippingTotal = 0;			}		}				document.getElementById('fixedShipping').innerHTML = "$" + shippingTotal.toFixed(2);	}}function recalculateAuctionBIN(dropdown,BIN) {	var selectedQty;	var binTotal;		if(dropdown.options) {		selectedQty = dropdown.options[dropdown.selectedIndex].value;	} else {		selectedQty = dropdown.value;	}		binTotal = BIN * selectedQty;		document.getElementById('auctionBin').innerHTML = "$" + binTotal.toFixed(2);	document.getElementById('binPrice').value = binTotal.toFixed(2);}function checkFixedRelist(dropdown) {	var selectedDuration = dropdown.options[dropdown.selectedIndex].value;	var checkbox = document.getElementById('fixedAutoRelist');		if(selectedDuration == 30) {		checkbox.disabled = false;	} else {		checkbox.disabled = true;		checkbox.checked = false;	}}function createSimpleAuctionStart() {	var divName = 'AuctionSellScreenContent';		document.getElementById(divName).style.display = "none";	document.getElementById(divName + "Saving").style.display = "block";	return true;}function createSimpleAuctionComplete(auctionID) {	var divName = 'AuctionSellScreenContent';	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("ctauction/DisplayConfirmScreen.cgi?auctionID=" + auctionID,divName,1);	return true;}function createSimpleAuctionError(qstr) {	var divName = 'AuctionSellScreenContent';		yuiConnect3("ctauction/DisplaySellScreen.cgi",qstr,divName,1);	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	return true;}function createSimpleAuctionCancel() {		return true;}function createMultiAuctionStart() {	var divName = 'AuctionSellScreenContent';		document.getElementById(divName).style.display = "none";	document.getElementById(divName + "Saving").style.display = "block";	return true;}function createMultiAuctionComplete(auctionIDList) {	var divName = 'AuctionSellScreenContent';	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("ctauction/DisplayMultiConfirmScreen.cgi?auctionIDList=" + auctionIDList,divName,1);	return true;}function createMultiAuctionError(qstr) {	var divName = 'AuctionSellScreenContent';		yuiConnect3("ctauction/DisplayMultiSellScreen.cgi",qstr,divName,1);	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	return true;}function createMultiAuctionCancel() {		return true;}function createGroupAuctionStart() {	var divName = 'AuctionSellScreenContent';		document.getElementById(divName).style.display = "none";	document.getElementById(divName + "Saving").style.display = "block";	return true;}function createGroupAuctionComplete(auctionID) {	var divName = 'AuctionSellScreenContent';	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("ctauction/DisplayGroupConfirmScreen.cgi?auctionID=" + auctionID,divName,1);	return true;}function createGroupAuctionError(qstr) {	var divName = 'AuctionSellScreenContent';		yuiConnect3("ctauction/DisplayGroupSellScreen.cgi",qstr,divName,1);	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	return true;}function createGroupAuctionCancel() {		return true;}function confirmSimpleAuctionStart() {	var divName = 'AuctionSellScreenContent';		document.getElementById(divName).style.display = "none";	document.getElementById(divName + "Saving").style.display = "block";	return true;}function confirmSimpleAuctionComplete(auctionID) {	var divName = 'AuctionSellScreenContent';	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("ctauction/DisplaySuccessScreen.cgi?auctionID=" + auctionID,divName,1);	return true;}function confirmSimpleAuctionError(qstr) {	var divName = 'AuctionSellScreenContent';		yuiConnect3("ctauction/DisplaySellScreen.cgi",qstr,divName,1);	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	return true;}function confirmSimpleAuctionCancel(auctionID) {	//var divName = 'AuctionSellScreenContent';	//yuiConnect3("ctauction/DisplaySellScreen.cgi","auctionID=" + auctionID,divName,1);	//document.getElementById(divName).style.display = "block";	//document.getElementById(divName + "Saving").style.display = "none";		top.location = "/cgi-bin/ctauction/DisplaySellScreen.cgi?auctionID=" + auctionID;		return true;}function confirmNonAuctionCancel(auctionID) {	//var divName = 'AuctionSellScreenContent';	//yuiConnect3("ctauction/DisplaySellScreen.cgi","auctionID=" + auctionID,divName,1);	//document.getElementById(divName).style.display = "block";	//document.getElementById(divName + "Saving").style.display = "none";		top.location = "/cgi-bin/ctauction/DisplayNonSellScreen.cgi?auctionID=" + auctionID;		return true;}function confirmMultiAuctionStart() {	var divName = 'AuctionSellScreenContent';		document.getElementById(divName).style.display = "none";	document.getElementById(divName + "Saving").style.display = "block";	return true;}function confirmMultiAuctionComplete(auctionIDList) {	var divName = 'AuctionSellScreenContent';	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("ctauction/DisplayMultiSuccessScreen.cgi?auctionIDList=" + auctionIDList,divName,1);	return true;}function confirmMultiAuctionError(qstr) {	var divName = 'AuctionSellScreenContent';		yuiConnect3("ctauction/DisplayMultiSellScreen.cgi",qstr,divName,1);	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	return true;}function confirmMultiAuctionCancel(auctionIDList) {	//var divName = 'AuctionSellScreenContent';	//yuiConnect3("ctauction/DisplayMultiSellScreen.cgi","auctionIDList=" + auctionIDList,divName,1);	//document.getElementById(divName).style.display = "block";	//document.getElementById(divName + "Saving").style.display = "none";	top.location = "/cgi-bin/ctauction/DisplayMultiSellScreen.cgi?auctionID=" + auctionID;		return true;}function confirmGroupAuctionStart() {	var divName = 'AuctionSellScreenContent';		document.getElementById(divName).style.display = "none";	document.getElementById(divName + "Saving").style.display = "block";	return true;}function confirmGroupAuctionComplete(auctionID) {	var divName = 'AuctionSellScreenContent';	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("ctauction/DisplayGroupSuccessScreen.cgi?auctionID=" + auctionID,divName,1);	return true;}function confirmGroupAuctionError(qstr) {	var divName = 'AuctionSellScreenContent';		yuiConnect3("ctauction/DisplayGroupSellScreen.cgi",qstr,divName,1);	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	return true;}function confirmGroupAuctionCancel(auctionID) {	//var divName = 'AuctionSellScreenContent';	//yuiConnect3("ctauction/DisplayGroupSellScreen.cgi","auctionID=" + auctionID,divName,1);	//document.getElementById(divName).style.display = "block";	//document.getElementById(divName + "Saving").style.display = "none";	top.location = "/cgi-bin/ctauction/DisplayGroupSellScreen.cgi?auctionID=" + auctionID;		return true;}function successSimpleAuctionClose(itemID) {	var divName = 'AuctionSellScreenContent';	YAHOO.CTAuctions.AuctionSellScreen.hide();	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	var tableRow = document.getElementById('row' + itemID);	if(tableRow) {		showItemInventory2(itemID,"","","","","collapse");		yuiConnect2("inventory/LoadInventoryRow.cgi?searchID=" + getCurrentSearchID() + "&itemID=" + itemID,"showItemInventory" + itemID,0);	} else {		yuiConnect2("inventory/LoadInventory.cgi?searchID=" + getCurrentSearchID(),"inventoryResultsScrollingDiv",1);	}		return true;}function successMultiAuctionClose() {	var divName = 'AuctionSellScreenContent';	YAHOO.CTAuctions.AuctionSellScreen.hide();	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("inventory/LoadInventory.cgi?searchID=" + getCurrentSearchID(),"inventoryResultsScrollingDiv",1);		return true;}function successGroupAuctionClose() {	var divName = 'AuctionSellScreenContent';	YAHOO.CTAuctions.AuctionSellScreen.hide();	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("inventory/LoadInventory.cgi?searchID=" + getCurrentSearchID(),"inventoryResultsScrollingDiv",1);		return true;}function showCTAuctionImages(auctionID) {	yuiConnect2("/cgi-bin/ctauction/ShowCTAuctionImages.cgi?auctionID=" + auctionID,'CTAuctionImagesContent',1);		YAHOO.CTAuctions.CTAuctionImages.show();}function toggleWatch(button,auctionID) {	if(button.value == "Add Watch") {		yuiConnect2("/cgi-bin/ctauction/WatchAuction.cgi?action=add&auctionID=" + auctionID,'watchDiv' + auctionID,0);	} else if(button.value == "Remove Watch") {		yuiConnect2("/cgi-bin/ctauction/WatchAuction.cgi?action=remove&auctionID=" + auctionID,'watchDiv' + auctionID,0);	}}function loadAuctionSearch(p_sType, p_aArgs, queryString) { 	window.location = "Search.cgi?" + queryString;}function getCurrentAuctionSearchID() {	return document.getElementById('searchID').value;}function getAuctionSearchQueryString() {	var form = document.forms['SearchAuctionsForm'];	var auctionSearchText = document.getElementById('auctionSearchText').value;	var set = form.setSearch.value;	var year = form.yearSearch.value;	var team = form.teamSearch.value;	var brand = form.brandSearch.value;	var sport = form.sportSearch.value;	var player = form.playerSearch.value;	var playerQuery = form.playerSearchQuery.value;	var grade = form.gradeSearch.value;	var gradedBy = form.gradedBySearch.value;	var grades = form.gradesSearch.value;	var variation = form.variationSearch.value;	var product = form.productSearch.value;	var seller = form.sellerSearch.value;	var cardAttr = form.cardAttrSearch.value;	var searchID = document.getElementById('searchID').value;	var qstr = 'searchID=' + escape(searchID) + '&auctionSearchText=' + escape(auctionSearchText) + '&set=' + escape(set) + '&year=' + escape(year) + '&team=' +  escape(team) + '&brand=' +  escape(brand) + '&sport=' +  escape(sport) + '&player=' + escape(player) + '&playerQuery=' + escape(playerQuery) + '&grade=' + escape(grade) + '&gradedBy=' + escape(gradedBy) + '&grades=' + escape(grades) + '&variation=' + escape(variation) + '&product=' + escape(product) + '&seller=' + escape(seller) + '&cardAttr=' + escape(cardAttr);	return qstr;}function showAuctionSetSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('setSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=set&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionYearSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('yearSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=year&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionTeamSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('teamSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=team&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionBrandSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('brandSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=brand&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionSportSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('sportSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=sport&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionPlayerSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('playerSearch').value;	var playerQueryValue = document.getElementById('playerSearchQuery').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=player&curValue=" + escape(curValue) + "&playerQuery=" + escape(playerQueryValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionGradeSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('gradeSearch').value;	var gradedByValue = document.getElementById('gradedBySearch').value;	var gradesValue = document.getElementById('gradesSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=grade&curValue=" + escape(curValue) + "&gradedBy=" + escape(gradedByValue) + "&grades=" + escape(gradesValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionVariationSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('variationSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=variation&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionProductSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('productSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=product&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionSellerSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('sellerSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=seller&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function showAuctionCardSearch(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	var curValue = document.getElementById('cardAttrSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=card&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);}function setAuctionSearchClick(checkbox,setID) {	var setValue = document.getElementById('setSearch').value;	setValue = setValue.replace(new RegExp("\t" + setID, 'g'), '');	setValue = setValue.replace(new RegExp(setID + "\t", 'g'), '');	setValue = setValue.replace(new RegExp(setID, 'g'), '');	if(checkbox.checked) {		setValue = (setValue == '') ? setID : setValue + "\t" + setID;	}			document.getElementById('setSearch').value = setValue;}function yearAuctionSearchClick(checkbox,year) {	var yearValue = document.getElementById('yearSearch').value;	yearValue = yearValue.replace(new RegExp("\t" + year, 'g'), '');	yearValue = yearValue.replace(new RegExp(year + "\t", 'g'), '');	yearValue = yearValue.replace(new RegExp(year, 'g'), '');	if(checkbox.checked) {		yearValue = (yearValue == '') ? year : yearValue + "\t" + year;	}			document.getElementById('yearSearch').value = yearValue;}function teamAuctionSearchClick(checkbox,team) {	var teamValue = document.getElementById('teamSearch').value;	teamValue = teamValue.replace(new RegExp("\t" + team, 'g'), '');	teamValue = teamValue.replace(new RegExp(team + "\t", 'g'), '');	teamValue = teamValue.replace(new RegExp(team, 'g'), '');		if(checkbox.checked) {		teamValue = (teamValue == '') ? team : teamValue + "\t" + team;	}			document.getElementById('teamSearch').value = teamValue;}function brandAuctionSearchClick(checkbox,brand) {	var brandValue = document.getElementById('brandSearch').value;	brandValue = brandValue.replace(new RegExp("\t" + brand, 'g'), '');	brandValue = brandValue.replace(new RegExp(brand + "\t", 'g'), '');	brandValue = brandValue.replace(new RegExp(brand, 'g'), '');		if(checkbox.checked) {		brandValue = (brandValue == '') ? brand : brandValue + "\t" + brand;	}			document.getElementById('brandSearch').value = brandValue;}function sportAuctionSearchClick(checkbox,sport) {	var sportValue = document.getElementById('sportSearch').value;	sportValue = sportValue.replace(new RegExp("\t" + sport, 'g'), '');	sportValue = sportValue.replace(new RegExp(sport + "\t", 'g'), '');	sportValue = sportValue.replace(new RegExp(sport, 'g'), '');		if(checkbox.checked) {		sportValue = (sportValue == '') ? sport : sportValue + "\t" + sport;	}			document.getElementById('sportSearch').value = sportValue;}function playerAuctionSearchClick(checkbox,player) {	if(player == 'query') {		document.getElementById('playerSearchQuery').value = checkbox.value;	} else {		if(player == 'displayPlayerSearch') {			toggleDisabled(document.getElementById('playerDisabledBlock'));		}				var playerValue = document.getElementById('playerSearch').value;		playerValue = playerValue.replace(new RegExp("\t" + player, 'g'), '');		playerValue = playerValue.replace(new RegExp(player + "\t", 'g'), '');		playerValue = playerValue.replace(new RegExp(player, 'g'), '');		if(checkbox.checked) {			playerValue = (playerValue == '') ? player : playerValue + "\t" + player;		}						document.getElementById('playerSearch').value = playerValue;	}}function gradeAuctionSearchClick(checkbox,grade) {	if(grade == 'displayGradeSearch') {		if(checkbox.checked) {			document.getElementById('gradedBySearchField').disabled = false;			checkAuctionGradeSearchForm();		} else {			document.getElementById('qualifiersSearchField').disabled = true;			document.getElementById('gradeSearchField').disabled = true;			document.getElementById('gradedBySearchField').disabled = true;		}	}		var gradeValue = document.getElementById('gradeSearch').value;	gradeValue = gradeValue.replace(new RegExp("\t" + grade, 'g'), '');	gradeValue = gradeValue.replace(new RegExp(grade + "\t", 'g'), '');	gradeValue = gradeValue.replace(new RegExp(grade, 'g'), '');		if(checkbox.checked) {		gradeValue = (gradeValue == '') ? grade : gradeValue + "\t" + grade;	} 		document.getElementById('gradeSearch').value = gradeValue;}function variationAuctionSearchClick(checkbox,variation) {	var variationValue = document.getElementById('variationSearch').value;	variationValue = variationValue.replace(new RegExp("\t" + variation, 'g'), '');	variationValue = variationValue.replace(new RegExp(variation + "\t", 'g'), '');	variationValue = variationValue.replace(new RegExp(variation, 'g'), '');		if(checkbox.checked) {		variationValue = (variationValue == '') ? variation : variationValue + "\t" + variation;	}			document.getElementById('variationSearch').value = variationValue;}function productAuctionSearchClick(checkbox,product) {	var productValue = document.getElementById('productSearch').value;	productValue = productValue.replace(new RegExp("\t" + product, 'g'), '');	productValue = productValue.replace(new RegExp(product + "\t", 'g'), '');	productValue = productValue.replace(new RegExp(product, 'g'), '');		if(checkbox.checked) {		productValue = (productValue == '') ? product : productValue + "\t" + product;	}			document.getElementById('productSearch').value = productValue;}function sellerAuctionSearchClick(checkbox,seller) {	if(seller == 'query') {		document.getElementById('sellerSearch').value = checkbox.value;	}}function cardAuctionSearchClick(checkbox,card) {	var cardValue = document.getElementById('cardAttrSearch').value;	cardValue = cardValue.replace(new RegExp("\t" + card, 'g'), '');	cardValue = cardValue.replace(new RegExp(card + "\t", 'g'), '');	cardValue = cardValue.replace(new RegExp(card, 'g'), '');	if(checkbox.checked) {		cardValue = (cardValue == '') ? card : cardValue + "\t" + card;	}				document.getElementById('cardAttrSearch').value = cardValue;}function checkAuctionGradeSearchForm() {	var gradedByField = document.getElementById('gradedBySearchField');	var gradeField = document.getElementById('gradeSearchField');	var qualifierField = document.getElementById('qualifiersSearchField');		var all = false;	var ungraded = false;	var allGraded = false;	var graded = false;	var gradedCount = 0;	var selectedCount = 0;	var sgc = false;	var psa = false;	if(gradedByField) {		for(x=0; x < gradedByField.options.length; x++) {			if(gradedByField.options[x].selected) {				selectedCount++;				if(gradedByField.options[x].value == 'all') { all = true; psa = true; }				else if(all) { gradedByField.options[x].selected = false; }				else {					if(gradedByField.options[x].value == 'ungraded') { ungraded = true; }					else if(ungraded) { gradedByField.options[x].selected = false; }					else {						if(gradedByField.options[x].value == 'graded') { allGraded = true; graded = true; psa = true; }						else if(allGraded) { gradedByField.options[x].selected = false; }						else {							if(gradedByField.options[x].value == 'sgc') { sgc = true; }							if(gradedByField.options[x].value == 'psa') { psa = true; }							graded = true;							gradedCount++;						}					}									}			}		}		if(selectedCount == 0) {			gradedByField.selectedIndex = 0;			all = true;			psa = true;		}		var jsValue = "";		for(x=0; x < gradedByField.options.length; x++) {			if(gradedByField.options[x].selected) {				jsValue = (jsValue == '') ? gradedByField.options[x].value : jsValue + "|" + gradedByField.options[x].value;			}		}		document.getElementById('gradedBySearch').value = jsValue;				if((gradedCount == 1) && (sgc)) {			if(currentGrades == "nonSGC") {				updateAuctionGradesSearchForm('nonSGC');				currentGrades = "SGC";			}		} else {			if(currentGrades == "SGC") {				updateAuctionGradesSearchForm('SGC');				currentGrades = "nonSGC";			}		}	}		var allGrades = false;	var auth = false;	if(gradeField) {		for(x=0; x < gradeField.options.length; x++) {			if(gradeField.options[x].selected) {				if(gradeField.options[x].value == 'all') { allGrades = true; auth = true; }				else if(allGrades) { gradeField.options[x].selected = false; }				else if(gradeField.options[x].value == 'auth') { auth = true; }			}		}		var jsValue = "";		for(x=0; x < gradeField.options.length; x++) {			if(gradeField.options[x].selected) {				jsValue = (jsValue == '') ? gradeField.options[x].value : jsValue + "|" + gradeField.options[x].value;			}		}		document.getElementById('gradesSearch').value = jsValue;	}	//Disable elements here	if(graded) {		gradeField.disabled = false;				if((psa) && (!allGrades) && (!auth)) {			qualifierField.disabled = false;		} else {			qualifierField.disabled = true;			qualifierField.checked = false;		}	} else {		gradeField.disabled = true;		gradeField.selectedIndex = 0;				qualifierField.disabled = true;		qualifierField.checked = false;	}		gradeAuctionSearchClick(qualifierField,'qualifiersSearch');}function updateAuctionGradesSearchForm(current) {	if(current == 'nonSGC') {		var dropDown = document.getElementById('gradeSearchField');		dropDown.options.length = 0;		var i = 0;		var index = 0;		dropDown.options[i++] = new Option('All Grades','all');		dropDown.options[i++] = new Option(100,100);		dropDown.options[i++] = new Option(98,98);		dropDown.options[i++] = new Option(96,96);		dropDown.options[i++] = new Option(92,92);		dropDown.options[i++] = new Option(88,88);		dropDown.options[i++] = new Option(86,86);		dropDown.options[i++] = new Option(84,84);		dropDown.options[i++] = new Option(80,80);		dropDown.options[i++] = new Option(70,70);		dropDown.options[i++] = new Option(60,60);		dropDown.options[i++] = new Option(50,50);		dropDown.options[i++] = new Option(40,40);		dropDown.options[i++] = new Option(30,30);		dropDown.options[i++] = new Option(20,20);		dropDown.options[i++] = new Option(10,10);		dropDown.options[i++] = new Option('Auth','auth');		dropDown.selectedIndex=index;	} else {		var dropDown = document.getElementById('gradeSearchField');		dropDown.options.length = 0;		var i = 0;		var index = 0;		dropDown.options[i++] = new Option('All Grades','all');		for(x = 10; x >= 0; x--) {			if(x == 0) {				dropDown.options[i++] = new Option('Auth','auth');			} else if(x == 7) {				dropDown.options[i++] = new Option(x + '.5',x + '.5');				dropDown.options[i++] = new Option(x,x);			} else if(x == 8) {				dropDown.options[i++] = new Option(x + '.5',x + '.5');				dropDown.options[i++] = new Option(x,x);			} else if(x == 9) {				dropDown.options[i++] = new Option(x + '.5',x + '.5');				dropDown.options[i++] = new Option(x,x);			} else if(x == 10) {				dropDown.options[i++] = new Option(x,x);			} else {				dropDown.options[i++] = new Option(x + '.5',x + '.5');				dropDown.options[i++] = new Option(x,x);			}		}		 		dropDown.selectedIndex=index;	}		document.getElementById('gradesSearch').value = 'all';}function searchAuctionsSubmit(statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	YAHOO.CTAuctions.SearchAuctions.hide();		document.getElementById('searchID').value='';		window.location = "Search.cgi?" + getAuctionSearchQueryString() + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay;		return false;}function checkBoxSubmit(nameValue) {	window.location = "Search.cgi?" + getAuctionSearchQueryString() + "&" + nameValue;		return false;}function jumpAuctionPage(page,sort,statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	window.location = "Search.cgi?page=" + page + "&sort=" + sort + "&" + getAuctionSearchQueryString() + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay;}function resortResults(sort,statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	window.location = "Search.cgi?sort=" + sort + "&" + getAuctionSearchQueryString() + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay;}function refineSearch(action,statusToDisplay,eraToDisplay,formatToDisplay,categoryToDisplay) {	if(action == 'new') {		document.getElementById('searchID').value="";			document.getElementById('auctionSearchText').value="";		document.getElementById('setSearch').value="";		document.getElementById('yearSearch').value="";		document.getElementById('teamSearch').value="";		document.getElementById('brandSearch').value="";		document.getElementById('sportSearch').value="";		document.getElementById('playerSearch').value="";		document.getElementById('playerSearchQuery').value="";		document.getElementById('gradeSearch').value="";		document.getElementById('gradedBySearch').value="";		document.getElementById('gradesSearch').value="";		document.getElementById('variationSearch').value="";		document.getElementById('productSearch').value="";		document.getElementById('sellerSearch').value="";		document.getElementById('cardAttrSearch').value="";	}	YAHOO.CTAuctions.RefineSearchAuctions.hide();	var curValue = document.getElementById('setSearch').value;	var queryValue = document.getElementById('auctionSearchText').value;	yuiConnect2("SearchAuctionBox.cgi?display=set&curValue=" + escape(curValue) + "&auctionSearchText=" + escape(queryValue) + "&statusToDisplay=" + statusToDisplay + "&eraToDisplay=" + eraToDisplay + "&formatToDisplay=" + formatToDisplay + "&categoryToDisplay=" + categoryToDisplay,"SearchAuctionsContent",1);	YAHOO.CTAuctions.SearchAuctions.show();	YAHOO.CTAuctions.SearchAuctions.close.focus();	YAHOO.CTAuctions.SearchAuctions.close.blur();}function saveAuctionSearchStart() {	var divName = "SaveAuctionsSearchContent";	document.getElementById(divName).style.display = "none";	document.getElementById(divName + "Saving").style.display = "block";	return true;}function saveAuctionSearchComplete(searchID) {	var divName = "SaveAuctionsSearchContent";	YAHOO.CTAuctions.SaveAuctionsSearch.hide();	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	document.getElementById('searchID').value = searchID;		yuiConnect2("LoadAuctionSearches.cgi?searchID=" + searchID,"emptyDiv",0);	document.getElementById('removeAuctionsSearchDiv').style.display = "block";		return true;}function saveAuctionSearchError(errorMessage) {	var divName = "SaveAuctionsSearchContent";	var qstr = '&errorMessage=' + escape(errorMessage);	yuiConnect3("SaveAuctionSearch.cgi",getAuctionSearchQueryString() + qstr,"SaveAuctionsSearchContent",1);	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	return true;}function saveAuctionSearchCancel() {	YAHOO.CTAuctions.SaveAuctionsSearch.hide();		return true;}function removeAuctionSearchStart() {	var divName = "RemoveAuctionsSearchContent";	document.getElementById(divName).style.display = "none";	document.getElementById(divName + "Saving").style.display = "block";	return true;}function removeAuctionSearchComplete() {	var divName = "RemoveAuctionsSearchContent";	YAHOO.CTAuctions.RemoveAuctionsSearch.hide();	document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	yuiConnect2("LoadAuctionSearches.cgi?searchID=none","emptyDiv",0);	document.getElementById('removeAuctionsSearchDiv').style.display = "none";	document.getElementById('displaySearchName').innerHTML = "";		return true;}function removeAuctionSearchError(errorMessage) {	var divName = "RemoveAuctionsSearchContent";	var qstr = '&errorMessage=' + escape(errorMessage);	yuiConnect2("RemoveAuctionSearch.cgi?searchID=" + getCurrentAuctionSearchID() + qstr,"RemoveAuctionsSearchContent",1);		document.getElementById(divName).style.display = "block";	document.getElementById(divName + "Saving").style.display = "none";	return true;}function removeAuctionSearchCancel() {	YAHOO.CTAuctions.RemoveAuctionsSearch.hide();		//yuiConnect2("inventory/LoadInventorySearches.cgi?searchID=" + getCurrentSearchID(),"emptyDiv",0);	return true;}function expandSearchTerms() {	var divName = "currentSearchTerms";	var imgName = "currentSearchTermsExpandImg";	var plusRegex = /plus_image.jpg/; 	if(plusRegex.test(document[imgName].src)) {		document[imgName].src = "/images/minus_image.jpg";		document.getElementById(divName).style.display = "block";	} else {		document[imgName].src = "/images/plus_image.jpg";		document.getElementById(divName).style.display = "none";	}	}function auctionImageRemoveUploaded(auctionID,imageNum) {	if(confirm("Are you sure you want to remove an image you have already uploaded?")) {		var removeField = document.getElementById('imageRemove' + auctionID + '-' + imageNum);		var layer1 = document.getElementById('auctionImageUploaded' + auctionID + '-' + imageNum);		var layer2 = document.getElementById('auctionImage' + auctionID + '-' + imageNum);		if((layer1 && layer1.display) || (layer2 && layer2.display)) {			if(layer1) {				layer1.display="none";				}			if(layer2) {				layer2.display="block";				}		} else {			if(layer1) {				layer1.style.display="none";				}			if(layer2) {				layer2.style.display="block";				}		}				removeField.value=1;	}}function auctionImageRemove(auctionID,imageNum) {	var fileField = document.getElementById('imageHandle' + auctionID + '-' + imageNum);	var layer1 = document.getElementById('auctionImage' + auctionID + '-' + imageNum);	var layer2 = document.getElementById('auctionImageNew' + auctionID + '-' + imageNum);	var layer3 = document.getElementById('auctionImageNewName' + auctionID + '-' + imageNum);	if((layer1 && layer1.display) || (layer2 && layer2.display)) {		if(layer1) {			layer1.display="block";			}		if(layer2) {			layer2.display="none";			}	} else {		if(layer1) {			layer1.style.display="block";			}		if(layer2) {			layer2.style.display="none";			}	}		layer3.innerHTML = "";	fileField.value = "";}function auctionImageRemove2(imageNum,form) {	var fileField = document.getElementById(form + 'ImageHandle-' + imageNum);	var layer1 = document.getElementById(form + 'Image-' + imageNum);	var layer2 = document.getElementById(form + 'ImageNew-' + imageNum);	var layer3 = document.getElementById(form + 'ImageNewName-' + imageNum);	if((layer1 && layer1.display) || (layer2 && layer2.display)) {		if(layer1) {			layer1.display="block";			}		if(layer2) {			layer2.display="none";			}	} else {		if(layer1) {			layer1.style.display="block";			}		if(layer2) {			layer2.style.display="none";			}	}		layer3.innerHTML = "";	fileField.value = "";}function auctionImageUploadCheck(fileField,auctionID,imageNum) {	if(checkExt(fileField)) {		var layer1 = document.getElementById('auctionImage' + auctionID + '-' + imageNum);		var layer2 = document.getElementById('auctionImageNew' + auctionID + '-' + imageNum);		var layer3 = document.getElementById('auctionImageNewName' + auctionID + '-' + imageNum);				if((layer1 && layer1.display) || (layer2 && layer2.display)) {			if(layer1) {				layer1.display="none";				}			if(layer2) {				layer2.display="block";				}		} else {			if(layer1) {				layer1.style.display="none";				}			if(layer2) {				layer2.style.display="block";				}		}				layer3.innerHTML = fileField.value;	}}function auctionImageUploadCheck2(fileField,imageNum,form) {	if(checkExt(fileField)) {		var layer1 = document.getElementById(form + 'Image-' + imageNum);		var layer2 = document.getElementById(form + 'ImageNew-' + imageNum);		var layer3 = document.getElementById(form + 'ImageNewName-' + imageNum);				if((layer1 && layer1.display) || (layer2 && layer2.display)) {			if(layer1) {				layer1.display="none";				}			if(layer2) {				layer2.display="block";				}		} else {			if(layer1) {				layer1.style.display="none";				}			if(layer2) {				layer2.style.display="block";				}		}				layer3.innerHTML = fileField.value;	}}function checkExt(fileField) {	var extension = new Array(".gif",".jpg",".jpeg",".png",".bmp");	var fieldvalue = fileField.value;	var thisext = fieldvalue.substr(fieldvalue.lastIndexOf('.'));	for(var i = 0; i < extension.length; i++) {		if(thisext.toLowerCase() == extension[i]) { return true; }	}	alert("The file you selected is not an approved image type.");	fileField.value = "";	return false;}function toggleDisabled(el) {	try {		el.disabled = !el.disabled;	}	catch(E){	}	if (el.childNodes && el.childNodes.length > 0) {		for (var x = 0; x < el.childNodes.length; x++) {			toggleDisabled(el.childNodes[x]);		}	}}function selectPurchaseFromSeller(sellerID,newValue) {	var checkbox_Regex = new RegExp("^purchase\\d+:" + sellerID + "$","");	if(!sellerID) {		checkbox_Regex = new RegExp("^purchase\\d+:","");	}	var elements = document.getElementById('selectPurchaseForm').elements;	for(i = 0; i < elements.length; i++) {		if((elements[i].type == "checkbox") && (checkbox_Regex.test(elements[i].id))) { 			elements[i].checked = newValue;		}	}		if(newValue && sellerID) { 		document.getElementById('actions' + sellerID).innerHTML = "<a class='card' onClick='selectPurchaseFromSeller(" + sellerID + ",false);'>Unselect All Purchases From This Seller</a>";	} else if(!newValue && sellerID) {		document.getElementById('actions' + sellerID).innerHTML = "<a class='card' onClick='selectPurchaseFromSeller(" + sellerID + ",true);'>Select All Purchases From This Seller</a>";	} else if(newValue && !sellerID) {		document.getElementById('actionsALL').innerHTML = "<a class='card' onClick='selectPurchaseFromSeller(\"\",false);'>Unselect All Purchases</a>";	} else if(!newValue && !sellerID) {		document.getElementById('actionsALL').innerHTML = "<a class='card' onClick='selectPurchaseFromSeller(\"\",true);'>Select All Purchases</a>";	}}
