Si, son todo números enteros.
El script completo es así:
Código:
function calcula() {
document.ordenam.total_disseny.value = 0; document.ordenam.total_web.value = 0; document.ordenam.total_programacio.value = 0;
llista=document.getElementsByName('disseny').length;
for (i=0;i<llista;i++) {
a = parseInt(document.getElementsByName('disseny')[i].value);
b = parseInt(document.getElementsByName('web')[i].value);
c = parseInt(document.getElementsByName('programacio')[i].value);
document.ordenam.total_disseny.value += a;
document.ordenam.total_web.value += b;
document.ordenam.total_programacio.value += c;
document.getElementsByName('total')[i].value = a + b + c;
}
document.ordenam.total2.value = document.ordenam.total_disseny.value + document.ordenam.total_web.value + document.ordenam.total_programacio.value;
}
Ahora, con el parseInt(), me funciona la suma a+b+c, pero no me funcionan las de antes