
	function getMinOrder(fz,aryFreightZone) {
			var i;

			for (i = 0; i < aryFreightZone.length; i++) {
				if (aryFreightZone[i][0] == fz){
					return (aryFreightZone[i][1]);
				}
			}
			return 0;
	}
	
	function getFreightZone(st,aryShipTo) {
		var i;

		for (i = 0; i < aryShipTo.length; i++) {
			if (aryShipTo[i][0] == st){
				return (aryShipTo[i][1]);
			}
		}
		return '';
	}

	function evalMeetsMin(aryST,aryFZ) {
		try {
			for (i; i <= aryST.length; i++) {
				if (aryST[i][0] != '') {
					aryFZ[i]/0
				}
			}
		}
		catch(ex) {
			alert(ex);				
		}
	}
	
	
	function submitOrder() {
		var minOrderAmt = lclGetMinOrder();
		var ordTot = document.getElementById("orderTotal").value;
		var shipVia = document.getElementById("shipVia").value;
		var upsConfirm = document.getElementById("upsNotice").checked;
		
		if (minOrderAmt > parseFloat(ordTot)) {
			return confirm("Your order of $" + ordTot + " does not meet the minimum order limit of $" + minOrderAmt + ". You may continue with your order, but your order will NOT ship until your minimum order limit has been reached. \n\n Click OK to continue. \n Click cancel to return to your order.")
		}
		//alert("sv=" + shipVia + " uc=" + upsConfirm)
		if (shipVia=="UPS" && upsConfirm==false) {
			alert("You have selected UPS as your shipping. Please acknowledge this by clicking the checkbox indicating your acceptance of the terms.");
			return false;
		}
		
		
		return true;
	}
	
	function shipto_change(s) {
		//alert(s.options(s.selectedIndex).value);
	}
	
	function getShipTo(st,aryShipTo) {
		var i;

		for (i = 0; i < aryShipTo.length; i++) {
			if (aryShipTo[i][0] == st){
				return (aryShipTo[i]);
			}
		}
		
		return new Array();
	}