function decimal(num) {
string = "" + num;
if (string.indexOf('.') == -1)
return string + '.00';
seperation = string.length - string.indexOf('.');
if (seperation > 3)
return string.substring(0,string.length-seperation+3);
else if (seperation == 2)
return string + '0';
return string;
}
i=0;
x=0;
countit="yes";
function count() {
if (i == 60) { i=0; x=(x + 1)}
document.money.minutes.value = x;
i++;
document.money.seconds.value = i;
document.money.owed.value = "$" + 
decimal((x * document.money.permin.value) + 
eval(document.money.initial.value));
if (countit != "no") {
setTimeout('count()',1000);
   }
}
function stop() {
countit="no";
}