<script language=javascript>
<!--
function del()
{
otable.deleteRow(1);
}
function add()
{ var madd=otable.rows.length;
var orow1=otable.insertRow(otable.rows.length);
//insert one row.
var arows=otable.rows;
//retrieve the rows collection for the table
var acells=orow1.cells;
//retrieve the cells collection for the new row
var ocell1_1=arows(orow1.rowIndex).insertCell(acells.length);
var ocell1_2=arows(orow1.rowIndex).insertCell(acells.length);
var ocell1_3=arows(orow1.rowIndex).insertCell(acells.length);
var ocell1_4=arows(orow1.rowIndex).insertCell(acells.length);
ocell1_1.innerHTML="<INPUT name=ItemSub"+madd+" size=10>";
ocell1_2.innerHTML="<INPUT name=Itemobject"+madd+" size=10>";
ocell1_3.innerHTML="<INPUT name=ItemShce"+madd+" size=10>";
ocell1_4.innerHTML="<INPUT name=workman"+madd+" size=10>";
}