Cambia en el script:
Código Javascript
:
Ver originalfunction Sumas(nombre_form){
var f = document.forms[nombre_form],T = f.getElementsByTagName('tr'),i=0,l=T.length,Sum,all,
S = function(Prim,Seg,Ter){
if(!Prim||!Seg||!Ter) return !0
// Proceso de suma
Sum = function(){Ter.value = (parseInt(Prim.value,10) || 0) + (parseInt(Seg.value,10) || 0)}
Seg.onkeyup = Sum
Ter.onfocus = Sum
Ter.onblur = Sum
return !0
}, byName = function(T,name){
// Buscar atributo name
all = T.getElementsByTagName('*'),j=0
if(T.getElementsByTagName('input').length < 3) return !1
while(!(new RegExp('^'+name,'gi').test(all[j].getAttribute('name'))) && j<all.length) j++
return all[j]
}
// Sumar al teclear, salir de la caja, seleccionar caja...
while(i<l && S(byName(T[i],'cantidad'), byName(T[i],'caja'), byName(T[i],'resultado'))) i++
}
Sumas('autoSumForm')