01.
<SCRIPT Language=
"JavaScript"
>
02.
03.
function
startCalc(){
04.
interval = setInterval(
"calc()"
,1);
05.
}
06.
07.
function
calc(){
08.
price1 = document.frmcal.txt1.value;
09.
price2 = document.frmcal.txt2.value;
10.
11.
totalprice = (moveoutprice * 1) + (moveinprice * 1)
12.
13.
document.frmcal.txt3.value = Number(totalprice).toLocaleString(
'en'
);
14.
15.
}
16.
17.
function
stopCalc(){
18.
clearInterval(interval);
19.
}
20.
</SCRIPT>