/* test for objects */

(document.layers) ? layerobject=true : layerobject=false;
(document.all) ? allobject = true: allobject = false;
(document.getElementById) ? dom = true : dom = false;
function changeVisibility(id,action)
{
switch (action)
{
case "show":
if (layerobject)
document.layers[''+id+''].visibility = "show";
else if (allobject)
document.all[''+id+''].style.visibility = "visible";
else if (dom)
document.getElementById(''+id+'').style.visibility = "visible";
break;
case "hide":
if (layerobject)
document.layers[''+id+''].visibility = "hide";
else if (allobject)
document.all[''+id+''].style.visibility = "hidden";
else if (dom)
document.getElementById(''+id+'').style.visibility = "hidden";
break;
default:return;
}
return;
}

function newWindow1() {aWindow = window.open("1.htm", "1", "height=580,width=700");}
function newWindow2() {aWindow = window.open("2.htm", "2", "height=580,width=700");}
function newWindow3() {aWindow = window.open("3.htm", "3", "height=580,width=700");}
function newWindow4() {aWindow = window.open("4.htm", "4", "height=580,width=700");}