// Popup windows
function certpop(URL) {
	popupWin = window.open(URL, 'title', 'location,resizable,toolbar,scrollbars,width=700,height=900')
	window.top.name = 'opener'
}

function logpop(URL) {
	popupWin = window.open(URL, 'title', 'location,resizable,toolbar,scrollbars,width=500,height=400')
	window.top.name = 'opener'
}

function printpop(URL) {
	popupWin = window.open(URL, 'title', 'location,resizable,toolbar,scrollbars,width=700,height=500')
	window.top.name = 'opener'
}

function load_main(whereto)
{
if (window.opener.top) {
window.opener.top.location.href = whereto;
} else {
window.open(whereto, '_nfk')
}
}

function fnSetTimeout()
{
     timeOut = setInterval("window.location.reload()", 1200000);
}


      function layerswap(layername)
      {
         if(document.getElementById(layername))
         {
            if (document.getElementById(layername).style.visibility=='visible')
            {
               document.getElementById(layername).style.visibility='hidden';
               document.getElementById(layername).style.display='none';
            }
            else
            {
               document.getElementById(layername).style.visibility='visible';
               document.getElementById(layername).style.display='block';
            }
         }
      }
