el.innerHTML = table;
You can't mix innerHTML and DOm manipulation. Use one or the other.
When you build up the elements in a DOM (as you are doing), you must use DOM methods to attached the new elements to the page DOM.
[ June 18, 2007: Message edited by: Bear Bibeault ]