function showLayer() {
    for (var i=0; i<showLayer.arguments.length; ++i)
        if (document.getElementById) {
        // this is the way the standards work
        document.getElementById(showLayer.arguments[i]).style.visibility = "visible";
        }
        else if (document.all) {
        // this is the way old msie versions work
        document.all[showLayer.arguments[i]].style.visibility = "visible";
        }
        else if (document.layers) {
        // this is the way nn4 works
        document.layers[showLayer.arguments[i]].visibility = "visible";
        }
}
function hideLayer() {
    for (var i=0; i<hideLayer.arguments.length; ++i)
        if (document.getElementById) {
        // this is the way the standards work
        document.getElementById(hideLayer.arguments[i]).style.visibility = "hidden";
        }
        else if (document.all) {
        // this is the way old msie versions work
        document.all[hideLayer.arguments[i]].style.visibility = "hidden";
        }
        else if (document.layers) {
        // this is the way nn4 works
        document.layers[hideLayer.arguments[i]].visibility = "hidden";
        }
}
