function MIJava_ReloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MIJava_pgW=innerWidth; document.MIJava_pgH=innerHeight; onresize=MIJava_ReloadPage; }}
  else if (innerWidth!=document.MIJava_pgW || innerHeight!=document.MIJava_pgH) location.reload();
}
MIJava_ReloadPage(true);

function MIJava_swapImgRestore() { //v3.0
  var i,x,a=document.MIJava_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MIJava_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MIJava_p) d.MIJava_p=new Array();
    var i,j=d.MIJava_p.length,a=MIJava_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MIJava_p[j]=new Image; d.MIJava_p[j++].src=a[i];}}
}

function MIJava_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MIJava_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MIJava_swapImage() { //v3.0
  var i,j=0,x,a=MIJava_swapImage.arguments; document.MIJava_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MIJava_findObj(a[i]))!=null){document.MIJava_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MIJava_showHideLayers() { //v3.0
  var i,p,v,obj,args=MIJava_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MIJava_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

// Marker linie i tabel
		function co(element,mode,lineCol) {
			if (mode=="in") {
				cursortype = 'hand'
				colorval = '#C7BA74'
				}
			else if (mode=="out") {
				if (lineCol=="hvid") {
					cursortype = ''
					colorval = '#DAD2A5'
					}
				else if (lineCol=="farve") {
					cursortype = ''
					colorval = '#DAD2A5'
					}
			}
			element.style.background=colorval;
			element.style.cursor=cursortype;
		}

// Marker linie i Chart
		function chrt(element,mode,lineCol) {
			if (mode=="in") {
				cursortype = 'hand'
				colorval = '#C7BA74'
				}
			else if (mode=="out") {
				if (lineCol=="hvid") {
					cursortype = ''
					colorval = '#ECE8D2'
					}
				else if (lineCol=="farve") {
					cursortype = ''
					colorval = '#F3F1E2'
					}
			}
			element.style.background=colorval;
			element.style.cursor=cursortype;
		}




// Marker btn
		function btn(element,mode,lineCol) {
			if (mode=="in") {
				cursortype = 'hand'
				colorval = '#FAF9F1'
				}
			else if (mode=="out") {
				if (lineCol=="mnuBtn") {
					cursortype = ''
					colorval = '#C7BA74'
					}
				else if (lineCol=="mnuTop") {
					cursortype = ''
					colorval = '#C7BA74'
					}
				else if (lineCol=="mnuSub") {
					cursortype = ''
					colorval = '#DAD2A5'
					}
				else if (lineCol=="mnuBG") {
					cursortype = ''
					colorval = '#ECE8D2'
					}
			}
			element.style.background=colorval;
			element.style.cursor=cursortype;
		}

// Popup Vindue
	function PopWin(url,h,w) { var ww = 480, wh = 340, leftPos = null, topPos = null; 

	IE=(document.all)?true:false; 
	var wh = (IE)?document.body.clientHeight : window.innerHeight; 
	var ww = (IE)?document.body.clientWidth : window.innerWidth; 

	if (top.screen){ 
 		if (screen.width){ 
    			leftPos = Math.round((ww-w-10)/2); 
   			 topPos = Math.round((wh-h-29)/2); 
  		} else { 
    			leftPos = 50 
   			 topPos = 50 
  		} 
	} 
 	popupWin = window.open(url, 'popup', 'scrollbars,height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '') 
} 

// Close Popup Vindue
	function ClosePopWin() { 

	pu_vindue.close()

} 

// Hovedmenu Navigering
    
		  function goMenu(where) {
		  mnu = where.menuSelect.options[where.menuSelect.selectedIndex].value;
		  if (mnu!="") { location = mnu }
		  }

// Sidemenu Navigering
    
		  function goMenu2(where) {
		  mnu2 = where.menuSelect2.options[where.menuSelect2.selectedIndex].value;
		  if (mnu2!="") { location = mnu2 }
		  }

// Bekræft action inden udførelse
		function ConfirmAction(txt) {
		 if (confirm(txt)) 
       {
       	 return true;
       }
       else
       {
        	return false;
       }
}


// Popup Vindue 2 (Base)
	function PopWinBase(url,h,w) { var ww = 480, wh =340, leftPos = null, topPos = null; 

	IE=(document.all)?true:false; 
 	var wh = (IE)?document.body.clientHeight : window.innerHeight; 
 	var ww = (IE)?document.body.clientWidth : window.innerWidth; 

	if (top.screen){ 
 		if (screen.width){ 
    			leftPos = Math.round((ww-w-10)/2); 
   			 topPos = Math.round((wh-h-29)/2); 
  		} else { 
    			leftPos = 50 
   			 topPos = 50 
  		} 
	} 
 	popupWin = window.open(url, 'pu_vindue', 'height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '') 
}

// Popup Vindue
	function PopWinPrint(url,h,w) { var ww = 480, wh = 340, leftPos = null, topPos = null; 

	IE=(document.all)?true:false; 
	var wh = (IE)?document.body.clientHeight : window.innerHeight; 
	var ww = (IE)?document.body.clientWidth : window.innerWidth; 

	if (top.screen){ 
 		if (screen.width){ 
    			leftPos = Math.round((ww-w-10)/2); 
   			 topPos = Math.round((wh-h-29)/2); 
  		} else { 
    			leftPos = 50 
   			 topPos = 50 
  		} 
	} 
 	popupWin = window.open(url, 'popup', 'scrollbars, toolbar,height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '') 
} 


