{
if(nodelist(i).id.substring(0,12) == 'tree_parent_' && nodelist(i).value == parentid)
{
tempnode = document.getelementbyid('tree_path_' + nodelist(i).id.substring(12,nodelist(i).id.length));
tempnode.value = tempparent.value + ',' + nodelist(i).id.substring(12,nodelist(i).id.length);
updatenode(nodelist(i).id.substring(12,nodelist(i).id.length));
}
}
}
</script>
</head>
<body>
<input type=button id="ldsk" value="点击增加节点" onclick="addleaf(0);"><input id="newparent" type=text value=''>
<input type=button id="ldssk" value="显示选定节点的源码" onclick="getdiv.value = tree_div_0.innerhtml;"><br>
<ul id="tree_div_0" ></ul>
<br><textarea id="getdiv" cols=80 rows=23></textarea>
<input id="lsh" type=hidden value='0'>
</body>