rem: window.innerWidth = body.offsetWidth + 5; window.innerHeight = body_height + 2; 
context: function __dlg_init(bottom) {	var body = document.body;	var body_height = 0;	if (typeof bottom == "undefined") {		var div = document.createElement("div");		body.appendChild(div);		var pos = getAbsolutePos(div);		body_height = pos.y;	} else {		var pos = getAbsolutePos(bottom);		body_height = pos.y + bottom.offsetHeight;	}	window.dialogArguments = opener.Dialog._arguments;	if (!document.all) {		window.sizeToContent();		window.sizeToContent();	// for reasons beyond understanding,					// only if we call it twice we get the					// correct size.		window.addEventListener("unload", __dlg_onclose, true);		window.innerWidth = body.offsetWidth + 5;		window.innerHeight = body_height + 2;		// center on parent		var x = opener.screenX + (opener.outerWidth - window.outerWidth) / 2;		var y = opener.screenY + (opener.outerHeight - window.outerHeight) / 2;		window.moveTo(x, y);	} else {		// window.dialogHeight = body.offsetHeight + 50 + "px";		// window.dialogWidth = body.offsetWidth + "px";		window.resizeTo(body.offsetWidth, body_height);		var ch = body.clientHeight;		var cw = body.clientWidth;		window.resizeBy(body.offsetWidth - cw, body_height - ch);		var W = body.offsetWidth;		var H = 2 * body_height - ch;		var x = (screen.availWidth - W) / 2;		var y = (screen.availHeight - H) / 2;		window.moveTo(x, y);	}	document.body.onkeypress = __dlg_close_on_esc;};
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/4d968a51f578e3361a382d6fa8372e519c47ba55/popup.js/clean/phpgwapi/js/htmlarea/popups/popup.js