function MessageBox(msg,title){
if(title==undefined){
title="系统提示";
}
if(msg==undefined){
msg="提示信息";
}
var divObj = document.getElementById("dialog-message");
if(divObj==null){
divObj = document.createElement("div");
divObj.id = "dialog-message";
divObj.title = title;
var pObj = document.createElement("p");
pObj.align = "center";
pObj.innerHTML = msg;
divObj.appendChild(pObj);
document.body.appendChild(divObj);
}
$( "#dialog-message" ).dialog({
modal: true,
buttons: {
"确定": function() {
$( this ).dialog( "close" );
}
}
});
}