<script language="javascript" type="text/javascript">
<!--
function addnewline()
{
var row,cell,cell2;
row = document.getElementById("estimateslist").insertRow(-1);
if(row != null ){
cell = row.insertCell(0);
cell.innerHTML="<input type=\"text\" name=\"item\">";
cell2 = row.insertCell(1);
cell2.innerHTML="<input type=\"text\" name=\"timer\" value='--'><input type=\"button\" value=\"delete\" onclick='deleteitem(this)'>";
}
}
function deleteitem(obj){
var rowNum,curRow;
curRow = obj.parentNode.parentNode;
rowNum = document.getElementById("estimateslist").rows.length - 1;
document.getElementById("estimateslist").deleteRow(curRow.rowIndex);
}
-->
</script>
<table width="100%" border="0" id="estimateslist">
<tr>
<td width="150">item </td>
<td>time required</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<input type="button" name="button4" id="button4" value="add new line" onClick="addnewline()">
2.
obj.options[obj.selectedIndex].getAttribute("属性名")