function oc(cwidth,cheight,oC_name,oC_url) {
	if(oC_name=="" || oC_name==undefined) {
		oC_name = "i";
	}

	if(oC_url == "" || oC_url==undefined) {
		oC_url = 'about:blank';
	}

	var q1 = screen.width>=2048 ? 4 : 2;
	var q2 = screen.height>=2048 ? 4 : 2;

	var posX=(screen.width/q1)-(cwidth/2);
	var posY=(screen.height/q2)-(cheight/2);
	F = window.open(oC_url, oC_name, 'toolbar=no,directories=no,status=yes,scrollbars=yes,resize=no,resizable=yes,menubar=no,width=' + cwidth + ',height=' + cheight + ',screenX=' + posX + ',screenY=' + posY + ',left=' + posX + ',top=' + posY + '');
	F.focus();
	return F;
}

function ip(image,width,height) {

	var html =  "<a href=\"javascript:;\" onclick=\"document.getElementById('image_popup').style.display='none';return false;\" title=\"Vergr&ouml;&szlig;erung schlie&szlig;en\">"
				+"<img src='"+image+"' width='"+width+"' height='"+height+"' border='0' />"
				+"</a>";

	document.getElementById("image_popup").innerHTML = html;
	document.getElementById("image_popup").style.display = 'block';
	document.getElementById("image_popup").style.width = width+"px";
	document.getElementById("image_popup").style.height = height+"px";

	var div_x = 0;
	var div_y = 0;
	if(typeof(window.innerWidth) != "undefined" && typeof(window.innerHeight) != "undefined") {
		div_x = parseInt(parseInt(window.innerWidth)/2 - parseInt(width)/2);
		div_y = parseInt(parseInt(window.innerHeight)/2 - parseInt(height)/2);
	} else if(typeof(document.documentElement.clientWidth) != "undefined" && typeof(document.documentElement.clientHeight) != "undefined") {
		div_x = parseInt(parseInt(document.documentElement.clientWidth)/2 - parseInt(width)/2);
		div_y = parseInt(parseInt(document.documentElement.clientHeight)/2 - parseInt(height)/2);
	}

	document.getElementById("image_popup").style.left = div_x+"px";
	document.getElementById("image_popup").style.top  = div_y+"px";

}
