Ver originalsumapartial += document.getElementById('n' + i);
Ver originalsumapartial += document.getElementById('n' + i).value;