function MessageBox(message, title, buttons)
{
	if(!title)
		title = "Message";
	if(!buttons)
		buttons = MessageBox.MB_OK;
		
	this.dialogBox = new DialogBox(title, message, "message_box");
	var center = document.createElement("center");

	if(buttons == MessageBox.MB_OK)
	{
		var button = document.createElement("input");
		button.type = "button";
		button.value = "OK";
		button.onclick = new Function("BlackBox.Remove(BlackBox.GetBoxById('" + this.dialogBox.box.box.id + "'));");
		center.appendChild(button);
	}
	this.dialogBox.body.appendChild(center);
}

MessageBox.prototype.MB_OK = 0;

MessageBox.prototype.Show = function ()
{	
	this.dialogBox.Show();
}

MessageBox.prototype.Hide = function ()
{
	this.dialogBox.Hide();
}
