改这里:
if (hcn) {
if (ls) {
document.write("<a href=\"\"><img id=\"join" + nodeValues[0] + "\" src=\"img/");
  if (ino) document.write("minus");
else document.write("plus");
document.write("bottom.gif\" align=\"absbottom\" alt=\"Open/Close node\" /></a>");
} else {
document.write("<a href=\"javascript: oc('" + nodeValues[0] + "', 0);\"><img id=\"join" + nodeValues[0] + "\" src=\"img/");
if (ino) document.write("minus");
else document.write("plus");
document.write(".gif\" align=\"absbottom\" alt=\"Open/Close node\" /></a>");
}
} else {
if (ls) document.write("<img src=\"img/joinbottom.gif\" align=\"absbottom\" alt=\"\" />");
else document.write("<img src=\"img/join.gif\" align=\"absbottom\" alt=\"\" />");
}
注意oc函数!!!!
原来没有加引号oc(001,1)变成了oc(1,1)就出错了。应该加上引号!!
javascript: oc('" +  nodeValues[0] + "', 1);