function showDetails(div) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(div).style.visibility = "visible";
}
else if (document.all) {
// this is the way old msie versions work
document.all[div].style.visibility = "visible";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[div].visibility = "visible";
}

}

function hideDetails(div) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(div).style.visibility = "hidden";
}
else if (document.all) {
// this is the way old msie versions work
document.all[div].style.visibility = "hidden";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[div].visibility = "hidden";
}

}

function handleClick(whichClick) {

if (whichClick == "hide it") {
// then the user wants to hide the layer
hideLayer("boxthing");

}
else if (whichClick == "show it") {
// then the user wants to show the layer
showLayer("boxthing");
}

}
