DoneDialog = function (title, message, callBack) {
	this.title = title;
	this.message = message;
	this.callBack = callBack;
};

DoneDialog.prototype.buildDiv = function () {
	var div = document.createElement('div');
	div.innerHTML = "<img src='/img/done.png' align='left' />" + this.message;
	return div;
};

DoneDialog.prototype.show = function () {
	var cb = this.callBack;
	jQuery(this.buildDiv()).dialog({
		modal: true,
		title: this.title, 
		resizable : false,
		draggable : false,
		width: 400,
		buttons: {
			Ok: function() {
				if (typeof cb != 'undefined') {
					try {
						cb();
					} catch (e) {}
				}
				jQuery(this).dialog('close');
			}
		}	           
	});
};
