rem: var dlg = window.open(url, "ha_dialog", "toolbar=no,menubar=no,personalbar=no,width=10,height=10," + "scrollbars=no,resizable=no"); Dialog._modal = dlg; Dialog._arguments = init; 
add:  if(url.lastIndexOf("insert_image.php") != -1) { var x = 730; var y = 540; } else if (url.lastIndexOf("link.php") != -1) { var x = 700; var y = 460; } else if (url.lastIndexOf("dlg_ins_smile.php") != -1) { var x = 330; var y = 360; } else if (url.lastIndexOf("dlg_ins_char.php") != -1) { var x = 450; var y = 270; } else if (url.lastIndexOf("select_color.html") != -1) { var x = 238; var y = 188; } else if (url.lastIndexOf("insert_table.php") != -1) { var x = 410; var y = 240; } else { var x = 10; var y = 10; }  var lx = (screen.width - x) / 2; var tx = (screen.height - y) / 2; var dlg = window.open(url, "ha_dialog", "toolbar=no,menubar=no,personalbar=no, width="+ x +",height="+ y +",scrollbars=no,resizable=no, left="+ lx +", top="+ tx +""); Dialog._modal = dlg; Dialog._arguments = init; 
context: Dialog._geckoOpenModal = function(url, action, init) {	var dlg = window.open(url, "ha_dialog",			      "toolbar=no,menubar=no,personalbar=no,width=10,height=10," +			      "scrollbars=no,resizable=no");	Dialog._modal = dlg;	Dialog._arguments = init;	// capture some window's events	function capwin(w) {		w.addEventListener("click", Dialog._parentEvent, true);		w.addEventListener("mousedown", Dialog._parentEvent, true);		w.addEventListener("focus", Dialog._parentEvent, true);	};	// release the captured events	function relwin(w) {		w.removeEventListener("focus", Dialog._parentEvent, true);		w.removeEventListener("mousedown", Dialog._parentEvent, true);		w.removeEventListener("click", Dialog._parentEvent, true);	};	capwin(window);	// capture other frames	for (var i = 0; i < window.frames.length; capwin(window.frames[i++]));	// make up a function to be called when the Dialog ends.	Dialog._return = function (val) {		if (val && action) {			action(val);		}		relwin(window);		// capture other frames		for (var i = 0; i < window.frames.length; relwin(window.frames[i++]));		Dialog._modal = null;	};};
meta: 752	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/752/f662e5613027f5fb7c5a55224ca41af67803614e/dialog.js/clean/lib/editor/dialog.js