function fncCal()
{
var tot = 0;
var sum = 0;
for(i=1;i<=document.form1.hdnLine.value;i++){
tot = parseInt(eval("document.form1.txtVol1_"+i+".value")) + parseInt(eval("document.form1.txtVol2_"+i+".value"))
eval("document.form1.txtVol3_"+i+".value="+tot);
sum = tot + tot; if(sum>500){ document.form1.txtSum.style.color="red"}
document.form1.txtSum.value=sum;
}
}
function fncCal()
{
var tot = 0;
var sum = 0;
for(i=1;i<=document.form1.hdnLine.value;i++){
tot = parseInt(eval("document.form1.txtVol1_"+i+".value")) + parseInt(eval("document.form1.txtVol2_"+i+".value")) if(tot>500){ eval("document.form1.txtVol3_"+i+".style.color='red'");}
eval("document.form1.txtVol3_"+i+".value="+tot);
sum = tot + tot;