rem: if (w.parent.owner) w = w.parent.owner; win = w.getParentByType(Window); 
add: var win_elem = (w.parent.owner)?w.parent.owner:w; win = win_elem.getParentByType(Window); 
context: recycleBin.empty = function(evt, w) {	var desktop = document.desktop;	var win;	if (w.parent.owner) w = w.parent.owner;	win = w.getParentByType(Window);	var rbid = win.attributes.FolderID;		_empty = function(evt, w) {		w.getParentByType(Dialog).close();		var xmlrpc = new XMLRPCRequest(QuiX.root + rbid);		xmlrpc.oncomplete = function(req) {			recycleBin.getContainerInfo(win);		}		xmlrpc.callmethod('empty');	}	desktop.msgbox(w.getCaption(), 		"Are you sure you want to empty the recycle bin?",		[			[desktop.attributes['YES'], 60, _empty],			[desktop.attributes['NO'], 60]		],		'images/messagebox_warning.gif', 'center', 'center', 260, 112);}
meta: 10647	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10647/518942f0c90293576bfd30f76b7710caefc24ee7/recycleBin.js/clean/porcupine/trunk/pubdir/scripts/recycleBin.js