add: Dialog._modal.focus(); }; 
context: Dialog._geckoOpenModal = function(url, action, init) {	var dlg = window.open(url, "hadialog",			      "toolbar=no,menubar=no,personalbar=no,width=10,height=10," +			      "scrollbars=no,resizable=yes,modal=yes,dependable=yes");	Dialog._modal = dlg;	Dialog._arguments = init;	// capture some window's events	function capwin(w) {		Xinha._addEvent(w, "click", Dialog._parentEvent);		Xinha._addEvent(w, "mousedown", Dialog._parentEvent);		Xinha._addEvent(w, "focus", Dialog._parentEvent);	}	// release the captured events	function relwin(w) {		Xinha._removeEvent(w, "click", Dialog._parentEvent);		Xinha._removeEvent(w, "mousedown", Dialog._parentEvent);		Xinha._removeEvent(w, "focus", Dialog._parentEvent);	}	capwin(window);	// capture other frames, note the exception trapping, this is because  // we are not permitted to add events to frames outside of the current  // window's domain.	for (var i = 0; i < window.frames.length; i++) {try { capwin(window.frames[i]); } catch(e) { } };	// 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; i++) { try { relwin(window.frames[i]); } catch(e) { } };		Dialog._modal = null;	};  Dialog._modal.focus();};
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/dialog.js/buggy/packages/acs-templating/www/resources/xinha-nightly/modules/Dialogs/dialog.js