
		function ajaxHidePriceComp() {
			document.getElementById('price_comp_hide').style.display="none";
			document.getElementById('priceCompTable').style.display="none";
		}
		function hidePriceComp() {
			document.getElementById('price_comp_show').style.display="block";
			document.getElementById('price_comp_hide').style.display="none";
			document.getElementById('priceCompTable').style.display="none";
		}

		function showPriceComp() {
			document.getElementById('price_comp_hide').style.display="block";
			document.getElementById('price_comp_show').style.display="none";
			document.getElementById('priceCompTable').style.display="block";
		}


		function pg_adcost(){
			var sale_amt = document.getElementById('sale_amt').value;
			var ad_amt;
			sale_amt = sale_amt * 1;

			if (sale_amt <= 100) {
				ad_amt = '0.50';
			}
			if (sale_amt > 100 && sale_amt <= 500) {
				ad_amt = (Math.ceil(sale_amt * .5) / 100);
			}
			//if (sale_amt <= 500 && sale_amt >= 200) {
			//	ad_amt = (Math.ceil(sale_amt * .5) / 100);
			//}
			if (sale_amt <= 3500 && sale_amt > 500) {
				ad_amt = (Math.ceil((sale_amt - 500) * .25) / 100) + 2.5 ;
			}
			if (sale_amt > 3500) {
				ad_amt = 10;
			}
			ad_amt = number_format(ad_amt);
			document.getElementById('ad_amount').innerHTML = ad_amt;
		}

		function number_format(mynumber) {
	var newno = (mynumber * 1) + .0001;
	var tempno = newno.toString();
	var aNum = tempno.split(".");
	if (aNum[1] == "undefined") {
		aNum[1] = '0001';
	}
	return (aNum[0] + '.' +  aNum[1].substr(0,2));
}