if (typeof(AJ4)!='undefined') {
	// Definiert, was bei einem fehlgeschlagenen AJAX Request der Richfaces passieren soll.
	// Natürlich nur wenn die Richfaces (aka A4J) aktiv sind.
	A4J.AJAX.onError = function(req,status,message) { 
		alert(message); 
	};
}

function showAboutBox(){
	var width = 700;
	var height = 293;
	var left = Math.floor((screen.width - width) / 2);
	var top = Math.floor((screen.height - height) / 2);
	window.open("about.xhtml", "about", 'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',resizable=no');
}

function showArea(areaId) {
	if (areaId && areaId != "_blank") {
		var a = document.getElementById(areaId);
		if (a)
			a.style.display = "block";
	}
}

function howToRegionalisierung(msg){
	document.getElementById('standortBox').className='box highlight-box';
	alert(msg);
}