<table ,str);
}
}
function delFile(index)
{
if(iFileCount==1 && index>0)
tbAccessory.deleteRow(1);
else
tbAccessory.deleteRow(index);
iFileCount=iFileCount-1;
//alert(iFileCount.toString());
}
function runRowInsert(TableHandle, GetCells, RowIndex){
var oRow = null;
var oCel = null;
if (typeof(GetCells) != 'object' || GetCells.length == 0){
alert('错误信息:\n* 没有任何数据需添加!');
}else{
if (typeof(RowIndex) != 'number'|| RowIndex < 0){
oRow = TableHandle.insertRow();
}else{
if (RowIndex < TableHandle.length){
oRow = TableHandle.insertRow(RowIndex);
}else{
oRow = TableHandle.insertRow();
}
}
for (var i = 0; i < GetCells.length; i++){
oCel = oRow.insertCell();
oCel.innerHTML = GetCells[i];
}
}
return oRow;
}
</script>