var openUrl = function(url, windowTitle, windowWidth, windowHeight) {

	// Falls Fenster breiter als Bildschirm ein soll
	if(windowWidth > screen.width*0.85) {

		// Fenstergröße auf Bildschirmbreite setzen
		windowWidth = screen.width*0.85;

	}

	// Falls Fenster höher als Bildschirm sein soll
	if(windowHeight > screen.height*0.85) {

		// Fensterhöhe auf Bildschirmhöhe setzen
		windowHeight = screen.height*0.85;

	}

	windowHandle = window.open(url, windowTitle, "width="+windowWidth+", height="+windowHeight+", status=no, scrollbars=yes, resizable=no");
	windowHandle.window.focus();

}