function updateAddress() {
    str = '';
    if (document.frmOrder.isInvoiceAddressSameAsShiping.checked) {
        document.frmOrder.invoice_name.value =
            document.frmOrder.shipping_name.value;
		document.frmOrder.invoice_business_name.value =
            document.frmOrder.shipping_business_name.value;
        document.frmOrder.invoice_address.value =
            document.frmOrder.shipping_address.value;
        document.frmOrder.invoice_city.value =
            document.frmOrder.shipping_city.value;
        document.frmOrder.invoice_state.value =
            document.frmOrder.shipping_state.value;
        document.frmOrder.invoice_zip.value =
            document.frmOrder.shipping_zip.value;
        // alert(str);
        return;
    }
}

function updatePrice() {
    var totalPrice = 0.00;
    quantityKegCheck = parseInt(document.frmOrder.quantity_KegCheck.value, 10);
    quantityBottleCheck =
        parseInt(document.frmOrder.quantity_BottleCheck.value, 10);
    if (isNaN(quantityKegCheck)) {
        quantityKegCheck = 0;
        document.frmOrder.quantity_KegCheck.value = quantityKegCheck;
    }
    if (isNaN(quantityBottleCheck)) {
        quantityBottleCheck = 0;
        document.frmOrder.quantity_BottleCheck.value = quantityBottleCheck;
    }
    priceKegCheck = quantityKegCheck * 199.95;
    priceBottleCheck = quantityBottleCheck * 12.95;
    totalPrice = priceKegCheck + priceBottleCheck;

    document.frmOrder.price_KegCheck.value = priceKegCheck.toFixed(2);
    document.frmOrder.price_BottleCheck.value = priceBottleCheck.toFixed(2);
    totalPrice = totalPrice.toFixed(2);
    document.frmOrder.total.value = totalPrice;
}

