3
// Find an object with the given name in the children tree of "obj"
4
function findChild(obj,objectName) {
5
var childs = new Array(0);
7
while (childs.length > 0) {
8
if (childs[0].objectName == objectName) {
11
for (var i in childs[0].children) {
12
childs.push(childs[0].children[i])