if(CheckBrowser() == "IE")
{
var diagReturn = showModalDialog("admin_calendar_add.jsp?date="+currentDate+"&hour="+hour,'','dialogWidth:700px;dialogHeight:700px;help:No;resizable:No;');
if(diagReturn == "ok"){
//重新加载
}
}
else
{
//firefox
//var win = window.open("xxx.jsp?date="+currentDate+"&hour="+hour, "mcePopup", "top=" + y + ",left=" + x +",scrollbars=" + scrollbars + ",dialog=yes,modal=yes,width=" + width +",height=" + height + ",resizable=no" );
var win = window.open("admin_calendar_add.jsp?date="+currentDate+"&hour="+hour,"","top=50,left=200,width=700,height=700,scrollbars=false,dialog=yes,modal=yes,resizable=no");
win.focus();
}