rounding autoSumForm values
<p>I have searched for a few days now trying to find a solution. I have looked at the php.net info, but it seems to be in a different format to my code below. Please could someone show me how to round this sort of calculation. Thank you</p>

<pre><code>function startCalc(){
  interval = setInterval("calc()",1);
}
function calc(){
  one = document.autoSumForm.firstBox.value;
  two = document.autoSumForm.secondBox.value = ((one*20) + (110*20))/17;
three = document.autoSumForm.thirdBox.value;
  four = document.autoSumForm.fourthBox.value = ((three*20) + (150*20))/17;
five = document.autoSumForm.fifthBox.value;
  six = document.autoSumForm.sixthBox.value = ((five*20) + (250*20))/17;
  seven = document.autoSumForm.seventhBox.value = (four*1) - (two*1);
eight = document.autoSumForm.eigthBox.value = (six*1) - (two*1);
}

function stopCalc(){
  clearInterval(interval);
}
</code></pre>
