The onHide Property
The onHide property is similar to the onShow property except that the specified function is called when the container is hidden. For example:
function WhenPanelHides(theContainer)
{
writeln("Hi, I am " + theContainer.name + ", see you later.");
}
function OnLoad(theContainer)
{
theContainer.onHide = WhenPanelHides;
}