context: Dialog._open = function(url, action, init, width, height, _opener, editor, scrollbars) {		if (typeof(Dialog._modal) == "object" && typeof(Dialog._modal.close) == "function") {		Dialog._modal.close();		Dialog._modal = null;	}		var dlg = window.open(url, 'hadialog', "toolbar=no,location=no,directories=no,menubar=no,width=" + width + ",height=" + height + ",scrollbars=" + scrollbars + ",resizable=yes,modal=yes,dependent=yes,top=100,left=100");	var obj = new Object();	obj.dialogWindow = dlg;	Dialog._dialog = obj;	Dialog._modal = dlg;	Dialog._arguments = null;	if (typeof(init) != "undefined") { Dialog._arguments = init; }					// Capture focus events	function capwin(w) {		if (HTMLArea.is_gecko) { w.addEventListener("focus", function(ev) { Dialog._parentEvent(ev); }, false); }			else { HTMLArea._addEvent(w, "focus", function(ev) { Dialog._parentEvent(ev); }); }		for (var i=0;i < w.frames.length;i++) { capwin(w.frames[i]); }	}	capwin(window);			// Close dialog window	function closeDialog() {		if (Dialog._dialog && Dialog._dialog.dialogWindow) {			Dialog._dialog.dialogWindow.close();			Dialog._dialog = null;		}		if (dlg && !dlg.closed) {			dlg.close();			dlg = null;		}		return false;	}		// make up a function to be called when the Dialog ends.	Dialog._return = function (val) {		if(val && action) { action(val); }			// release the captured events		function relwin(w) {			HTMLArea._removeEvent(w, "focus", function(ev) { Dialog._parentEvent(ev); });			try { for (var i=0;i < w.frames.length;i++) { relwin(w.frames[i]); } } catch(e) { }		}		relwin(window);		HTMLArea._removeEvent(window, "unload", closeDialog);		Dialog._dialog = null;	};		// capture unload events	HTMLArea._addEvent(dlg, "unload", function() { if (typeof(Dialog) != "undefined") Dialog._return(null); return false; });	HTMLArea._addEvent(window, "unload", closeDialog);};
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/443e58fd2f08b328380d1484dcf63e8bd3e13d5e/htmlarea.js/buggy/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js