$package("com.qn.dlg");

com.qn.dlg.UrlDlg = function (){
}

com.qn.dlg.UrlDlg.prototype = new js.ui.BaseWindow();

com.qn.dlg.UrlDlg.prototype.onload = null;

com.qn.dlg.UrlDlg.prototype.__superExtendUI = js.ui.BaseWindow.prototype.extendUI;

com.qn.dlg.UrlDlg.prototype.extendUI = function (){
	this.__superExtendUI();
	var __this = this;
	var extui = this.getDomNode("com.qn.dlg.UrlDlg");
	this.container.appendChild(extui);
	this.iframe = extui.getElementsByTagName("iframe")[0];
	var processload = function(){
		__this.iframe.contentWindow.win = __this;
		if(__this.iframe.contentWindow.doOnload)
			__this.iframe.contentWindow.doOnload(__this);
		if(__this.onload)
			__this.onload(__this.iframe.contentWindow);
	}
	if (this.iframe.addEventListener)
		this.iframe.addEventListener("load", processload, false);
	else if (this.iframe.attachEvent){
		this.iframe.attachEvent("onload", processload);
	}
	else
		this.iframe.onload = processload;
}

com.qn.dlg.UrlDlg.prototype.openUrl = function (url){
	this.iframe.src = url;
}

