rem: var body = document.body; window.dialogHeight = body.offsetHeight + 50 + "px"; window.dialogWidth = body.offsetWidth + "px"; 
add:  window.resizeBy(500, 350)   
context: function __dlg_init() {	if (!document.all) {		// init dialogArguments, as IE gets it		window.dialogArguments = opener.Dialog._arguments;		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);		/*		// center on parent		var px1 = opener.screenX;		var px2 = opener.screenX + opener.outerWidth;		var py1 = opener.screenY;		var py2 = opener.screenY + opener.outerHeight;		var x = (px2 - px1 - window.outerWidth) / 2;		var y = (py2 - py1 - window.outerHeight) / 2; */		//centre on screen instead		var x = (screen.width - window.outerWidth) / 2;		var y = (screen.height - window.outerHeight) / 2;		window.moveTo(x, y);		var body = document.body;		window.innerHeight = body.offsetHeight;		window.innerWidth = body.offsetWidth;	} else {		var body = document.body;		window.dialogHeight = body.offsetHeight + 50 + "px";		window.dialogWidth = body.offsetWidth + "px";	}};
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/df62bfaf6741e4549c9471588b6d29d6d021be1c/popup.js/clean/phpgwapi/js/htmlarea/plugins/UploadImage/popups/popup.js