function doCalc(){ var amount_refill = document.forms["cheque"].refill.options[document.forms["cheque"].refill.selectedIndex].value var amount_treatment = document.forms["cheque"].treatment.options[document.forms["cheque"].treatment.selectedIndex].value var price_total = document.forms["cheque"].price; var price = (amount_refill*29.95) + (amount_treatment*59.95) + 9.95; price_total.value = price.toFixed(2) }