using javascript, to hide an object you can do like-
object.style.visibility = "hidden";
and to make it visible you can do like-
object.style.visibility = "visible";
Example:
$("#Id").style.visibility = "hidden";
Or, if you like to use JQuery, to hide-
$("#Id").hide();
to show-
$("#Id").show();
However, the problem also is you haven't mentioned the id of the panel while doing this.
Hope, it helps :)