$package("js.ui");

js.ui.MessageBox = function(){
}

js.ui.MessageBox.prototype = new js.ui.BaseWindow();

js.ui.MessageBox.prototype.extendUI = function (){
	var __this = this;
	this.ui.style.zIndex = 11;
	this.setTitle(props("Info"));
	var extui = this.getDomNode("js.ui.MessageBox");
	this.container.appendChild(extui);
	this.message = extui.getElementsByTagName("span")[0];
	this.okButton = extui.getElementsByTagName("button")[0];
	this.okButton.onclick = this.closeButton.ui.onclick;
	this.setResizeable(false);
	this.setMoveable(false);
}

js.ui.MessageBox.prototype.showMessage = function (title, msg){
	if(!this.getUI().parentNode!=document.body)
		document.body.appendChild(this.ui);
	this.setTitle(props(title));
	this.message.innerHTML = props(msg);
	this.showModal();
	this.center();
}

