function expand(entity) {
var oImage
oImage = entity.childNodes(0).all["image"]
oImage.src = entity.imageOpen
if (typeof(entity.imageOpen) == "undefined")
oImage.src = "<%=request.getContextPath()%>/images/MinusSignBlackSilver.gif";
for(i=0; i < entity.childNodes.length; i++) {
if(entity.childNodes(i).tagName == "DIV") {
entity.childNodes(i).style.display = "block"
}
}
entity.open = "true"
}
is working fine on IE. But in Mozilla gives error entity.childNodes is not a function. What is the right syntax to work properly in IE and Mozilla?