Dtable = {
    insere: function(table, tds, css, remove){
        var html_tds = '';

        if(remove == "") remove = false ;

        if($.isArray(tds)){
            for(i=0; i < tds.length; i++){
                if($.isArray(tds[i])){
                    html_tds += '<td style='+tds[i][1]+'>'+tds[i][0]+'</td>\n';
                }else{
                   html_tds += '<td>'+tds[i]+'</td>\n';
                }

            }
        }else{
            html_tds += '<td>'+tds+'</td>\n';
        }

        // Caso Remove == true o sistema adiciona um TD onde deleta a própria TR
        if(remove == true) html_tds += '<td onclick="tabela.deleta($(this).parent())" valing="top"><a href="#"><img src="<?=$dominio?>imagens/icones/deletar.jpg"></a></td>';

        $('#'+table+' >tbody').append('<tr style="'+css+'">'+html_tds+'</tr>');
    },

    deleta: function(tr){
        tr.remove();

    },

    limpa: function(table){
        $('#'+table+' >tbody').html("");
    }

}
