rem: if (typeof _editor_url != "undefined" && !/^\ 
add: if (typeof _editor_url != "undefined" && !/^\ 
context: function PopupWin(editor, title, handler, initFunction) {	this.editor = editor;	this.handler = handler;	var dlg = window.open("", "__ha_dialog",			      "toolbar=no,menubar=no,personalbar=no,width=600,height=600,left=20,top=40" +			      "scrollbars=no,resizable=no");	this.window = dlg;	var doc = dlg.document;	this.doc = doc;	var self = this;	var base = document.baseURI || document.URL;	if (base && base.match(/(.*)\/([^\/]+)/)) {		base = RegExp.$1 + "/";	}	if (typeof _editor_url != "undefined" && !/^\//.test(_editor_url) && !/http:\/\//.test(_editor_url)) {		// _editor_url doesn't start with '/' which means it's relative		// FIXME: there's a problem here, it could be http:// which		// doesn't start with slash but it's not relative either.		base += _editor_url;	} else		base = _editor_url;	if (!/\/$/.test(base)) {		// base does not end in slash, add it now		base += '/';	}	this.baseURL = base;	doc.open();	var html = "<html><head><title>" + title + "</title>\n";	// html += "<base href='" + base + "htmlarea.js' />\n";	html += "<style type='text/css'>@import url(" + base + "htmlarea.css);</style></head>\n";	html += "<body class='dialog popupwin' id='--HA-body'></body></html>";	doc.write(html);	doc.close();	// sometimes I Hate Mozilla... ;-(	function init2() {		var body = doc.body;		if (!body) {			setTimeout(init2, 25);			return false;		}		dlg.title = title;		doc.documentElement.style.padding = "0px";		doc.documentElement.style.margin = "0px";		var content = doc.createElement("div");		content.className = "content";		self.content = content;		body.appendChild(content);		self.element = body;		initFunction(self);		dlg.focus();	};	init2();};
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/4d968a51f578e3361a382d6fa8372e519c47ba55/popupwin.js/clean/phpgwapi/js/htmlarea/popupwin.js