I don't know if you changed this or if it was sloppy coding to begin with but, this function is the one throwing the error because the <div id="i"> has been defined globally as assigned to the variable 'i' (this only happens in IE where the document.all object can be assumed, even when not written out) as a page element and cannot be used here in this manner:
Code:
function getElementbyClass(rootobj, classname){
var temparray=new Array()
var inc=0
var rootlength=rootobj.length
for (var i=0; i<rootlength; i++){
if (rootobj[i].className==classname)
temparray[inc++]=rootobj[i]
}
return temparray
}
Just add the part in red to your version, it will make these 'i's local variables.
Bookmarks