l','rows','groups'])); }
                table.setAttribute("cellspacing","0");
            }


            generateRowGroups(table);
            root.appendChild(table);

        } else {

            //
            // the table has no <table> element
            //

            generateRowGroup(root);

        }
    }

    function generateRowGroups(root) {
        if(rnd(0.5)) {

            generateRowGroup(root);
            while(rnd(0.25)) {
                generateRowGroup(root);
            }

    