/* The is for the simple caculator - debtors less overdtaft (no 90 days). <script type="text/javascript" language="JavaScript" src="ScriptLibrary/calculator_simple_advance.js"></script>  */
<!-- Begin
function startCalc(){
  interval = setInterval("calc()",1);
  }
function calc(){
  one = document.autoSumForm.firstBox.value;
  two = document.autoSumForm.secondBox.value; 
  three = document.autoSumForm.forthBox.value; 
  document.autoSumForm.thirdBox.value = Math.round((((three * 1) * ((two * 1)))/100) - (one * 1));
 
}
function stopCalc(){
  clearInterval(interval);
}
function add(){
	num1 = eval(autoSumForm.elements["forthBox"].value)
	num2 = num1+5
	autoSumForm.elements["forthBox"].value = num2
	calc()
	
}
function minus(){
	num1 =eval(autoSumForm.elements["forthBox"].value)
	num2 = num1-5
	autoSumForm.elements["forthBox"].value = num2
	calc()
}


