//小写转大写
function toUpperCase(obj) {
obj.value = obj.value.toUpperCase()
};
//报警窗口
function AlertWindow(msg) {
$('#alert').dialog({
title: '提示',
width: 300,
height: 200,
closed: false,
modal: true,
buttons: [{
text: '关闭',
handler: function () {
$('#alert').dialog('close');
}
}]
});
$('#alert').html("<span>" + msg + "</span>");
$('#alert').css("text-align", "center");
$('#alert span').css({ "line-height": "88px", "font-size": "14px", "font-family": "Microsoft YaHei" });
$('#alert').dialog('refresh');
};