pero necesito una condición para saber que ocultar o mostrar de lo que seleccione del DropDownList ..!! lo he aplicado pero no me funciona

function Toggle(tabla)
{
tabla = document.getElementById(tabla);
var img = document.getElementById("img_button");
if (tabla.style.display == "none") {
tabla.style.display = "block";
img.src = "dir/cerrar.gif";
} else {
tabla.style.display = "none";
img.src = "dir/abrir.gif";
}
}
PORFA ALGUIEN Q SEPA JAVASCRIPT AYUDEME !!
