arahmanov, снова да ладом ))) жми кнопку
макс справа на удаление
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<table align="center" id="parentId" width="800" cellpadding="0" cellspacing="0" border="1" ></table>
<script language="JavaScript" type="text/javascript">
var curFieldNameId = "12345"
var div = document.createElement("tr");
div.innerHTML = "<th width=\"300\" ><input size=\"60\" type=\"text\" name=\"rabota"+curFieldNameId+"\" id=\"rabota"+curFieldNameId+"\" value=\"rabota"+curFieldNameId+"\" class=\"textfield\" /></th width=\"100\">"
+"<th width=\"110\" >1000</th>"
+"<th width=\"100\" id='test'><label width=\"100\"><input type=\"text\" size=\"5\"name=\"norma"+curFieldNameId+"\" id=\"norma"+curFieldNameId+"\" class=\"textfield\" onBlur=\"sd()\" onChange=\"sd()\" onkeyup=\"document.getElementById('result"+curFieldNameId+"').innerHTML = this.value*1000;\"/></label></th>"
+"<th width=\"100\"><div id=\"result"+curFieldNameId+"\" />Сумма</div></th>"
+"<th width=\"200\"><select id=\"ispol"+curFieldNameId+"\" name=\"ispol"+curFieldNameId+"\"><option value=\"Нет исполнителья\">нет исполнителя</option><option value=\"Травин Николай\">Николай</option><option value=\"Малинин Вова\">Вова</option> <option value=\"Vlad\">Vlad</option><option value=\"Рамзанов Руслан\">Руслан</option> </select></th>"
+"<th><img src=\"img/Round Thing.png\" onclick=\"return addField()\" onMouseOver=\"sd()\" width=\"30\" height=\"30\"></th>"
+"<th><img id=\"qw"+curFieldNameId+"\" src=\"img/x.png\" onclick=\"return deleteField(this)\" onMouseOver=\"sd()\" width=\"25\" height=\"25\"></th>";
document.getElementById("parentId").appendChild(div);
function deleteField(a)
{
var id_rabota = a.parentNode.parentNode.childNodes[0].childNodes[0].id;
alert(id_rabota);
var id_norma = a.parentNode.parentNode.childNodes[2].childNodes[0].childNodes[0].id;
alert(id_norma);
var id_result = a.parentNode.parentNode.childNodes[3].childNodes[0].id;
alert(id_result);
var id_ispol = a.parentNode.parentNode.childNodes[4].childNodes[0].id;
alert(id_ispol);
var img_id = a.id;
alert(img_id);
}
</script>
</body>
</html>