window.onerror=null;
window.Fenster=true;

function openwin(url,name,W,H,X,Y,scrollbar) {
if (X==0){if(screen.width) {targetX = Math.round(screen.width/2-W/2)}else {targetX = 200}}else{targetX = X};
if (Y==0){if (screen.height) {targetY = Math.round(screen.height/2-H/2)}else {targetY = 100}}else{targetY = Y};
features = 'toolbar=no,location=no,status=no,scrollbars='+scrollbar+',menubar=no,resizable=no,width='+W+',height='+H+',screenX='+targetX+',left='+targetX+',screenY='+targetY+',top='+targetY;
window.Fenster=window.open(url,name,features);
}

function nf(a)
{
if (window.Fenster.closed == false) window.Fenster.close();
	switch(a) {
		case "popup_aktuell":
			openwin('../html/popup_aktuell/popup.html','popup',320,403,150,50,'no');
 		break;
		case "popup_aktuell_english":
			openwin('../html/popup_aktuell/popup_english.html','popup',320,403,150,50,'no');
 		break;
		case "impressum":
			openwin('../html/hinweise/impressum.html','popup',395,495,150,50,'yes');
 		break;
		case "hinweise":
			openwin('../html/hinweise/hinweise.html','popup',412,495,150,50,'yes');
		break;
		case "disclaimer":
			openwin('../html/hinweise/disclaimer.html','popup',412,495,150,50,'yes');
		break;

	}
}