var isFirstLoadSchoolyear = true; function SchoolyearLoaded(data) { if (((data.length && data.length > 0) || data)) { if (isFirstLoadSchoolyear) { isFirstLoadSchoolyear = false; } else { reload(); } } } function reload() { var schoolYearID = $("#SchoolYearDropdown").combobox("getValue"); var userID = $("#UserID").val(); $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fExaminationManage%2fTeacherExaminationSchedule&rs:Command=Render&SchoolyearID_RAP=" + schoolYearID + "&UserID_RAP=" + userID); }