document.listmenu0.firstlevelis null or not an object? strange..urgent help need

i'm including a chaine menu in my php page.
as the page is excecuted, the error 'document.listmenu0.firstlevel'is null or not an object is shown. it is pointed to the below line:

<body onload="initListGroup('chainedmenu', document.listmenu0.firstlevel, document.listmenu0.secondlevel, 'savestate')" TOPMARGIN="0" RIGHTMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" TEXT="#000000" BGCOLOR="#ffffff" >

thus, nothing is shown in the chaine menu..

can i know where is the error?

i tried to run the chaine menu page seperately, it works just nice. however,after i included it to the php page, the error above occur...

p/s: as the page is tested in locahost, the error message is not shown and the chaine menus are display correctly..

attached here the sample chained menu...
[880 byte] By [liyenn] at [2007-11-20 4:11:02]
# 1 Re: document.listmenu0.firstlevelis null or not an object? strange..urgent help need
Could you post the code from your PHP page where the code does not work. You already stated that the example works, and it does. What we need to see is what doesn't work in order to help you fix it.
PeejAvery at 2007-11-8 0:41:34 >