// initialize tree\r
Rico.onLoad( function() {\r
tree1=new Rico.TreeControl("tree1", "CustTree.php");\r
- tree1.atLoad();\r
tree1.returnValue=function(newVal) { Rico.$('TreeValue1').value=newVal; };\r
Rico.eventBind('TreeButton1', 'click', Rico.eventHandle(window,'TreeClick1'));\r
});\r
\r
function TreeClick1(e) {\r
- if (Rico.visible(tree1.container)) {\r
+ if (tree1.visible()) {\r
tree1.close();\r
} else {\r
Rico.positionCtlOverIcon(tree1.container,Rico.$('TreeButton1'));\r