puoi provare con una cosa del genere:

codice:
function hideLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.display = "none";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.display = "none";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].display = "none";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.display = "inline";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.display = "inline";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].display = "inline";
}

}