function toggleVis(divid) {
  var el=document.getElementById(divid);
  if(el.style.display == "none" ) {
    el.style.display= "block";
  }
  else {
    el.style.display="none";
  }
}


function popup(f,w,h)
{
if ( h > 590 )
	h = 590;
o=window.open(f,"map_zoom_window",
"toolbar=no,location=no,directories=no,status=no,menubar=no,"+
"scrollbars=yes,resize=yes,scrollbars=yes,copyhistory=no,"+
"width="+w+",height="+h);
if ( o.opener==null)
  o.opener=self;
o.focus();
}

function j_pophelp(topic,ht)
{
o=window.open("myhelp.php?topic="+topic,"help_window",
"toolbar=no,location=no,directories=no,status=no,menubar=no,"+
"scrollbars=yes,resizable=yes,scrollbars=yes,copyhistory=no,"+
"width=500,height="+ht);
if ( o.opener==null)
  o.opener=self;
o.focus();
}

function j_conf(  action, message ) 
{
	$result = confirm ( message );

        if( $result ) 
	{
                    document.location.replace( action );
	}
}

