var resDlg;
$(function(){
initResDlg();
});
function initResDlg(){
resDlg = $('#resDlg').dialog({
title:'创建双随机检查',
width:600,
height:400,
closed:true,
buttons: [{
text:'确定',
iconCls:'icon-ok',
handler:addRes
},{
text:'取消',
handler:closeRes
}]
});
}
$('#resDlg').dialog({
href:'../random/addResTo.do',
}).dialog('open');
resDlg.dialog({
href:'../random/addResTo.do',
}).dialog('open');