add: mtable.appendChild( mtbody ); 
context: function mosaic_size_change(){    var x,y;    var bg_width    = check_and_replace_int( "bg_width", "400" );    var bg_height   = check_and_replace_int( "bg_height", "300" );    mosaic_height   = check_and_replace_int( "mosaic_height", "100" );    mosaic_width    = check_and_replace_int( "mosaic_width", "100" );    mosaic_xoffset  = check_and_replace_int( "mosaic_xoffset", "10" );    mosaic_yoffset  = check_and_replace_int( "mosaic_yoffset", "10" );    mosaic_vborder  = check_and_replace_int( "mosaic_vborder", "5" );    mosaic_hborder  = check_and_replace_int( "mosaic_hborder", "10" );    mosaic_rows     = check_and_replace_int( "mosaic_rows", "1" );    mosaic_cols     = check_and_replace_int( "mosaic_cols", "1" );        cell_width  = Math.floor((mosaic_width-(mosaic_cols-1)*mosaic_hborder)/mosaic_cols);    cell_height = Math.floor((mosaic_height-(mosaic_rows-1)*mosaic_vborder)/mosaic_rows);        var mlayout = document.getElementById( "mosaic_layout" );    /* TODO: keep 'common' cells when resizing */    while( mlayout.hasChildNodes() )        mlayout.removeChild( mlayout.firstChild );    mlayout.style.width = bg_width + "px";    mlayout.style.height = bg_height + "px";    if( mosaic_cols && mosaic_rows )    {        var mdt = document.createElement( 'div' );        mdt.setAttribute( 'id',    'mosaic_dt'  );        setclass( mdt, 'mosaic_tbl' );                mdt.style.width  = mosaic_width   + "px";        mdt.style.height = mosaic_height  + "px";        mdt.style.top    = mosaic_yoffset + "px";        mdt.style.left   = mosaic_xoffset + "px";        var mtable = document.createElement( 'table' );        mtable.setAttribute( 'id', 'mosaic_table' );        mtable.style.top    = "-" + mosaic_vborder + "px";        mtable.style.left   = "-" + mosaic_hborder + "px";        mtable.style.width  = (1*mosaic_width +2*mosaic_hborder)  + "px";        mtable.style.height = (1*mosaic_height+2*mosaic_vborder) + "px";        mtable.style.borderSpacing = mosaic_hborder + "px " +                                     mosaic_vborder + "px";        for( y = 0; y < mosaic_rows; y++ )        {            var mrow = document.createElement( 'tr' );            for( x = 0; x < mosaic_cols; x++ )            {                var mcell = document.createElement( 'td' );                setclass( mcell, 'mosaic_itm' );                mcell.style.width  = cell_width  + "px";                mcell.style.height = cell_height + "px";                                var id = x+'_'+y;                var melt = create_button( cells[id] ? cells[id] : '?', 'mosaic_elt_choose(\"'+id+'\");' );                melt.setAttribute( 'id', id );                melt.setAttribute( 'title', 'Click to choose stream' );                                mcell.appendChild( melt );                mrow.appendChild( mcell );            }            mtable.appendChild( mrow );        }        mdt.appendChild( mtable );        mlayout.appendChild( mdt );    }    mosaic_code_update();}
meta: 2294	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2294/4dfd839aff9cfb0e3cd0e30b92e60af388bb0fc7/mosaic.js/buggy/share/http/js/mosaic.js