element.removeAllChildren() function. Note you have to remove the children in reverse order as the array changes as you delete elements.
I've put this function in a JS file in =common/DO.js=
kids = some_parent.childNodes;
nNodes = kids.length;
if (kids)
{
for (var i = nNodes - 1; i >= 0; i--)
{ some_parent.removeChild(kids[i]);
}
}
-- MattWalsh - 21 Mar 2007