function submitForm(retCodeForm)  {
	if(document.retCodeForm.retCode.value == "")
	{
		alert("You must enter a Retailer Code to enter the retailer section of the website");
		document.retCodeForm.retCode.focus()
		return false;
	}

document.retCodeForm.submit();
}

function pageLoad()  {
	document.retCodeForm.retCode.focus()
	}

function updatePublicPrice(publicPurchaseForm)  {
	if(document.publicPurchaseForm.quantity.value == " ")  {
		return false;
	}
	else  {
		document.publicPurchaseForm.submit();
	}
}

function submitPublicForm(publicPurchaseForm) {
	//alert("PayPal Pay-Now integration goes here!!");
	//document.publicPurchaseForm.submit();
	if(document.publicPurchaseForm.urlCode.value == "")  {
			//if (document.publicPurchaseForm.shipCharges.value = "yes")  {
			//	alert("You can not apply both MI Sales Tax and Ship to Canada charges.  If you are a resident of MI and will ship your order to Canada, please disable the option for MI Sales Tax and enable the option for Ship to Canada, and then click SUBMIT ORDER.  Pay Pal will determine if MI Sales Tax applies to your order.");
			//}
			//else  {
			//	return false;
			//}

		return false;
	}
	else  {

	//	alert(document.goPayPalAction.encrypted.value);
		document.goPayPalAction.submit();
	}
}

function applySalesTax(publicPurchaseForm)  {
	if(document.publicPurchaseForm.quantity.value == " ")  {
		return false;
	}
	else  {
		document.publicPurchaseForm.salesTax.value = "yes";
		document.publicPurchaseForm.submit();
	}
}

function noSalesTax(publicPurchaseForm)  {
	if(document.publicPurchaseForm.quantity.value == " ")  {
		return false;
	}
	else  {
		document.publicPurchaseForm.salesTax.value = "no";
		document.publicPurchaseForm.submit();
	}
}

function applyOutState(publicPurchaseForm)  {
	if(document.publicPurchaseForm.quantity.value == " ")  {
		return false;
	}
	else  {
		document.publicPurchaseForm.shipCharges.value = "yes";
		document.publicPurchaseForm.submit();
	}
}

function noOutState(publicPurchaseForm)  {
	if(document.publicPurchaseForm.quantity.value == " ")  {
		return false;
	}
	else  {
		document.publicPurchaseForm.shipCharges.value = "no";
		document.publicPurchaseForm.submit();
	}
}

