

function show (elementname) {
  if (document.getElementById)
    document.getElementById(elementname).style.visibility = "visible";
}
function hide (elementname) {
  if (document.getElementById)
    document.getElementById(elementname).style.visibility = "hidden";
}


function switchTo(x) 
{  
var activeLayer = null;

if (activeLayer != null) {activeLayer.visibility = 'hidden'};

 if(document.all || document.layers || document.getElementById)

 { activeLayer=document.all ?

document.all[x].style :
document.layers ? document[x] :    document.getElementById(x).style;

activeLayer.visibility = 'visible'  }
}



function openwin(myfile,width,height){
	if( !width ) width = 400;
	if( !height ) height = 400;
	var now=new Date()
	winname="a" + now.getTime()
	params = "width="+width+",height="+height+",resizable=1,status=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1 ";
	newwin = window.open( myfile, winname , params)
	if( window.focus ) newwin.focus();
}


