mas grande, tem q ter um jeito!! olha qual é minha ideia! function LimeteTamanho(altura) { var table = document.getElementById("tab_geral"); alert(table); alert(table.heigth); if(table) { if(altura > 500) { table.setAtribute("HEIGTH","100%"); } else { table.setAtribute("HEIGTH","500px"); } } } ps: tem q ter um jeito!