
// calculates the Taper thread minumum and maximum Dia // display the resultfunction Threaddia() { var tmd = document.frm.tmd.value; var tpf = document.frm.tpf.value /12; var length = document.frm.length.value ; var total=length; { total = length * (tpf/2); length = tmd-tpf } mp = length; ms = total; // use Math object to chop all numbers after 4 digits document.frm.minimumdiameter.value = mp ; document.frm.taper.value = ms ;}Taper Thread CalculatorThread Maximum DiameterThread Per Foot TPFThread Length (in Programmings)Minimum Diameter:R valuve amount: