function swapTable(t) { tab = buscarObjeto(t); if (tab.style) tab = tab.style; if (tab.display == 'block') { tab.display = 'none'; // alert("hola"); } else { tab.display = 'block'; } } function swapTableCerrar(t) { tab = buscarObjeto(t); if (tab.style) tab = tab.style; if (tab.display == 'block') { tab.display = 'none'; } } function buscarObjeto(nombre) { if (document.layers) { obj = document.layers[nombre]; } else if (document.all) { obj = document.all[nombre]; } else if (document.getElementById) { obj = document.getElementById(nombre); } return obj; }