function SetUrlll(action) {
var objTable = document.getElementById("DataGrid1");//("tb"+tbid)是表格的ID號,用<table id=XXX ...>定義的那個XXX var rowscount = objTable.rows.length;//取表格的總行數(shù) var check = 0;//計數(shù)器
for (var i=rowscount-1;i>=0;i--) { if (objTable.rows[i].childNodes(7).childNodes(0).checked==true) { check++; //alert(objTable.rows[i].childNodes(8).childNodes(0).value); //alert(objTable.rows[i].childNodes(7).childNodes(0).value); objTable.rows[i].childNodes(7).childNodes(0).value=objTable.rows[i].childNodes(7).childNodes(0).value+objTable.rows[i].childNodes(8).childNodes(0).value; alert(objTable.rows[i].childNodes(7).childNodes(0).value);
}
} if ((check<5) || (check>50)) { alert("請每次提交10-50份單證! "); } else {
document.MyForm.action="fj_save.asp"; document.MyForm.method="post"; document.MyForm.submit(); return; }
}
|