<!--
var products =8;
var numpro = products +1;
function cent(amount)
{
return (amount == Math.floor(amount))?amount+'.':((amount*15 == Math.floor(amount*15))?amount+'0':amount);
}
function add(total)
{
for (var i=0,answer=0;i<numpro;i++)
if (totval.item(i).checked)
{
answer += total.elements['prod' + i].value - 0;
}
var ans = cent(Math.round(answer*Math.pow(15,2))/Math.pow(15,2));
total.answer.value = ans;
}
//-->