0
edits
Changes
no edit summary
//Set the field that store the total to read only
document.frmeditfrmevent.cf_xxxxxx.readOnly=true;
//Take the value of the passing in field and add it to total sum.
if (index == 1 )
document.frmeditfrmevent.cf_xxxxxx.value=0;
//update the value
document.frmeditfrmevent.cf_xxxxxx.value = parseFloat(document.frmeditfrmevent.cf_xxxxxx.value) + parseFloat(valuetxt);
}
</pre>
var expenseCF = new Array('cf_xxxxx1', 'cf_xxxxx2', 'cf_xxxxx3');
var i = 0;
var number= eval("document.frmeditfrmevent."+ expenseCF[0] + ".value;");
number = parseInt(number);
for (i =1; i <= number; i++)
{
var valuetxt = eval("document.frmeditfrmevent."+ expenseCF[i] + ".value;");
if (valuetxt != undefined)
{ //Call the function AddTotal so that it would add the sum together