Código:
Lo unico que hacen es esconder determinadas filas de una tabla segun el nombre que tengan los <tr></tr>.function mostrarCobradas() {
var table = document.getElementsByName('listadoTabla');
for(i = 0; i < table.length; i++) {
var rows = table[i].getElementsByTagName('tr');
for(j = 0; j < rows.length; j++) {
if(rows[j].className == 'listadoNoCobrada')
{
rows[j].style.display = 'none';
}else{
rows[j].style.display = '';
}
}
}
}
function mostrarNoCobradas() {
var table = document.getElementsByName('listadoTabla');
for(i = 0; i < table.length; i++) {
var rows = table[i].getElementsByTagName('tr');
for(j = 0; j < rows.length; j++) {
if(rows[j].className == 'listadoCobrada')
{
rows[j].style.display = 'none';
}else{
rows[j].style.display = '';
}
}
}
}
function mostrarTodo() {
var table = document.getElementsByName('listadoTabla');
for(i = 0; i < table.length; i++) {
var rows = table[i].getElementsByTagName('tr');
for(j = 0; j < rows.length; j++) {
if(rows[j].className == 'listadoNoCobrada')
{
rows[j].style.display = '';
}else{
rows[j].style.display = '';
}
}
}
}
HYaber que sacais en claro.

