// JavaScript Document



function FensterOeffnen (Adresse, Name) {
	
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
		windowWidth = screen.width;
		windowHeight = screen.height;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
		windowWidth = screen.width;
		windowHeight = screen.height;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
		windowWidth = screen.width;
		windowHeight = screen.height;
	}	



  Fenster1 = window.open(Adresse, "zoom", "width="+windowWidth+",height="+windowHeight+", left=0, top=0");
  
    Fenster1.focus();
}


//show and hide function

function ReverseContentDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}


//window dimensions

function getPageSize(){
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	arrayPageSize = new Array(windowWidth,windowHeight);
	
	return arrayPageSize;

}

