hiding application headers and footers dynamically

Hello;
I want to hide and show some of my applications headers/footers dynamically(via code when an event occurs); How can I do that?

use javascript for that… in your event you can do something like


echo ' GetElementById("the id of the header").Style= " display = hidden;"';

the code might be wrong because I’m giving you an example on the top of my head.

Regards