﻿function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var WinPopup = null;
var aufruf = 0;

function printScherm(ID) { 
	var Inhaltsseite = "eigen_print.aspx?ID=" + ID;
	if(aufruf==1){
		if(WinPopup.closed==false){
			WinPopup.document.location.href = Inhaltsseite;
			WinPopup.focus();
		} else {
			WinPopup = window.open(Inhaltsseite, "PrintScherm", 'width=460,height=500,screenX=100,screenY=100,toolbar=yes,menubar=yes,scrollbars=yes,dependent=yes');		
			WinPopup.focus();
		}
	} else {
		WinPopup = window.open(Inhaltsseite, "PrintScherm2", 'width=460,height=500,screenX=100,screenY=100,toolbar=yes,menubar=yes,scrollbars=yes,dependent=yes');			
		WinPopup.focus();
		aufruf=1;
	}
}

function outofFrame(){
	if(top.frames.length == 0){
		var Page = document.location.href;
		document.location.href="frameset.html?page=" + Page;
	}
}