Having Problem in Fetching XML File Child Nodes

Dear all I have made a Function that fetches data from child Node but it throwing Exception on Line # 4 that is
on var totalchildnodes function is given below

function popuphelp(filename)
{

var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load("Help/HelpFilePages.xml");
xmlObj=xmlDoc.documentElement;

var totalchilds=xmlObj.childNodes.length; //Getting <HelpPages> Child Nodes
var mcounter=0,subloopcount=0;
alert(totalchilds);

for (mcounter=0; mcounter<=totalchilds-1; mcounter++)
{
if (xmlObj.childNodes(mcounter).tagName==filename)//Comparing the given .net File with Child Nodes
{
if (xmlObj.childNodes(mcounter).hasChildNodes()==true)//Checking Child Nodes has Sub Child Nodes
{
var subNodelen=xmlObj.childNodes(mcounter).childNodes.length; //Getting Total # of Sub Nodes
for (subloopcount=0; subloopcount<=subNodelen-1; subloopcount++)
{
window.open(xmlObj.childNodes(mcounter).childNodes(subloopcount).getAttribute("id"),xmlObj.childNodes(mcounter).childNodes(subloopcount).tagName);
}
}
}
}
}
[1237 byte] By [shahzeb_khan] at [2007-11-19 18:58:09]
# 1 Re: Having Problem in Fetching XML File Child Nodes
Maybe it's
var totalchilds=xmlObj.childNodes.Count ?

What exception is it throwing?
jkmyoung at 2007-11-10 3:27:02 >
# 2 Re: Having Problem in Fetching XML File Child Nodes
ITS thowing the error Object Required
shahzeb_khan at 2007-11-10 3:28:13 >