>> Error: Expected ','
>> Error: Object Expected
is there any line numbers mentioned in the error console?
Take a look at your code carefully. Something is missing...
Probably you have some variables with one and the same name...?!
Change
function onChngIntPceAll() {
for (i=0; i<20; i++) {
onChngIntPce(i);
}
}
to
function onChngIntPceAll() {
for (indx=1; indx < 22; indx++) onChngIntPce(indx);
}
Also place this debug msg:
alert('onChngIntPce invoked for : ' + idx); just after this line function onChngIntPce(idx) {
so your onChngIntPce(idx) function will look like:
function onChngIntPce(idx) {
alert('onChngIntPce invoked for : ' + idx); // remove this msg later
if (document.getElementById("intPce"+idx).value > 1) document.getElementById("sel"+idx).selectedIndex = 1;
calcVAT();
SumExVAT();
Totals();
proc();
}