Hola
Sería algo como esto
Código Javascript
:
Ver originalfunction PuntoMiles (val) {
var cadena = val.toString().split("").reverse().join("");
for (var z = cadena.length; z >=0; z--) {
numero = cadena.charAt(z)
if ((cadena.length >= 4 && z ==3 ) || (cadena.length >= 7 && z ==6 ) || (cadena.length >= 10 && z == 9 ) || (cadena.length >= 13 && z ==12 ) || (cadena.length >= 16 && z ==15 )) {
numero += ".";
}
}
return(numero);
}
var subtotal = dp(eval(document.calcform.total1.value) + eval(document.calcform.total2.value) + eval(document.calcform.total3.value) + eval(document.calcform.total4.value) + eval(document.calcform.total5.value) + eval(document.calcform.total6.value) + eval(document.calcform.total7.value) + eval(document.calcform.total8.value) + eval(document.calcform.total9.value) + eval(document.calcform.total10.value))
document.calcform.subtotal.value = PuntoMiles(subtotal);
Suerte