dTree.prototype.edit = function(did,id, pid, name, url, title, target, icon, iconOpen, open){
var aNodesData = this.aNodes;
this.aNodes=new Array();
for(var i=0;i<aNodesData.length ; i++){
if (aNodesData[i].id == id){
this.aNodes[i]=new Node(id, pid, name, url, title, target, icon, iconOpen, open);
}
else
{
var oneNode=aNodesData[i];
this.aNodes[i]=new Node(oneNode.id,oneNode.pid,oneNode.name,oneNode.url,oneNode.title,oneNode.target,oneNode.icon,oneNode.iconOpen,oneNode.open);
}
}
document.getElementById(did).innerHTML=d;
};
var aNodesData = this.aNodes;
this.aNodes=new Array();
for(var i=0;i<aNodesData.length ; i++){
if (aNodesData[i].id == id){
this.aNodes[i]=new Node(id, pid, name, url, title, target, icon, iconOpen, open);
}
else
{
var oneNode=aNodesData[i];
this.aNodes[i]=new Node(oneNode.id,oneNode.pid,oneNode.name,oneNode.url,oneNode.title,oneNode.target,oneNode.icon,oneNode.iconOpen,oneNode.open);
}
}
document.getElementById(did).innerHTML=d;
};