function calculate_volume(form) { tmpdepth = parseFloat(document.forms["GLCalc"].Input_Depth.value); tmpwidth = parseFloat(document.forms["GLCalc"].Input_Width.value); tmplength = parseFloat(document.forms["GLCalc"].Input_Length.value); var subCalc = ((tmpdepth/12) * (tmpwidth/12) * tmplength) * 7.25 subCalc = Math.round(subCalc*Math.pow(10,1))/Math.pow(10,1); document.forms["GLCalc"].Output_Result.value = subCalc }