 



var ullstPopupWin;
var ullstPopupWinProps;
var ullstIsPopupAllowed;

	function isPopupAllowed() {
	
		ullstPopupWinProps = 'width=1,height=1';
		ullstPopupWin = window.open('index.php', 'ullstPopupWin', ullstPopupWinProps);
		window.focus();
		if (ullstPopupWin) {
			window.focus();
			ullstPopupWin.close();
			ullstIsPopupAllowed = true;
			return true;
		} else {
			ullstIsPopupAllowed = false;
			alert('Bitte deaktivieren Sie Ihren Popup-Blocker für diese Seite.');
			return false;
		}
	}

	function openEmpfWindow(url,width,height,props){

		if(isPopupAllowed() && isPopupAllowed()) {
			var props = props+',directories=no,copyhistory=yes,width='+width+',height='+height;
			var popup = window.open(url,'popup',props);
			//popup.focus();
			return true;
		} else {
			return false;
		}
	}


