<table border="1" width="100%">
<tr><th>xuhao</th><th>mingcheng</th><th>leibie</th><th>chukuliang</th><th>cangwei</th><th>&nbsp;</th></tr>
<tr><td><input type=text name=xh></td><td ><input type=text name=mc></td><td ><input type=text name=lb></td><td ><input type=text name=ckl></td><td ><input type=text name=cw></td><td onclick='del(this)'>delete</td></tr>
<tr><td colSpan=6 align=center onclick='add(this);'>add</td></tr>
</table>
<SCRIPT language=JavaScript >
var str="<td><input type=text name=xh></td><td ><input type=text name=mc></td><td ><input type=text name=lb></td><td ><input type=text name=ckl></td><td ><input type=text name=cw></td><td onclick='del(this)'>delete</td>";function add(tis){
    var p=tis.offsetParent;
    var tr=p.insertRow(p.rows.length-1);
    tr.innerHTML=str;
}function del(tis){
tis.offsetParent.deleteRow(tis.parentNode.rowIndex);
}
</SCRIPT>