var which_mode = "simple"; var latestEnrollmentID = 0; var newestEnrollmentID = 0; var latestLPEnrollmentID = 0; var inYoutube = false; var inSurvey = false; var inAICC = false; var inDoc = false; var whichAfterLoad = ''; var courseOpen = false; var icp = ''; var globalIsiPad = navigator.userAgent.match(/iPad/i) != null; var goFD = false; var globalModalMinWidth = 900; var requiredstring = ''; var thePassOK = true; if (globalIsiPad) { globalModalMinWidth = 700; } var isMobile = false; if (/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { isMobile = true; } if (isMobile) { goFD = true; } //for testing mobile performance //isMobile = true; //for testing mobile delivery only //goFD = true; function isNumberKeyField(evt) { var charCode = (evt.which) ? evt.which : event.keyCode; if ((charCode < 48 || charCode > 57) && (charCode != 8)) return false; return true; } function checkRemember(whichCat, whichCourse) { if (document.getElementById('lmscourse_' + whichCat + '_' + whichCourse).checked) { $.post("general_ajax_group_remember.aspx", { "catID": whichCat, "courseID": whichCourse, "action": "add" }); } else { $.post("general_ajax_group_remember.aspx", { "catID": whichCat, "courseID": whichCourse, "action": "remove" }); } } function roleExpand(which) { if (which == 'learner') { ezToggle('roleLearner'); ezToggle('roleLearnerStatic'); } if (which == 'manager') { ezToggle('roleManager'); ezToggle('roleManagerStatic'); } if (which == 'instructor') { ezToggle('roleInstructor'); ezToggle('roleInstructorStatic'); } if (which == 'reporter') { ezToggle('roleReporter'); ezToggle('roleReporterStatic'); } if (which == 'contentAdmin') { ezToggle('roleCA'); ezToggle('roleCAStatic'); } if (which == 'admin') { ezToggle('roleAdmin'); ezToggle('roleAdminStatic'); } } function submitCreateClass(which) { var seats = document.getElementById('seats').value; if (document.getElementById("name").value != '') { if (isNumber(seats)) { var sdate = document.getElementById('startDate').value; if (sdate != '') { //check to see if the start time is after the end time var edate = document.getElementById('endDate').value; var dateOK = true; if (edate != '') { var d1 = new Date(sdate); var d2 = new Date(edate); if (d2 < d1) { dateOK = false; } } if (dateOK) { var reqOK = true; //alert(requiredstring); if (requiredstring != '') { var mySplitResult = requiredstring.split(","); //var okToGo = true; for (i = 0; i < mySplitResult.length; i++) { //alert(mySplitResult[i]); if (document.getElementById('userFieldValue_' + mySplitResult[i])) { //alert(document.getElementsByName('userFieldValue_' + mySplitResult[i])[0].type); if (document.getElementsByName('userFieldValue_' + mySplitResult[i])[0].type == 'radio') { //alert(document.getElementsByName('userFieldValue_' + mySplitResult[i]).length); var okRadio = false; for (j = 0; j < document.getElementsByName('userFieldValue_' + mySplitResult[i]).length; j++) { //alert(document.getElementsByName('userFieldValue_' + mySplitResult[i])[j].checked); if (document.getElementsByName('userFieldValue_' + mySplitResult[i])[j].checked) { okRadio = true; //alert("got ok radio"); } } if (okRadio == false) { reqOK = false; } } else { //alert(document.getElementById('userFieldValue_' + mySplitResult[i]).value); if (document.getElementById('userFieldValue_' + mySplitResult[i]).value == '') { reqOK = false; } } } } } if (reqOK) { var thesam = document.getElementById('startTimeAMPM').value; var theeam = document.getElementById('endTimeAMPM').value; var theshour = document.getElementById('startTimeHR').value; var theehour = document.getElementById('endTimeHR').value; if ((thesam == 'AM') && (theeam == 'PM')) { //one it am one is pm so its ok submitPage(which); } else { if ((thesam == 'PM') && (theeam == 'AM')) { ezAlert("The start time must be earlier than the end time."); } else { //same am and pm //alert(theshour + ' - ' + theehour) if ((parseInt(theshour) < parseInt(theehour)) || ((parseInt(theshour) == 12) && (parseInt(theehour) < 12))) { //its ok, start is less than end hour submitPage(which); } else { if (parseInt(theshour) == parseInt(theehour)) { //same hour, must look at minutes var thesmin = document.getElementById('startTimeMIN').value; var theemin = document.getElementById('endTimeMIN').value; if (parseInt(theemin) > parseInt(thesmin)) { submitPage(which); } else { ezAlert("The start time must be earlier than the end time."); } } else { //start hour must be greater than end hour here ezAlert("The start time must be earlier than the end time."); } } } } //} else { //submitPage(which); //} } else { ezAlert("Please complete all of the required fields."); } } else { ezAlert("The start date must be the same as or earlier than the end date."); } } else { ezAlert("You must enter a Start Date for your Live Class Session."); } } else { ezAlert("You must enter a valid number of seats for the Live Class Session."); } } else { ezAlert("You must assigned a Name to this live class session."); } } function v38_submitCreateClass(which) { var seats = document.getElementById('seats').value; if (document.getElementById("name").value != '') { if (isNumber(seats)) { var sdate = document.getElementById('startDate').value; if (sdate != '') { //check to see if the start time is after the end time var edate = document.getElementById('endDate').value; var dateOK = true; if (edate != '') { var d1 = new Date(sdate); var d2 = new Date(edate); if (d2 < d1) { dateOK = false; } } if (dateOK) { var reqOK = true; //alert(requiredstring); if (requiredstring != '') { var mySplitResult = requiredstring.split(","); //var okToGo = true; for (i = 0; i < mySplitResult.length; i++) { //alert(mySplitResult[i]); if (document.getElementById('userFieldValue_' + mySplitResult[i])) { //alert(document.getElementsByName('userFieldValue_' + mySplitResult[i])[0].type); if (document.getElementsByName('userFieldValue_' + mySplitResult[i])[0].type == 'radio') { //alert(document.getElementsByName('userFieldValue_' + mySplitResult[i]).length); var okRadio = false; for (j = 0; j < document.getElementsByName('userFieldValue_' + mySplitResult[i]).length; j++) { //alert(document.getElementsByName('userFieldValue_' + mySplitResult[i])[j].checked); if (document.getElementsByName('userFieldValue_' + mySplitResult[i])[j].checked) { okRadio = true; //alert("got ok radio"); } } if (okRadio == false) { reqOK = false; } } else { //alert(document.getElementById('userFieldValue_' + mySplitResult[i]).value); if (document.getElementById('userFieldValue_' + mySplitResult[i]).value == '') { reqOK = false; } } } } } if (reqOK) { var typeOK = true; if (document.getElementById('v38_type').value == 'w') { if (document.getElementById('conferenceLink').value == '') { typeOK = false; } } if (typeOK) { var thesam = document.getElementById('startTimeAMPM').value; var theeam = document.getElementById('endTimeAMPM').value; var theshour = document.getElementById('startTimeHR').value; var theehour = document.getElementById('endTimeHR').value; if ((thesam == 'AM') && (theeam == 'PM')) { //one it am one is pm so its ok submitPage(which); } else { if ((thesam == 'PM') && (theeam == 'AM')) { ezAlert("The start time must be earlier than the end time."); } else { //same am and pm //alert(theshour + ' - ' + theehour) if ((parseInt(theshour) < parseInt(theehour)) || ((parseInt(theshour) == 12) && (parseInt(theehour) < 12))) { //its ok, start is less than end hour submitPage(which); } else { if (parseInt(theshour) == parseInt(theehour)) { //same hour, must look at minutes var thesmin = document.getElementById('startTimeMIN').value; var theemin = document.getElementById('endTimeMIN').value; if (parseInt(theemin) > parseInt(thesmin)) { submitPage(which); } else { ezAlert("The start time must be earlier than the end time."); } } else { //start hour must be greater than end hour here ezAlert("The start time must be earlier than the end time."); } } } } //} else { //submitPage(which); //} } else { ezAlert("A conference link is required for web conferences. Please try again."); } } else { ezAlert("Please complete all of the required fields."); } } else { ezAlert("The start date must be the same as or earlier than the end date."); } } else { ezAlert("You must enter a Start Date for your Live Class Session."); } } else { ezAlert("You must enter a valid number of seats for the Live Class Session."); } } else { ezAlert("You must assigned a Name to this live class session."); } } function setROAdmin() { if (document.getElementById('admin').checked) { $("#roAdminArea").slideDown(); } else { $("#roAdminArea").slideUp(); } } function changeBrandWidth() { var myWidth = document.getElementById('width').value; document.getElementById('wrapper').style.maxWidth = myWidth + 'px'; var contentAreas = getElementsByClass('pageBlockMenu'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.maxWidth = (parseInt(myWidth) + 40) + 'px'; } contentAreas = getElementsByClass('pageBlockMenuStatic'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.maxWidth = (parseInt(myWidth) + 40) + 'px'; } } function selectInterface(which) { if (which == '2') { int = '2'; $("#interface2").removeClass("interfaceNotSelected").addClass("interfaceSelected"); $("#interface1").removeClass("interfaceSelected").addClass("interfaceNotSelected"); document.getElementById('int').value = '2'; document.getElementById('headerDesc').innerHTML = 'Header Image (227 x 80 pixels):'; var contentAreas = getElementsByClass('interfaceItems'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.display = 'none'; } } else { int = ''; $("#interface1").removeClass("interfaceNotSelected").addClass("interfaceSelected"); $("#interface2").removeClass("interfaceSelected").addClass("interfaceNotSelected"); document.getElementById('int').value = ''; document.getElementById('headerDesc').innerHTML = 'Header Image (80 pixels high, same width as page width):'; var contentAreas = getElementsByClass('interfaceItems'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.display = ''; } } } function selectInterfaceWelcome(which) { if (which == '2') { int = '2'; $("#interface2").removeClass("interfaceNotSelected").addClass("interfaceSelected"); $("#interface1").removeClass("interfaceSelected").addClass("interfaceNotSelected"); document.getElementById('int').value = '2'; document.getElementById('headerDesc').innerHTML = 'Header Image (227 x 80 pixels):'; var contentAreas = getElementsByClass('interfaceItems'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.display = 'none'; } } else { int = ''; $("#interface1").removeClass("interfaceNotSelected").addClass("interfaceSelected"); $("#interface2").removeClass("interfaceSelected").addClass("interfaceNotSelected"); document.getElementById('int').value = ''; document.getElementById('headerDesc').innerHTML = 'Header Image (1200 x 80 pixels):'; var contentAreas = getElementsByClass('interfaceItems'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.display = ''; } } } function selectInterfaceWelcome2(which) { if (which == '2') { int = '2'; $("#interface2").removeClass("interfaceNotSelected").addClass("interfaceSelected"); $("#interface1").removeClass("interfaceSelected").addClass("interfaceNotSelected"); document.getElementById('int').value = '2'; } else { int = ''; $("#interface1").removeClass("interfaceNotSelected").addClass("interfaceSelected"); $("#interface2").removeClass("interfaceSelected").addClass("interfaceNotSelected"); document.getElementById('int').value = ''; } } function selectCatWelcome2(which) { if (which == '3') { $("#cat3").removeClass("interfaceNotSelected").addClass("interfaceSelected"); $("#cat2").removeClass("interfaceSelected").addClass("interfaceNotSelected"); $("#cat1").removeClass("interfaceSelected").addClass("interfaceNotSelected"); document.getElementById('bigCatalog').value = 'i'; } else if (which == '2') { $("#cat3").removeClass("interfaceSelected").addClass("interfaceNotSelected"); $("#cat2").removeClass("interfaceNotSelected").addClass("interfaceSelected"); $("#cat1").removeClass("interfaceSelected").addClass("interfaceNotSelected"); document.getElementById('bigCatalog').value = 'y'; } else { $("#cat3").removeClass("interfaceSelected").addClass("interfaceNotSelected"); $("#cat2").removeClass("interfaceSelected").addClass("interfaceNotSelected"); $("#cat1").removeClass("interfaceNotSelected").addClass("interfaceSelected"); document.getElementById('bigCatalog').value = 'n'; } } function ColorLuminance(hex, lum) { // validate hex string hex = String(hex).replace(/[^0-9a-f]/gi, ''); if (hex.length < 6) { hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; } lum = lum || 0; // convert to decimal and change luminosity var rgb = "#", c, i; for (i = 0; i < 3; i++) { c = parseInt(hex.substr(i * 2, 2), 16); c = Math.round(Math.min(Math.max(0, c + (c * lum)), 255)).toString(16); rgb += ("00" + c).substr(c.length); } return rgb; } function changeBadgeIcon(which) { //alert(which); document.getElementById("badgeIconDisplay").className = which; document.getElementById('badgeIcon').value = which; } function badgeChangeBGColor() { myColor = document.getElementById('bgColor').value; document.getElementById('badgeIconArea').style.background = "#" + myColor; } function badgeChangeIconColor() { myColor = document.getElementById('iconColor').value; document.getElementById('badgeIconArea').style.color = "#" + myColor; document.getElementById('badgeIconArea').style.borderColor = "#" + myColor; } function setBadgeBorder() { if (document.getElementById('borderDashed').checked) { document.getElementById('badgeIconArea').style.borderStyle = "dashed"; } if (document.getElementById('borderDouble').checked) { document.getElementById('badgeIconArea').style.borderStyle = "double"; } if (document.getElementById('borderSolid').checked) { document.getElementById('badgeIconArea').style.borderStyle = "solid"; } } function changeBadgeName() { var myName = document.getElementById('name').value; document.getElementById('badgeName').innerHTML = myName; } function validateHelpRequest(which) { if (document.getElementById('title').value != '' && document.getElementById('body').value != '') { submitPage(which); } else { ezAlert('You must enter a title and content for this help request. Please try again.'); } } function showXAPILog(which) { if (document.getElementById('activityArea').style.display == 'none') { document.getElementById('logTitle').innerHTML = "xAPI Data Log"; document.getElementById('activityArea').style.display = ''; document.getElementById('logFrame').src = 'general_transcript_xapi.aspx?email=' + which } else { document.getElementById('activityArea').style.display = 'none'; } } function showActivityLog(which) { if (document.getElementById('activityArea2').style.display == 'none') { document.getElementById('logTitle2').innerHTML = "LMS Activity Log"; document.getElementById('activityArea2').style.display = ''; document.getElementById('logFrame2').src = 'general_transcript_activity.aspx?studentID=' + which } else { document.getElementById('activityArea2').style.display = 'none'; } } function validateUserForm() { if ((thePassOK) || (passSkip)) { if (document.getElementById('password').value != document.getElementById('password2').value) { ezAlert("The passwords do not match. Please try again."); } else { if (okToSubmit) { showWait(); __doPostBack('Button1', ''); return true; } else { ezAlert('The Email Address you have entered is either invalid or is already used in the LMS. Please choose a different one and try again.'); } } } else { ezAlert("You must use a strong password."); } } function v38_validateUserForm() { //alert("testing"); var okToSubmitManager = true; var okToSubmitPassword = true; if (document.getElementById('managerEmail')) { var manEmail = document.getElementById('managerEmail').value.toLocaleLowerCase(); //alert(manEmail); if (validManager.indexOf(":" + manEmail + ":") > -1) { okToSubmitManager = true; } else { okToSubmitManager = false; } } if ((document.getElementById('password')) && (document.getElementById('password2'))) { if (document.getElementById('password').value != document.getElementById('password2').value) { okToSubmitPassword = false; } } if (okToSubmitPassword == false) { ezAlert("The passwords do not match. Please try again."); } else { if (okToSubmitManager == false) { ezAlert('The Manager Email or Manager Username entered is not valid. Please try again.'); } else { if (okToSubmit) { showWait(); __doPostBack('Button1', ''); return true; } else { ezAlert('The Email Address you have entered is either invalid or is already used in the LMS. Please choose a different one and try again.'); } } } } function v38_validateUserFormStudent() { //alert("testing"); var okToSubmitManager = true; var okToSubmitPassword = true; var okToSubmitRequired = true; if (document.getElementById('managerEmail')) { var manEmail = document.getElementById('managerEmail').value.toLocaleLowerCase();; if (validManager.indexOf(":" + manEmail + ":") > -1) { okToSubmitManager = true; } else { okToSubmitManager = false; } } if ((document.getElementById('password')) && (document.getElementById('password2'))) { if (document.getElementById('password').value != document.getElementById('password2').value) { okToSubmitPassword = false; } } if (document.getElementById('userForm')) { var myform = document.getElementById('userForm'); for (var i = 0; i < myform.elements.length; i++) { if (myform.elements[i].value === '' && myform.elements[i].hasAttribute('required')) { okToSubmitRequired = false; } } } if (document.getElementById('aspnetForm')) { var myform = document.getElementById('aspnetForm'); for (var i = 0; i < myform.elements.length; i++) { if (myform.elements[i].value === '' && myform.elements[i].hasAttribute('required')) { okToSubmitRequired = false; } } } if (okToSubmitPassword == false) { ezAlert("The passwords do not match. Please try again."); return false; } else { if (okToSubmitManager == false) { ezAlert('The Manager Email or Manager Username is not valid. Please try again.'); return false; } else { if (okToSubmitRequired) { if (okToSubmit) { showWait(); __doPostBack('Button1', ''); return true; } else { ezAlert('The Email Address you have entered is either invalid or is already used in the LMS. Please choose a different one and try again.'); return false; } } else { ezAlert('Please complete all required fields and try again.'); return false; } } } } function validateCourseForm() { if (document.getElementById('name').value == '') { ezAlert("You must enter a name for the course. Please try again."); } else { showWait(); __doPostBack('Button1', ''); return true; } } function v38_validateCourseForm() { if (document.getElementById('name').value == '') { ezAlert("You must enter a name for the course. Please try again."); } else { var myExpire = document.getElementById('expireTerm').value; var myCert = document.getElementById('certPeriod').value; //alert($.isNumeric(myExpire)); if ((myExpire != '') && (myCert != '') && (myExpire != '0') && (myCert != '0')) { if (parseInt(myExpire) > (parseInt(myCert) * 30)) { ezAlert("The number of months set for the Auto Re-Enrollment must be greater than the number of days for the Due Date. For example, if the Auto Re-Enrollment is set for 12 months, the number of days for the Due Date must be less than 365 days. You can remove the Auto Re-Enrollment or increase number of months set for the Auto Re-Enrollment."); } else { showWait(); __doPostBack('Button1', ''); return true; } } else { showWait(); __doPostBack('Button1', ''); return true; } } } function v38_validateLpForm() { if (document.getElementById('name').value == '') { ezAlert("You must enter a name for the Learning Path. Please try again."); } else { if (document.getElementById('hpTitle').value == '') { ezAlert("You must value in the Learning Path Title field. Please try again."); } else { showWait(); __doPostBack('Button1', ''); return true; } } } function changeUserTabs(which) { if (which == 'groups') { $("#userTabHeaderGroups").removeClass("tabHeader").addClass("tabHeaderSelected"); $("#userTabHeaderRoles").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderDocs").removeClass("tabHeaderSelected").addClass("tabHeader"); document.getElementById('userTabGroups').style.display = ''; document.getElementById('userTabRoles').style.display = 'none'; document.getElementById('userTabDocs').style.display = 'none'; } if (which == 'roles') { $("#userTabHeaderRoles").removeClass("tabHeader").addClass("tabHeaderSelected"); $("#userTabHeaderGroups").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderDocs").removeClass("tabHeaderSelected").addClass("tabHeader"); document.getElementById('userTabRoles').style.display = ''; document.getElementById('userTabGroups').style.display = 'none'; document.getElementById('userTabDocs').style.display = 'none'; } if (which == 'docs') { $("#userTabHeaderDocs").removeClass("tabHeader").addClass("tabHeaderSelected"); $("#userTabHeaderGroups").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderRoles").removeClass("tabHeaderSelected").addClass("tabHeader"); document.getElementById('userTabDocs').style.display = ''; document.getElementById('userTabGroups').style.display = 'none'; document.getElementById('userTabRoles').style.display = 'none'; } } function changeUserTabs_59(which) { if (which == 'groups') { $("#userTabHeaderGroups").removeClass("tabHeader").addClass("tabHeaderSelected"); $("#userTabHeaderRoles").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderDocs").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderIndustry").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderRegulator").removeClass("tabHeaderSelected").addClass("tabHeader"); document.getElementById('userTabGroups').style.display = ''; document.getElementById('userTabRoles').style.display = 'none'; document.getElementById('userTabDocs').style.display = 'none'; document.getElementById('userTabIndustry').style.display = 'none'; document.getElementById('userTabRegulator').style.display = 'none'; } if (which == 'roles') { $("#userTabHeaderRoles").removeClass("tabHeader").addClass("tabHeaderSelected"); $("#userTabHeaderGroups").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderDocs").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderIndustry").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderRegulator").removeClass("tabHeaderSelected").addClass("tabHeader"); document.getElementById('userTabRoles').style.display = ''; document.getElementById('userTabGroups').style.display = 'none'; document.getElementById('userTabDocs').style.display = 'none'; document.getElementById('userTabIndustry').style.display = 'none'; document.getElementById('userTabRegulator').style.display = 'none'; } if (which == 'docs') { $("#userTabHeaderDocs").removeClass("tabHeader").addClass("tabHeaderSelected"); $("#userTabHeaderGroups").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderRoles").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderIndustry").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderRegulator").removeClass("tabHeaderSelected").addClass("tabHeader"); document.getElementById('userTabDocs').style.display = ''; document.getElementById('userTabGroups').style.display = 'none'; document.getElementById('userTabRoles').style.display = 'none'; document.getElementById('userTabIndustry').style.display = 'none'; document.getElementById('userTabRegulator').style.display = 'none'; } if (which == 'industry') { $("#userTabHeaderIndustry").removeClass("tabHeader").addClass("tabHeaderSelected"); $("#userTabHeaderGroups").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderRoles").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderDocs").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderRegulator").removeClass("tabHeaderSelected").addClass("tabHeader"); document.getElementById('userTabDocs').style.display = 'none'; document.getElementById('userTabGroups').style.display = 'none'; document.getElementById('userTabRoles').style.display = 'none'; document.getElementById('userTabIndustry').style.display = ''; document.getElementById('userTabRegulator').style.display = 'none'; myAjaxTable3.ajax.reload(); } if (which == 'regulator') { $("#userTabHeaderRegulator").removeClass("tabHeader").addClass("tabHeaderSelected"); $("#userTabHeaderGroups").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderRoles").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderDocs").removeClass("tabHeaderSelected").addClass("tabHeader"); $("#userTabHeaderIndustry").removeClass("tabHeaderSelected").addClass("tabHeader"); document.getElementById('userTabDocs').style.display = 'none'; document.getElementById('userTabGroups').style.display = 'none'; document.getElementById('userTabRoles').style.display = 'none'; document.getElementById('userTabIndustry').style.display = 'none'; document.getElementById('userTabRegulator').style.display = ''; myAjaxTable4.ajax.reload(); } } function ezShowHide(which, whichID) { if (which == 'show') { document.getElementById(whichID).style.display = ''; } else { document.getElementById(whichID).style.display = 'none'; } } function filterCourseReport() { var myValue = document.getElementById('courseFilter').value; if (displayFile.indexOf('?') < 0) { displayFile = displayFile + '?search=' + myValue; } else { displayFile = origDisplayFile + '?search=' + myValue; } redisplayResults(); } function clearCourseReport() { document.getElementById('courseFilter').value = ''; displayFile = 'reporter_courses_display.aspx'; redisplayResults(); } function filterSurveyReport() { var myValue = document.getElementById('courseFilter').value; if (displayFile.indexOf('?') < 0) { displayFile = displayFile + '?search=' + myValue; } else { displayFile = origDisplayFile + '?search=' + myValue; } //alert(displayFile); redisplayResults(); } function clearSurveyReport() { document.getElementById('courseFilter').value = ''; displayFile = 'reporter_surveys_displayV2.aspx'; redisplayResults(); } function filterSurveyReportInstructor() { var myValue = document.getElementById('courseFilter').value; if (displayFile.indexOf('?') < 0) { displayFile = displayFile + '?search=' + myValue; } else { displayFile = origDisplayFile + '?search=' + myValue; } //alert(displayFile); redisplayResults(); } function clearSurveyReportInstructor() { document.getElementById('courseFilter').value = ''; displayFile = 'instructor_surveys_displayV2.aspx'; redisplayResults(); } function showDetailSummary(which, whichName) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: true, opacity: 30, minHeight: 500, minWidth: 800, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function emailClass(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: true, opacity: 30, minHeight: 500, minWidth: 800, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function showLEWindow(which, whichID) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: true, opacity: 30, minHeight: 500, minWidth: 800, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function deleteLE(studentID, leID, mode) { var loc = "general_transcript.aspx?studentID=" + studentID + "&mode=" + mode + "&code=deleteLE&deleteID=" + leID; ezConfirm("Are you sure you want to delete this Learning Event?", loc); } function showGroupAreaPerf(which) { if (which == 'n') { $("#groupArea").slideUp(); } else { $("#groupArea").slideDown(); } } function defaultPage(where, whichUser) { if (document.getElementById('lockIcon').src.indexOf('unlock.png') > -1) { document.getElementById('lockIcon').src = 'images/icons/' + icp + 'lock.png'; document.getElementById('defaultPageFrame').src = 'general_set_default_page.aspx?page=' + where + '&lmsuserID=' + whichUser; ezAlert('This page has been set as your home page. The next time you log in, you will be taken directly to this page.'); } else { document.getElementById('lockIcon').src = 'images/icons/' + icp + 'unlock.png'; document.getElementById('defaultPageFrame').src = 'general_set_default_page.aspx?page=&lmsuserID=' + whichUser; ezAlert('Your custom home page selection has been removed.'); } } function v38_defaultPage(where, whichUser, set) { if (set == 'y') { document.getElementById('defaultPageFrame').src = 'general_set_default_page.aspx?page=' + where + '&lmsuserID=' + whichUser; document.getElementById('defPageSpot').innerHTML = 'Reset My Favorite Page'; ezAlert('This page has been set as your home page. The next time you log in, you will be taken directly to this page.'); } else { document.getElementById('defaultPageFrame').src = 'general_set_default_page.aspx?page=&lmsuserID=' + whichUser; document.getElementById('defPageSpot').innerHTML = 'Set as My Favorite Page'; ezAlert('Your custom home page selection has been removed.'); } } function v38_defaultPage_spanish(where, whichUser, set) { if (set == 'y') { document.getElementById('defaultPageFrame').src = 'general_set_default_page.aspx?page=' + where + '&lmsuserID=' + whichUser; document.getElementById('defPageSpot').innerHTML = 'Restablecer mi página favorita'; ezAlert('Esta página se ha establecido como su página de inicio. La próxima vez que inicie sesión, se le llevará directamente a esta página.'); } else { document.getElementById('defaultPageFrame').src = 'general_set_default_page.aspx?page=&lmsuserID=' + whichUser; document.getElementById('defPageSpot').innerHTML = 'Convertir esta página en mi página predeterminada'; ezAlert('Su selección de página de inicio personalizada se ha eliminado.'); } } function selectCPBrand(where) { document.getElementById('thelink').value = where; } function showIntroGraphic() { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 600, minWidth: 920 }); } function showCodes(which) { if (which == 'y') { $('#codeRow').slideDown(); } else { $('#codeRow').slideUp(); } } function genCoursePurchaseLink(whichID, whichName) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function genCourseExternalLink(whichID, whichName) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function genGroupPurchaseLink(whichID, whichName) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function showCourseDetails(courseID,isadmin,enrollmentID) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: globalModalMinWidth, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function showCourseDetailsMT(courseID, isadmin, enrollmentID) { ezToggle('CourseDetailsArea_' + enrollmentID); processAjax('general_course_details.aspx?LMScourseID=' + courseID + '&isadmin=' + isadmin + '&inline=true', 'CourseDetails_' + enrollmentID); } function showCourseDetailsInline(which) { if (document.getElementById('catalogDetails_' + which).style.display == 'none') { processAjax('contentAdmin_catalog_details_frame.aspx?lmscourseID=' + which, 'courseDetails_' + which); $('#catalogDetails_' + which).slideDown(""); } else { $('#catalogDetails_' + which).slideUp(""); } } function showCourseDetailsLaunch(courseID, isadmin, enrollmentID) { //var thisWindowWidth = getWindowWidth(); //if (thisWindowWidth < 900) { //var anotherWin = (window.open('general_course_details.aspx?LMScourseID=' + courseID + '&isadmin=' + isadmin + '&enrollmentID=' + enrollmentID, "LMS", "location=yes,status=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes")); //anotherWin.focus; //} else { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: globalModalMinWidth, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); //} } function basicConfirm(message, loc) { //if (confirm(message)) { //gotoPage(loc); //} ezConfirm(message, loc); } function studentClassUnenroll(which) { ezConfirm('Are you sure you want to remove yourself from this Live Class Session?', 'student_my_training.aspx?code=removeSession&sessionID=' + which); } function selectAllCustom() { document.getElementById("reportArea").contentWindow.selectAllHere(); } function selectNoneCustom() { document.getElementById("reportArea").contentWindow.selectNoneHere(); } function submitCustomEmail() { document.getElementById("reportArea").contentWindow.gatherEmailIDS(); } function submitCustomEmail2() { //var objEditor = CKEDITOR.instances["theEmail"]; var theEmailBody = document.getElementById('theEmail').value; //alert(theEmailBody); //alert(q); //alert(reportArea.document.getElementById('fromEmailAddress').value); reportArea.document.getElementById('fromEmailAddress').value = document.getElementById('fromEmailAddress').value; //alert(reportArea.document.getElementById('fromEmailAddress').value); reportArea.document.getElementById('emailSubject').value = document.getElementById('emailSubject').value; reportArea.document.getElementById('theEmail').value = theEmailBody; reportArea.document.getElementById('customEmailForm').submit(); } function checkLPContentType(which) { if (which == 'course') { document.getElementById('contentCourse').style.display = ''; document.getElementById('contentLE').style.display = 'none'; } else { document.getElementById('contentCourse').style.display = 'none'; document.getElementById('contentLE').style.display = ''; } } function sendCustomEmail(idString) { //alert(idString); var myEmailSubject = document.getElementById('emailSubject').value; var myEmailBody = document.getElementById('theEmail').value; var myFromAddress = document.getElementById('fromEmailAddress').value; if (idString == '') { ezAlert("Please check the checkbox next to a user or users in the list to designate who should receive this email."); } else { if ((myEmailBody == '') || (myEmailSubject == '')) { ezAlert("Please enter a Subject and Content for your email before sending."); } else { //alert('reporter_custom_send_email.aspx?idString=' + idString + '&emailSubject=' + myEmailSubject + '&theEmail=' + myEmailBody + '&fromEmail=' + myFromAddress); document.getElementById('emailFrame').src = 'reporter_custom_send_email.aspx?idString=' + idString + '&emailSubject=' + myEmailSubject + '&theEmail=' + myEmailBody + '&fromEmail=' + myFromAddress; } } } function confirmCustomEmailSent() { ezAlert("Your Email has been sent successfully."); } function editUserDoc(which) { document.getElementById('addDoc').value = which; submitPage('userForm'); } function checkFreeNav() { if (document.getElementById('showNav').checked) { document.getElementById('freeNavArea').style.display = ''; document.getElementById('freeNavArea2').style.display = ''; } else { document.getElementById('freeNavArea').style.display = 'none'; document.getElementById('freeNavArea2').style.display = 'none'; } } function notifyResultsPage() { document.getElementById('modalArea').innerHTML = 'You have added a scored page to this lesson. As a result, a "Results Page" has been automatically added to the end of this lesson. This "Results Page" will display the calculated score and results to the student at the end of the lesson. You may edit and modify this page, but may not delete it as long as there are scored questions in the lesson.

'; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 220, minWidth: 450, maxWidth: 500 }); } function createPage() { $('#createPageArea').slideDown(''); } function changeTemplate(which) { for (x = 1; x < 7; x++) { if (x == which) { eval("document.getElementById('templateIcon" + x + "').border='1';") } else { eval("document.getElementById('templateIcon" + x + "').border='0';") } } pageFrame.pageCreate.document.getElementById('pageLoadingSpot').style.display = ''; pageFrame.pageCreate.template.value = which; pageFrame.pageCreate.mode.value = 'changeTemplate'; pageFrame.pageCreate.submit(); } function goPreview(which) { myWin = open("general_create_page_preview.aspx?pageID=" + which, "Preview", "width=722,height=545,location=no,status=no,toolbar=no,menubar=no,scrollbars=no"); myWin.focus(); } function previewThisSurvey(where) { //myWin = open(where, "Preview", "width=1000,height=800,location=no,status=no,toolbar=no,menubar=no,scrollbars=no"); //myWin.focus(); document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minWidth: 1100, maxWidth: 1100, minHeight: 800, maxHeight: 900, zIndex: 10100, overlayClose: true }); } function previewPageDev(which) { pageFrame.pageCreate.document.getElementById('pageLoadingSpot').style.display = ''; pageFrame.pageCreate.mode.value = 'preview'; pageFrame.pageCreate.submit(); } function submitPageDev(which) { pageFrame.pageCreate.document.getElementById('pageLoadingSpot').style.display = ''; pageFrame.pageCreate.submit(); } function goSubmit(which) { location = 'contentadmin_course_edit_ezlesson_2.aspx?blockID=' + which; } function skipPaypal() { var anotherWin = (window.open("general_checkout_paypal_return.aspx", "courseware", "width=1050,height=700,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); } function forumGroupSelect(which) { if (which == 'n') { $('#forumGroupSelect').slideUp(''); } else { $('#forumGroupSelect').slideDown(''); } } function chooseRepeat(which) { if (which == 'y') { $('#chooseRepeatArea').slideDown(''); } else { $('#chooseRepeatArea').slideUp(''); } } function selectAll() { var goFor = document.enrollForm.elements.length for (i = 0; i < document.enrollForm.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (document.enrollForm.elements[i].type == "checkbox") { var myname = document.enrollForm.elements[i].name; if (myname.indexOf("enroll") < 0) { document.enrollForm.elements[i].checked = true; } } } } function selectNone() { var goFor = document.enrollForm.elements.length for (i = 0; i < document.enrollForm.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (document.enrollForm.elements[i].type == "checkbox") { var myname = document.enrollForm.elements[i].name; if (myname.indexOf("enroll") < 0) { document.enrollForm.elements[i].checked = false; } } } } function selectAllUsers() { var goFor = document.enrollForm.elements.length for (i = 0; i < document.enrollForm.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (document.enrollForm.elements[i].type == "checkbox") { var myname = document.enrollForm.elements[i].name; if (myname.indexOf("user_") >= 0) { document.enrollForm.elements[i].checked = true; } } } } function selectNoneUsers() { var goFor = document.enrollForm.elements.length for (i = 0; i < document.enrollForm.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (document.enrollForm.elements[i].type == "checkbox") { var myname = document.enrollForm.elements[i].name; if (myname.indexOf("user_") >= 0) { document.enrollForm.elements[i].checked = false; } } } } function selectAllRepPerf(which) { var goFor = document.repForm.elements.length for (i = 0; i < document.repForm.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (document.repForm.elements[i].type == "checkbox") { var myname = document.repForm.elements[i].name; if (myname.indexOf("reviews") > -1) { if (which == 'a') { document.repForm.elements[i].checked = true; } else { document.repForm.elements[i].checked = false; } } } } } function selectAllRepGroup(which) { var goFor = document.repForm.elements.length for (i = 0; i < document.repForm.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (document.repForm.elements[i].type == "checkbox") { var myname = document.repForm.elements[i].name; if (myname.indexOf("groups") > -1) { if (which == 'a') { document.repForm.elements[i].checked = true; } else { document.repForm.elements[i].checked = false; } } } } } function badLogIn(which, ext) { if (ext == 'true') { document.getElementById('pageLoader').style.display = 'none'; document.getElementById('badUser').style.display = ''; } else { document.getElementById('pageLoader').style.display = 'none'; $('#logInArea').effect('shake', { times: 3 }, 100); document.getElementById('badUser').style.display = ''; } } function ecommSettings(which) { if (which == 'on') { $('#ecommSettingsArea').slideDown(''); } else { $('#ecommSettingsArea').slideUp(''); } } function showCalEventSmall(name, start, end, whichID, type) { if (type == 'course') { var myStartArray = start.toString().split(" "); var myStart = myStartArray[0] + ' ' + myStartArray[1] + ' ' + myStartArray[2]; document.getElementById('modalArea').innerHTML = 'Course: ' + name + '
Course Due: ' + myStart + '

'; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 180, minWidth: 340, maxWidth: 400 }); } else { document.getElementById('modalArea').innerHTML = 'Class Session: ' + name + '
Start: ' + start + '

'; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 180, minWidth: 340, maxWidth: 400 }); } } function showInstructorCalendar() { document.getElementById('instructorCalendarArea').src = 'general_instructor_calendar.aspx'; ezToggle('instructorCalendar'); } function logMeOut(where) { //stop the auto login //Set_Cookie('ezlcmsuser', '', 2, '/', '', ''); window.parent.location = 'general_dispose_session.aspx?where=' + where; } function finishSurvey(which) { var url = window.location.href; var url_parts = url.split('?'); var main_url = url_parts[0]; window.location.href = main_url + '?justCompID=' + which; } function showClassEventCal(which) { processAjax('instructor_calendar_details_frame.aspx?sessionID=' + which, 'classDetailArea'); } function showClassEventCalAdmin(which) { processAjax('contentadmin_calendar_details_frame.aspx?sessionID=' + which, 'classDetailArea'); } function showClassEventCalManager(which) { processAjax('manager_calendar_details_frame.aspx?sessionID=' + which, 'classDetailArea'); } function showClassEventCalCatalog(which, whichUser) { processAjax('general_catalog_calendar_details_frame.aspx?sessionID=' + which + '&userID=' + whichUser, 'classDetailArea'); } function showClassEventCalOrg(which, whichUser) { processAjax('ext_general_catalog_calendar_details_frame.aspx?sessionID=' + which + '&userID=' + whichUser, 'classDetailArea'); } function showClassEventCalMobile(which, whichUser, dmf) { processAjax('ext_general_catalog_calendar_details_frame.aspx?sessionID=' + which + '&userID=' + whichUser + '&dmf=' + dmf, 'detailArea_' + which); } function addNewSessionCalAdmin(whichDate) { document.getElementById('modalArea').innerHTML = 'Do you want to create a new class session on this date: ' + whichDate + '?

'; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 180, minWidth: 340, maxWidth: 400, overlayClose: true }); } function showColorChange() { myBgColor = document.getElementById('headerColor').value; var contentAreas = getElementsByClass('headerButtons'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.background = "#" + myBgColor; } var contentAreas = getElementsByClass('subMenuListIcons'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.color = "#" + myBgColor; } var contentAreas = getElementsByClass('flatMenuItemSelected'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.color = "#" + myBgColor; } //document.getElementById('theButton1').style.background = "#" + myBgColor; } function showColorChangeV38Color() { myBgColor = document.getElementById('v38_color').value; document.getElementById('adminSystemButton').style.background = "#" + myBgColor; document.getElementById('adminSystemButtonDynamic').style.background = "#" + myBgColor; } function showColorChangeV38Font() { myBgColor = document.getElementById('v38_fontColor').value; document.getElementById('adminSystemButton').style.color = "#" + myBgColor; document.getElementById('adminSystemButtonDynamic').style.color = "#" + myBgColor; } function showHeaderFontColorChange() { myBgColor = document.getElementById('headerFontColor').value; //alert("got: " + myBgColor); var contentAreas = getElementsByClass('text_buttons'); for (i = 0; i < contentAreas.length; i++) { //alert("got one"); contentAreas[i].style.color = "#" + myBgColor; } var contentAreas = getElementsByClass('roleDropDown'); for (i = 0; i < contentAreas.length; i++) { //alert("got one"); contentAreas[i].style.color = "#" + myBgColor; } } function showContentFontColorChange() { myBgColor = document.getElementById('contentFontColor').value; document.body.style.color = "#" + myBgColor; var contentAreas = getElementsByClass('iconName'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.color = "#" + myBgColor; } } function showBackgroundFontColorChange() { myBgColor = document.getElementById('backgroundFontColor').value; var contentAreas = getElementsByClass('bgText'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.color = "#" + myBgColor; } } function showColorChangeBG() { if (currentInt != '2') { myBgColor = document.getElementById('bgColor').value; document.body.style.background = "#" + myBgColor; //document.getElementById('main').style.backgroundColor = "#" + myBgColor; } } function showColorChangeBGContent() { myBgColor = document.getElementById('contentbgColor').value; //document.body.style.background = "#" + myBgColor; //document.getElementById('main').style.backgroundColor = "#" + myBgColor; var contentAreas = getElementsByClass('pageBlock'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.backgroundColor = "#" + myBgColor; } var contentAreas = getElementsByClass('pageFull'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.backgroundColor = "#" + myBgColor; } } function toggleModifyBg(which) { if (which == 'show') { $("#bgColorRow").slideDown(); document.body.style.backgroundImage = "url('')"; } else { $("#bgColorRow").slideUp(); document.body.style.backgroundImage = "url('images/bg.png')"; } } function toggleModifyFont(which) { if (which == 'show') { $("#fontRow").slideDown(); document.body.style.backgroundImage = "url('')"; } else { $("#fontRow").slideUp(); document.body.style.fontFamily = "'Rokkitt', serif;"; document.body.style.fontSize = '18px'; document.body.style.fontWeight = 'normal'; } } function setBGTexture() { myBG = document.getElementById('bgTexture').value; if (myBG == 'Custom') { $("#customBgImageRow").slideDown(); } else { $("#customBgImageRow").slideUp(); document.body.style.backgroundImage = "url('images/bgs/" + myBG + "')"; } } function setbodyFont() { myFont = document.getElementById('bodyFont').value; document.body.style.fontFamily = myFont; } function setbodyFontSize() { myFont = document.getElementById('bodyFontSize').value; document.body.style.fontSize = myFont + 'px'; } function setBodyFontBold() { myFont = document.getElementById('bodyFontBold').checked; if (myFont) { document.body.style.fontWeight = 'bold'; } else { document.body.style.fontWeight = 'normal'; } } function setheaderFont() { myFont = document.getElementById('headerFont').value; //document.body.style.fontFamily = myFont; var contentAreas = getElementsByClass('iconName'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.fontFamily = myFont; } } function setheaderFontSize() { myFont = document.getElementById('headerFontSize').value; var contentAreas = getElementsByClass('iconName'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.fontSize = myFont + 'px'; } } function setheaderFontBold() { myFont = document.getElementById('headerFontBold').checked; if (myFont) { var contentAreas = getElementsByClass('iconName'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.fontWeight = 'bold'; } } else { var contentAreas = getElementsByClass('iconName'); for (i = 0; i < contentAreas.length; i++) { contentAreas[i].style.fontWeight = 'normal'; } } } function reloadLMS() { logMeOut(); } function managerPrintClassList(where) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minWidth: 500, maxWidth: 820, minHeight: 700, maxHeight: 720, zIndex: 10100, overlayClose: true }); } function convertAccount(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 940, maxWidth: '96%', maxHeight: '95%', zIndex: 10100, overlayClose: true }); } function convertAccountFR(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function convertAccountV17(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function showEnrollmentDetails(which, showItem, mode, studentID, method) { if (method == 'page') { gotoPage('general_enrollment_details.aspx?enrollmentID=' + which + '&item=' + showItem + '&mode=' + mode + '&studentID=' + studentID); } else { document.getElementById('modalArea').innerHTML = '
'; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: globalModalMinWidth, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } } function showEnrollmentDetailsPerf(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function showEnrollmentDetailsMaster(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function createUserAccountExt(whichOrg, whichGroup) { var thisWindowWidth = getWindowWidth(); var myWidth = 800; //alert(thisWindowWidth); if (thisWindowWidth < 850) { myWidth = thisWindowWidth - 50; } //alert(myWidth); document.getElementById('modalArea').innerHTML = '
'; $("#modalArea").modal({ opacity: 30, minHeight: 600, width: 800, maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function createUserAccountExtV38(whichOrg, whichGroup) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function createUserAccountExtHS(whichOrg, whichGroup) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function createUserAccountExtCat(whichOrg, whichGroup, whichCourse) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function forgotPasswordExt(whichOrg) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function forgotPasswordExtHS(whichOrg) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function showSessionRoster(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function showIntSessionRoster(which) { var anotherWin = (window.open('general_session_roster_interactive.aspx?sessionID=' + which , "Roster", "location=no,status=yes,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")); anotherWin.focus; } function showCertificate(which) { //document.getElementById('modalArea').innerHTML = ''; //$("#modalArea").modal({ // opacity: 30, // minHeight: 640, // minWidth: 815 //}); //var anotherWin = (window.open('general_view_certificate.aspx?enrollmentID=' + which , "Certificate", "width=1020,height=840,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); //anotherWin.focus; displayCertificateLayer('general_view_certificate.aspx?enrollmentID=' + which); } function showCertificateNon(which) { //document.getElementById('modalArea').innerHTML = ''; //$("#modalArea").modal({ // opacity: 30, // minHeight: 640, // minWidth: 815 //}); //var anotherWin = (window.open('general_view_certificate.aspx?noPDF=true&enrollmentID=' + which, "Certificate", "width=1020,height=840,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); //anotherWin.focus; displayCertificateLayer('general_view_certificate.aspx?noPDF=true&enrollmentID=' + which); } function V40_showCertificate(which) { //document.getElementById('modalArea').innerHTML = ''; //$("#modalArea").modal({ // opacity: 30, // minHeight: 640, // minWidth: 815 //}); //var anotherWin = (window.open('general_view_certificate.aspx?enrollmentID=' + which , "Certificate", "width=1020,height=840,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); //anotherWin.focus; displayCertificateLayer('v40_cert_list.aspx?enrollmentID=' + which); } function V40_showCertificateMyTraining(which) { //document.getElementById('modalArea').innerHTML = ''; //$("#modalArea").modal({ // opacity: 30, // minHeight: 640, // minWidth: 815 //}); //var anotherWin = (window.open('general_view_certificate.aspx?enrollmentID=' + which , "Certificate", "width=1020,height=840,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); //anotherWin.focus; $.modal.close(); displayCertificateLayer('v40_cert_list.aspx?enrollmentID=' + which); } function V40_buyCertificate(which) { var thisWindowWidth = getWindowWidth(); var myWidth = 800; if (thisWindowWidth < 850) { myWidth = thisWindowWidth - 50; } //alert(thisWindowWidth); document.getElementById('modalArea').innerHTML = '
'; $("#modalArea").modal({ opacity: 30, minHeight: 640, width: myWidth, maxHeight: '90%', zIndex: 10100, overlayClose: true }); //var anotherWin = (window.open('general_view_certificate.aspx?enrollmentID=' + which , "Certificate", "width=1020,height=840,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); //anotherWin.focus; } function V40_buyCertificateMyTraining(which) { $.modal.close(); var thisWindowWidth = getWindowWidth(); var myWidth = 800; if (thisWindowWidth < 850) { myWidth = thisWindowWidth - 50; } //alert(thisWindowWidth); document.getElementById('modalArea').innerHTML = '
'; $("#modalArea").modal({ opacity: 30, minHeight: 640, width: myWidth, maxHeight: '90%', zIndex: 10100, overlayClose: true }); //var anotherWin = (window.open('general_view_certificate.aspx?enrollmentID=' + which , "Certificate", "width=1020,height=840,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); //anotherWin.focus; } function applyAllStatus() { var goFor = document.gradeClass.elements.length for (i = 0; i < gradeClass.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (gradeClass.elements[i].type == "select-one") { if (gradeClass.elements[i].name == "statusMaster") { //this is the master //alert(gradeClass.elements[i].selectedIndex); var switchAllTo = gradeClass.elements[i].selectedIndex; } else { if (gradeClass.elements[i].name.indexOf("status_") > -1) { gradeClass.elements[i].options[switchAllTo].selected = true; } } } } //alert(document.gradeClass.statusMaster.options(0).selected); } function applyAllSubStatus() { var goFor = document.gradeClass.elements.length for (i = 0; i < gradeClass.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (gradeClass.elements[i].type == "select-one") { if (gradeClass.elements[i].name == "statusSubMaster") { //this is the master //alert(gradeClass.elements[i].selectedIndex); var switchAllTo = gradeClass.elements[i].selectedIndex; } else { if (gradeClass.elements[i].name.indexOf("statusSub_") > -1) { gradeClass.elements[i].options[switchAllTo].selected = true; } } } } //alert(document.gradeClass.statusMaster.options(0).selected); } function applyAllScore() { var goFor = document.gradeClass.elements.length for (i = 0; i < gradeClass.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (gradeClass.elements[i].type == "text") { if (gradeClass.elements[i].name == "scoreMaster") { //this is the master //alert("got mater: " + gradeClass.elements[i].value); var switchAllTo = gradeClass.elements[i].value; } else { if (gradeClass.elements[i].name == 'completedDate') { 'do nothing' } else { gradeClass.elements[i].value = switchAllTo; } } } } //alert(document.gradeClass.statusMaster.options(0).selected); } function showCertificateMyTraining(which) { $.modal.close(); var anotherWin = (window.open('general_view_certificate.aspx?enrollmentID=' + which, "Certificate", "width=900,height=700,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); anotherWin.focus; } function showCertificateMyTrainingMobile(which) { var anotherWin = (window.open('general_view_certificate.aspx?enrollmentID=' + which, "Certificate", "width=900,height=700,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); anotherWin.focus; } function showEnrollmentDetails_save(which) { whichAfterLoad = 'showEnrollmentDetails'; processAjax('reporter_custom_details.aspx?enrollmentID=' + which, 'detailArea'); } function showEnrollmentDetails2() { whichAfterLoad = ''; $('#detailArea').slideDown('fast', function () { // Animation complete. scrollToBottom(); }); } function closeEnrollmentDetails() { $('#detailArea').slideUp(''); } function scrollToBottom() { $('html, body').animate({ scrollTop: $(document).height() - $(window).height() }, 1400, "easeOutQuint" ); } function userReportFilter(which) { filter = which; if (displayFile.indexOf('?') < 0) { document.getElementById('reportArea').src = displayFile + '?filter=' + which; } else { document.getElementById('reportArea').src = displayFile + '&filter=' + which; } scrollToBottom(); } function getElementsByClass(searchClass, node, tag) { var classElements = new Array(); if (node == null) node = document; if (tag == null) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\\s)" + searchClass + "(\\s|$)"); for (i = 0, j = 0; i < elsLen; i++) { if (pattern.test(els[i].className)) { classElements[j] = els[i]; j++; } } return classElements; } function logOut(where) { window.parent.parent.location.href = where; } function testYoutube() { var ytid = document.getElementById('launchYoutube').value; if (ytid.indexOf("v=") > -1) { //cut the URL off var ytl = ytid.split("v=") ytid = ytl[1]; } if (ytid) { document.getElementById('youtubeTestArea').style.display = ''; document.getElementById('ytframe').src = 'https://www.youtube.com/embed/' + ytid; } else { ezAlert("You must enter a valid YouTube Video ID before testing."); } } function testVimeo() { var ytid = document.getElementById('launchVimeo').value; if (ytid.indexOf("/")) { //cut the URL off var ytl = ytid.split("/") ytid = ytl[ytl.length-1]; } if (ytid) { document.getElementById('youtubeTestArea').style.display = ''; document.getElementById('ytframe').src = 'https://player.vimeo.com/video/' + ytid; } else { ezAlert("Bad Vimeo"); } } function showEnrArea(which) { $(which).slideToggle(''); } function showMoreInstructions() { ezToggle('moreInstructions'); ezToggle('moreInstructionsLink'); } function gotoPage(where) { if (document.getElementById('pageLoader')) { document.getElementById('pageLoader').style.display = ''; } window.location.href = where; } function gotoPageOut(where) { if (document.getElementById('pageLoader')) { document.getElementById('pageLoader').style.display = ''; } window.parent.location.href = where; } function gotoPageInt2(where, which) { //save the item for the navigation menu Set_Cookie('eznav', which, 1, '/', '', ''); if (document.getElementById('pageLoader')) { document.getElementById('pageLoader').style.display = ''; } window.location.href = where; } function gotoPageFromModal(where) { $.modal.close(); if (document.getElementById('pageLoader')) { document.getElementById('pageLoader').style.display = ''; } location = where; } function submitPage(which) { document.getElementById('pageLoader').style.display = ''; document.getElementById(which).submit(); } function showWait() { document.getElementById('pageLoader').style.display = ''; } function toggleSendEmail(which) { if (which == 'show') { $('#sendEnrollEmail').slideDown(); } else { $('#sendEnrollEmail').slideUp(); } } function toggleNotes(which) { if (which == 'show') { $('#notes').slideDown(); } else { $('#notes').slideUp(); } } function toggleSendEmailReminder(which) { if (which == 'show') { $('#sendReminder').slideDown(); } else { $('#sendReminder').slideUp(); } } function toggleSendEmailGraded(which) { if (which == 'show') { $('#sendGraded').slideDown(); } else { $('#sendGraded').slideUp(); } } function submitFinishGroup(which) { document.getElementById('nextStep').value = "finish"; submitPage(which); } function submitFinishGroupPre(which) { document.getElementById('nextStep').value = "finish"; showWait(); //submitPage(which); } function submitFinishCat(which) { document.getElementById('nextStep').value = "finish"; submitPage(which); } function submitJumpGroup(which,where) { document.getElementById('nextStep').value = where; submitPage(which); } function closeLoginPopup() { $.modal.close(); } function showLoader() { document.getElementById('pageLoader').style.display = ''; } function showDependentOptions() { var selectedVal = document.getElementById('dependentID').value; //alert(selectedVal); if (selectedVal != '0') { $('#dependentOptionArea').slideDown(""); //document.getElementById('dependentOptionFrame').src = 'contentAdmin_survey_dependent_frame.aspx?itemID=' + selectedVal; processAjax('contentadmin_survey_dependent_frame.aspx?itemID=' + selectedVal, 'dependentOptionArea'); } else { $('#dependentOptionArea').slideUp(""); } } function surveyItemDependent(which) { if (which == 'y') { $('#surveyPreviousQuestions').slideDown(""); } else { $('#surveyPreviousQuestions').slideUp(""); } } function showBlockDetails(what) { var src = what; $.modal(''; $("#modalArea").modal({ opacity: 30, minHeight: 310, minWidth: globalModalMinWidth, close: true, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function showOrgDetails(which) { if (document.getElementById('orgDetails_' + which).style.display == 'none') { processAjax('general_master_admin_org_details.aspx?orgID=' + which, 'orgDetails_' + which); } ezToggle('orgDetails_' + which); } function showGroupDetails(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 310, minWidth: 980, close: true, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function checkEmail(myUserID) { //alert(document.getElementById('email').value); theEmail = document.getElementById('email').value if (theEmail.indexOf("@") < 0) { document.getElementById('emailVerify').innerHTML = '
Invalid Email
'; document.getElementById('emailVerify').style.display = ''; okToSubmit = false; } else { document.getElementById('userEmailCheck').src = 'admin_user_check_email.aspx?email=' + theEmail + '&exUserID=' + myUserID; //okToSubmit = true; } } function checkEmailConflict(myUserID) { //alert(document.getElementById('email').value); theEmail = document.getElementById('email').value document.getElementById('userEmailCheck').src = 'admin_user_check_email.aspx?email=' + theEmail + '&exUserID=' + myUserID; } function submitUserPage() { var currentPass = document.getElementById('password').value; if (currentPass == '' && okBlankPassword == false) { ezAlert("You must enter a value in the Password field"); } else { if (okToSubmit) { submitPage('userForm') } else { document.getElementById('modalArea').innerHTML = 'The Email Address you have entered is either invalid or is already used in the LMS. Please choose a different one and try again.

'; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 150, minWidth: 340, maxWidth: 400 }); } } } function badEmailCheck() { document.getElementById('emailVerify').innerHTML = '
Email Address already in use.
'; //$('#emailVerify').slideDown("fast"); document.getElementById('emailVerify').style.display = ''; okToSubmit = false; } function goodEmailCheck() { //document.getElementById('emailVerify').innerHTML = '
Email Address already in use.
'; //$('#emailVerify').slideUp("fast"); document.getElementById('emailVerify').style.display = 'none'; okToSubmit = true; } function badManagerEmailCheck() { document.getElementById('managerEmailMessage').style.display = ''; okToSubmitManager = false; } function goodManagerEmailCheck() { document.getElementById('managerEmailMessage').style.display = 'none'; okToSubmitManager = true; } function confirmFunction(message, where) { //if (confirm(message)) { //gotoPage(where); //} ezConfirm(message, where); } function deactivateUser(which, whichName) { //if (confirm("Are you sure you want to deactivate the user: " + whichName + "?")) { //gotoPage('admin_users.aspx?code=deactivate&deactivateID=' + which); //} ezConfirm("Are you sure you want to deactivate the user: " + whichName + "?", 'admin_users.aspx?code=deactivate&deactivateID=' + which); } function deactivateUserV38(which, whichName) { //if (confirm("Are you sure you want to deactivate the user: " + whichName + "?")) { //gotoPage('admin_users.aspx?code=deactivate&deactivateID=' + which); //} //ezConfirm("Are you sure you want to deactivate the user: " + whichName + "?", 'admin_users.aspx?code=deactivate&deactivateID=' + which); //document.getElementById('modalArea').innerHTML = 'Please choose if you would like to de-activate or archive the user: ' + whichName + '?

 '; //$("#modalArea").modal({ //close: true, //opacity: 30, //minHeight: 150, //minWidth: 340 //}); ezConfirm('Are you sure you want to Deactivate the user ' + whichName + '?', 'admin_users.aspx?code=deactivate&deactivateID=' + which); } function deactivateUserManager(which, whichName) { //if (confirm("Are you sure you want to deactivate the user: " + whichName + "?")) { //gotoPage('manager_users.aspx?code=deactivate&deactivateID=' + which); //} ezConfirm("Are you sure you want to deactivate the user: " + whichName + "?", 'manager_users.aspx?code=deactivate&deactivateID=' + which); } function v38_deactivateUserManager(which, whichName) { //if (confirm("Are you sure you want to deactivate the user: " + whichName + "?")) { //gotoPage('manager_users.aspx?code=deactivate&deactivateID=' + which); //} ezConfirm("Are you sure you want to deactivate the user: " + whichName + "?", 'v38_manager_users.aspx?code=deactivate&deactivateID=' + which); } function deactivateGroup(which, whichName) { //if (confirm("Are you sure you want to deactivate the group: " + whichName + "? All users in the group will be set to inactive.")) { //gotoPage('admin_groups.aspx?code=deactivate&deactivateID=' + which + '&gName=' + whichName); //} ezConfirm("Are you sure you want to deactivate the group: " + whichName + "? All users in the group will be set to inactive.", 'admin_groups.aspx?code=deactivate&deactivateID=' + which + '&gName=' + whichName); } function deactivateResource(which, whichName) { //if (confirm("Are you sure you want to deactivate the resource: " + whichName + "?")) { //gotoPage('contentadmin_resources.aspx?code=deactivate&deactivateID=' + which); //} ezConfirm("Are you sure you want to deactivate the resource: " + whichName + "?", 'contentadmin_resources.aspx?code=deactivate&deactivateID=' + which); } function deactivateCourse(which, whichName) { //if (confirm("Are you sure you want to deactivate the course: " + whichName + "?")) { //gotoPage('admin_catalog.aspx?code=deactivate&deactivateID=' + which); //} //document.getElementById('modalArea').innerHTML = 'Are you sure you want to deactivate the course: ' + whichName + '?

 '; //$("#modalArea").modal({ //close: false, //opacity: 30, //minHeight: 150, //minWidth: 340 //}); ezConfirm('Are you sure you want to deactivate the course: ' + whichName + '?', 'contentadmin_catalog.aspx?code=deactivate&deactivateID=' + which + '&courseName=' + whichName); } function reactivateUser(which, whichName) { //if (confirm("Are you sure you want to re-activate the user: " + whichName + "?")) { //gotoPage('admin_users.aspx?code=reactivate&reactivateID=' + which); //} ezConfirm("Are you sure you want to re-activate the user: " + whichName + "?", 'admin_users.aspx?code=reactivate&reactivateID=' + which); } function reactivateUserManager(which, whichName) { //if (confirm("Are you sure you want to re-activate the user: " + whichName + "?")) { //gotoPage('manager_users.aspx?code=reactivate&reactivateID=' + which); //} ezConfirm("Are you sure you want to re-activate the user: " + whichName + "?", 'manager_users.aspx?code=reactivate&reactivateID=' + which); } function v38_reactivateUserManager(which, whichName) { //if (confirm("Are you sure you want to re-activate the user: " + whichName + "?")) { //gotoPage('manager_users.aspx?code=reactivate&reactivateID=' + which); //} ezConfirm("Are you sure you want to re-activate the user: " + whichName + "?", 'v38_manager_users.aspx?code=reactivate&reactivateID=' + which); } function reactivateGroup(which, whichName) { //if (confirm("Are you sure you want to re-activate the group: " + whichName + "? All users in the group will be re-activated.")) { //gotoPage('admin_groups.aspx?code=reactivate&reactivateID=' + which + '&gName=' + whichName); //} ezConfirm("Are you sure you want to re-activate the group: " + whichName + "? All users in the group will be re-activated.", 'admin_groups.aspx?code=reactivate&reactivateID=' + which + '&gName=' + whichName); } function reactivateResource(which, whichName) { //if (confirm("Are you sure you want to re-activate the resource: " + whichName + "?")) { //gotoPage('contentadmin_resources.aspx?code=reactivate&reactivateID=' + which); //} ezConfirm("Are you sure you want to re-activate the resource: " + whichName + "?", 'contentadmin_resources.aspx?code=reactivate&reactivateID=' + which); } function reactivateCourse(which, whichName) { //if (confirm("Are you sure you want to re-activate the course: " + whichName + "?")) { //gotoPage('admin_catalog.aspx?code=reactivate&reactivateID=' + which); //} //document.getElementById('modalArea').innerHTML = 'Are you sure you want to re-activate the course: ' + whichName + '?

 '; //$("#modalArea").modal({ //close: false, //opacity: 30, //minHeight: 150, //minWidth: 340 //}); ezConfirm('Are you sure you want to re-activate the course: ' + whichName + '?', 'contentadmin_catalog.aspx?code=reactivate&reactivateID=' + which + '&courseName=' + whichName); } function deleteUser(which, whichName) { //if (confirm("Are you sure you want to completely remove the user: " + whichName + " from the LMS? All of their information including their transcript will be permanently erased.")) { //gotoPage('admin_users.aspx?code=delete&deleteID=' + which); //} ezConfirm('Are you sure you want to completely remove the user ' + whichName + ' from the LMS? All of their information including their transcript will be permanently erased.', 'admin_users.aspx?code=delete&deleteID=' + which); } function deleteUser_v38(which, whichName) { //if (confirm("Are you sure you want to completely remove the user: " + whichName + " from the LMS? All of their information including their transcript will be permanently erased.")) { //gotoPage('admin_users.aspx?code=delete&deleteID=' + which); //} ezConfirm('Are you sure you want to Delete the user ' + whichName + '?', 'admin_users.aspx?code=delete&deleteID=' + which); } function deleteGroup(which, whichName) { //if (confirm("Are you sure you want to completely remove the group: " + whichName + " from the LMS? All users in the group will remain in the system, but will be removed from this group.")) { //gotoPage('admin_groups.aspx?code=delete&deleteID=' + which + '&gName=' + whichName); //} ezConfirm("Are you sure you want to completely remove the group: " + whichName + " from the LMS? All users in the group will remain in the system, but will be removed from this group.", 'admin_groups.aspx?code=delete&deleteID=' + which + '&gName=' + whichName); } function deleteResource(which, whichName) { //if (confirm("Are you sure you want to completely remove the resource: " + whichName + " from the LMS?")) { //gotoPage('admin_resources.aspx?code=delete&deleteID=' + which); //} ezConfirm("Are you sure you want to completely remove the resource: " + whichName + " from the LMS?", 'admin_resources.aspx?code=delete&deleteID=' + which); } function deleteCourse(which, whichName) { ezConfirm('Are you sure you want to completely remove the course: ' + whichName + ' from the LMS?', 'contentadmin_catalog.aspx?code=delete&deleteID=' + which + '&courseName=' + whichName); } function unlinkCourse(which, whichName) { ezConfirm('Are you sure you want to unlink the course: ' + whichName + ' from this Organization? All enrollments and progress by users in this Organization will be lost.', 'contentadmin_catalog.aspx?code=delete&deleteID=' + which + '&courseName=' + whichName); } function deletePage(which, whichName, whichBlock, whichCourse) { ezConfirm("Are you sure you want to delete this page?", 'contentadmin_course_edit_ezlesson_2.aspx?code=delete&deleteID=' + which + '&blockID=' + whichBlock + '&lmscourseID=' + whichCourse); } function searchUserAdmin() { //alert("in here"); $('#searchAdminArea').slideToggle(""); } function newUserEmail(which, whichName, whichEmail, whichOrg) { //if (confirm("This will send the new user email to " + whichName + ". Are you sure?")) { //document.getElementById('sendUserEmailArea').src = 'admin_send_single_welcome_email.aspx?userID=' + which + '&email=' + whichEmail + '&orgID=' + whichOrg; //} alertify.confirm("This will send the new user email to " + whichName + ". Are you sure?", function (e) { if (e) { document.getElementById('sendUserEmailArea').src = 'admin_send_single_welcome_email.aspx?userID=' + which + '&email=' + whichEmail + '&orgID=' + whichOrg; } else { // user clicked "cancel" } }); } function newUserEmailGroup(which, whichName, whichEmail, whichOrg) { //if (confirm("This will send the new user email to everyone in the group " + whichName + ". Are you sure?")) { //document.getElementById('sendGroupEmailArea').src = 'admin_send_group_welcome_email.aspx?groupID=' + which + '&orgID=' + whichOrg; //} alertify.confirm("This will send the new user email to everyone in the group " + whichName + ". Are you sure?", function (e) { if (e) { document.getElementById('sendGroupEmailArea').src = 'admin_send_group_welcome_email.aspx?groupID=' + which + '&orgID=' + whichOrg; } else { // user clicked "cancel" } }); } function newUserEmailSent() { alert("Email sent"); } function initDragTable() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewCritOrder($.tableDnD.serialize()); } }); } function initDragTableRoot() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewRootOrder($.tableDnD.serialize()); } }); } function initDragTableFlags() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewFlagsOrder($.tableDnD.serialize()); } }); } function initDragTablePerf() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewPerfOrder($.tableDnD.serialize()); } }); } function initDragTableLMSTask() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewLMSTaskOrder($.tableDnD.serialize()); } }); } function initDragTableContent() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewContentOrder($.tableDnD.serialize()); } }); } function initDragTablePages() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewPagesOrder($.tableDnD.serialize()); } }); } function initDragTableSurvey() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewSurveyOrder($.tableDnD.serialize()); } }); } function initDragTableCat() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewCatOrder($.tableDnD.serialize()); } }); } function initDragTableCourse() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewCourseOrder($.tableDnD.serialize()); } }); } function initDragTableRE() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewREOrder($.tableDnD.serialize()); } }); } function initDragTableRD() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewRDOrder($.tableDnD.serialize()); } }); } function initDragTableFolder() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewFolderOrder($.tableDnD.serialize()); } }); } function initDragTask() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveTaskOrder($.tableDnD.serialize()); } }); } function initDragTableQuestion() { $('#dragTable').tableDnD({ onDrop: function (table, row) { saveNewQOrder($.tableDnD.serialize()); } }); } function V38_initDragTablePerf() { $('#dragTable').tableDnD({ onDrop: function (table, row) { v38_saveNewPerfOrder($.tableDnD.serialize()); } }); } function saveNewCritOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "admin_user_criteria_order.aspx?" + myWhat; } function saveNewRootOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "v104_system_root_order.aspx?" + myWhat; } function saveNewFlagsOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "v104_system_flags_order.aspx?" + myWhat; } function saveNewPerfOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "contentadmin_perf_order.aspx?" + myWhat; } function saveNewLMSTaskOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "contentadmin_task_order.aspx?" + myWhat; } function saveNewContentOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); //document.getElementById('orderSaveArea').src = "contentadmin_course_content_order.aspx?" + myWhat; $.post("contentadmin_course_content_order.aspx", myWhat); } function saveNewPagesOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "contentadmin_course_page_order.aspx?" + myWhat; } function saveNewCatOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); //document.getElementById('orderSaveArea').src = "contentadmin_course_cat_order.aspx?" + myWhat; $.post("contentadmin_course_cat_order.aspx", myWhat); } function saveNewCourseOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); //document.getElementById('orderSaveArea').src = "contentadmin_course_order.aspx?" + myWhat; $.post("contentadmin_course_order.aspx", myWhat); } function saveNewREOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "contentadmin_rubric_order.aspx?" + myWhat; } function saveNewRDOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "contentadmin_rubric_degree_order.aspx?" + myWhat; } function saveNewFolderOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "contentadmin_course_folder_order.aspx?" + myWhat; } function saveTaskOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "v44_audit_task_order.aspx?" + myWhat; } function saveNewSurveyOrder(what) { alert("in here"); replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); alert(myWhat); document.getElementById('orderSaveArea').src = "admin_survey_content_order.aspx?" + myWhat; } function saveNewQOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "contentadmin_quiz_order.aspx?" + myWhat; } function v38_saveNewPerfOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); document.getElementById('orderSaveArea').src = "v38_admin_system_performance_edit_4_order.aspx?" + myWhat; } function pickFieldType(which) { if (which == "textEntry") { //document.getElementById('selectArea').style.display = 'none'; //document.getElementById('radioArea').style.display = 'none'; $('#selectArea').slideUp(""); $('#radioArea').slideUp(""); $('#checkArea').slideUp(""); } else if (which == "selectList") { //document.getElementById('selectArea').style.display = ''; //document.getElementById('radioArea').style.display = 'none'; $('#selectArea').slideDown(""); $('#radioArea').slideUp(""); $('#checkArea').slideUp(""); } else if (which == "radioButton") { //document.getElementById('selectArea').style.display = 'none'; //document.getElementById('radioArea').style.display = ''; $('#selectArea').slideUp(""); $('#radioArea').slideDown(""); $('#checkArea').slideUp(""); } else if (which == "checkBoxes") { //document.getElementById('selectArea').style.display = 'none'; //document.getElementById('radioArea').style.display = ''; $('#selectArea').slideUp(""); $('#radioArea').slideUp(""); $('#checkArea').slideDown(""); } } function switchRoleNew() { document.getElementById('pageLoader').style.display = ''; var myrole = document.getElementById('roles').value; if (myrole == 'learner') { location = 'student_main.aspx'; } if (myrole == 'instructor') { location = 'instructor_calendar.aspx'; } if (myrole == 'manager') { location = 'manager_users.aspx'; } if (myrole == 'reporter') { location = 'reporter_dashboard.aspx'; } if (myrole == 'developer') { location = 'st_dev.html'; } if (myrole == 'contentAdmin') { location = 'contentadmin_catalog.aspx'; } if (myrole == 'admin') { location = 'admin_users.aspx'; } } function clickManager() { if (document.getElementById('manager').checked) { $('#managerGroups').slideDown(""); showManagerGroupList(); } else { $('#managerGroups').slideUp(""); killManagerGroupList(); } } function clickPartner() { if (document.getElementById('partner').checked) { $('#partnerGroups').slideDown(""); } else { $('#partnerGroups').slideUp(""); } } function viewResource(which, whichUser) { document.getElementById("resourceViewArea").src = 'student_view_resource_frame.aspx?resourceID=' + which + '&lmsuserID=' + whichUser; } function viewResourceShow(where) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: $(window).height() - 80, minWidth: 1000, close: true, overlayClose: true }); } function viewResourceAdmin(whichResource) { myWin = open(whichResource, "Resource", "location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); } function unenrollMe(LMSCourseID, LMSUserID, addon, prompt) { latestEnrollmentID = LMSCourseID; document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; document.getElementById("enrollArea").src = 'student_create_enrollment_frame_remove.aspx?lmscourseID=' + LMSCourseID + '&lmsuserID=' + LMSUserID + '&addon=' + addon + '&prompt=' + prompt; } function enrollMe(LMSCourseID, LMSUserID, addon, prompt) { latestEnrollmentID = LMSCourseID; document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; document.getElementById("enrollArea").src = 'student_create_enrollment_frame.aspx?lmscourseID=' + LMSCourseID + '&lmsuserID=' + LMSUserID + '&addon=' + addon + '&prompt=' + prompt; } function enrollMeConfirm(LMSCourseID, LMSUserID, addon, message, prompt) { alertify.confirm(message, function (e) { if (e) { enrollMe(LMSCourseID, LMSUserID, addon, prompt); } else { // user clicked "cancel" } }); } function enrollMeLP(LMSLPID, LMSUserID) { latestLPEnrollmentID = LMSLPID; document.getElementById('lpenroll_' + LMSLPID).innerHTML = ""; //see if there are class sessions to display //if (document.getElementById('classSessions_' + LMSCourseID)) { // $('#classSessions_' + LMSCourseID).slideDown(""); //} document.getElementById("enrollArea").src = 'student_create_enrollment_frame_lp.aspx?lmslpID=' + LMSLPID + '&lmsuserID=' + LMSUserID; } function enrollMeTask(LMSTask, LMSUserID) { latestLPEnrollmentID = LMSTask; document.getElementById('taskenroll_' + LMSTask).innerHTML = ""; //see if there are class sessions to display //if (document.getElementById('classSessions_' + LMSCourseID)) { // $('#classSessions_' + LMSCourseID).slideDown(""); //} document.getElementById("enrollArea").src = 'student_create_enrollment_frame_task.aspx?lmstaskID=' + LMSTask + '&lmsuserID=' + LMSUserID; } function enrollMeRequest(LMSCourseID, LMSUserID, addon, orgID) { document.getElementById('modalArea').innerHTML = 'Are you sure you want to request enrollment in this course? You will receive a notification when the request has been approved or denied.

 '; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 150, minWidth: 340, maxWidth: 400 }); } function enrollMeRequest2(LMSCourseID, LMSUserID, orgID) { //alert(orgID); latestEnrollmentID = LMSCourseID; document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; document.getElementById("enrollArea").src = 'student_create_enrollment_frame_request.aspx?lmscourseID=' + LMSCourseID + '&lmsuserID=' + LMSUserID + '&orgID=' + orgID; } function enrollMeBuy(LMSCourseID, LMSUserID, addon, price, mode) { latestEnrollmentID = LMSCourseID; document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; //see if there are class sessions to display if (document.getElementById('classSessions_' + LMSCourseID)) { $('#classSessions_' + LMSCourseID).slideDown(""); } document.getElementById("enrollArea").src = 'student_create_enrollment_frame_buy.aspx?lmscourseID=' + LMSCourseID + '&lmsuserID=' + LMSUserID + '&addon=' + addon + '&price=' + price + '&mode=' + mode; } function enrollMeBuyv20(LMSCourseID, LMSUserID, addon, price) { latestEnrollmentID = LMSCourseID; document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; //see if there are class sessions to display if (document.getElementById('classSessions_' + LMSCourseID)) { $('#classSessions_' + LMSCourseID).slideDown(""); } document.getElementById("enrollArea").src = 'v20_create_enrollment_frame_buy.aspx?lmscourseID=' + LMSCourseID + '&lmsuserID=' + LMSUserID + '&addon=' + addon + '&price=' + price; } function enrollMeClass(LMSClassSessionID, LMSUserID, addon, LMSBlockID, lmsCourseID, enrollmentID) { //latestEnrollmentID = LMSCourseID; var myenr = ''; //if (enrollmentID) { // myenr = enrollmentID; //} else { // myenr = newestEnrollmentID; //} //alert(newestEnrollmentID); if (newestEnrollmentID != 0) { myenr = newestEnrollmentID; } else if (enrollmentID) { myenr = enrollmentID; } else { myenr = 0; } document.getElementById('classEnrollArea_' + LMSClassSessionID).innerHTML = ""; document.getElementById("enrollArea").src = 'student_create_class_enrollment_frame.aspx?LMSClassSessionID=' + LMSClassSessionID + '&lmsuserID=' + LMSUserID + '&addon=' + addon + '&LMSBlockID=' + LMSBlockID + '&enrollmentID=' + myenr + '&lmscourseID=' + lmsCourseID; } function enrollMeDate(LMSCourseID, LMSUserID, addon) { latestEnrollmentID = LMSCourseID; //see if we can find an expiration date document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; var expireDate = ''; var item = 'exp_' + LMSCourseID.toString(); if (document.getElementById(item)) { expireDate = document.getElementById(item).value; } document.getElementById("enrollArea").src = 'student_create_enrollment_frame.aspx?lmscourseID=' + LMSCourseID + '&lmsuserID=' + LMSUserID + '&addon=' + addon + '&expDate=' + expireDate; } function calendarCatalogEnroll(sessionID, userID, blockID, courseID, message) { alertify.confirm(message, function (e) { if (e) { document.getElementById('classEnrollArea_' + sessionID).innerHTML = ""; document.getElementById("enrollArea").src = 'general_catalog_class_enroll_frame.aspx?sessionID=' + sessionID + '&userID=' + userID + '&blockID=' + blockID + '&courseID=' + courseID; } else { // user clicked "cancel" } }); } function calendarCatalogEnrollLite(sessionID, userID, blockID, courseID, message) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 440, minWidth: 615 }); } function liteCloseCompanyConfirm(sessionID, userID, blockID, courseID, message) { localCloseModal(); calendarCatalogEnroll(sessionID, userID, blockID, courseID, message); } function calendarCatalogUNEnroll(sessionID, enrollmentID, userID, message) { alertify.confirm(message, function (e) { if (e) { //document.getElementById('classEnrollArea_' + sessionID).innerHTML = ""; document.getElementById("enrollArea").src = 'general_catalog_class_enroll_frame.aspx?code=unenroll&enrollmentID=' + enrollmentID + '&sessionID=' + sessionID + '&userID=' + userID; } else { // user clicked "cancel" } }); } function updateCatalogEnrollmentsClassCatalog(sessionID) { document.getElementById('classEnrollArea_' + sessionID).innerHTML = "
Enrolled
"; //processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); //newestEnrollmentID = enrollmentID; } function enrollMeRequestClass(classID, LMSUserID, addon, orgID, mode) { document.getElementById('modalArea').innerHTML = 'Are you sure you want to request enrollment in this course? You will receive a notification when the request has been approved or denied.

 '; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 150, minWidth: 340, maxWidth: 400 }); } function enrollMeRequestClass2(classID, LMSUserID, orgID, mode) { //alert(orgID); latestEnrollmentID = classID; document.getElementById('enrollclass_' + classID).innerHTML = ""; document.getElementById("enrollArea").src = 'student_create_enrollment_frame_request.aspx?code=class&mode=' + mode + '&classID=' + classID + '&lmsuserID=' + LMSUserID + '&orgID=' + orgID; } function calendarCatalogEnrollBuy(sessionID, userID, blockID, courseID, price) { document.getElementById('classEnrollArea_' + sessionID).innerHTML = ""; latestEnrollmentID = courseID; document.getElementById("enrollArea").src = 'student_create_enrollment_frame_buy.aspx?lmscourseID=' + courseID + '&lmsuserID=' + userID + '&price=' + price + '&sessionID=' + sessionID + '&blockID=' + blockID; } function calendarCatalogEnrollBuy_ext(sessionID, userID, blockID, courseID, price) { document.getElementById('classEnrollArea_' + sessionID).innerHTML = ""; latestEnrollmentID = sessionID; document.getElementById("enrollArea").src = 'ext_calendar_create_enrollment_frame_buy.aspx?lmscourseID=' + courseID + '&lmsuserID=' + userID + '&price=' + price + '&sessionID=' + sessionID + '&blockID=' + blockID; } function calendarCatalogEnrollWaitlist(sessionID, userID, blockID, courseID, waitListPosition, message) { alertify.confirm(message, function (e) { if (e) { document.getElementById('classEnrollArea_' + sessionID).innerHTML = ""; document.getElementById("enrollArea").src = 'general_catalog_class_enroll_frame.aspx?sessionID=' + sessionID + '&userID=' + userID + '&blockID=' + blockID + '&courseID=' + courseID + '&waitListPosition=' + waitListPosition; } else { // user clicked "cancel" } }); } function showSessionChoices(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 640, minWidth: 815 }); } function showSessionChoicesBuy(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 640, minWidth: 815 }); } function enrollMeClassBuy(LMSClassSessionID, LMSUserID, addon, LMSBlockID, lmsCourseID, erollmentID) { //latestEnrollmentID = LMSCourseID; document.getElementById('classEnrollArea_' + LMSClassSessionID).innerHTML = ""; document.getElementById("enrollArea").src = 'student_create_class_enrollment_frame_buy.aspx?LMSClassSessionID=' + LMSClassSessionID + '&lmsuserID=' + LMSUserID + '&addon=' + addon + '&LMSBlockID=' + LMSBlockID + '&enrollmentID=' + newestEnrollmentID + '&lmscourseID=' + lmsCourseID; } function enrollUser(LMSCourseID, LMSUserID, addon) { latestEnrollmentID = LMSCourseID; document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; document.getElementById("enrollArea").src = 'student_create_enrollment_frame.aspx?lmscourseID=' + LMSCourseID + '&lmsuserID=' + LMSUserID + '&addon=' + addon; } function updateCatalogEnrollments(lmsuserID,enrollmentID,confirm) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
Enrolled
"; if (document.getElementById('extCourseBlockFull_' + latestEnrollmentID)) { document.getElementById('extCourseBlockFull_' + latestEnrollmentID).style.display = 'none'; } processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); newestEnrollmentID = enrollmentID; //ad the prompt to take the course now if (confirm == 'y') { //ezConfirm('Would you like to launch this course now?', 'student_my_training.aspx'); alertify.confirm('Would you like to launch this course now?', function (e) { if (e) { gotoPage('student_my_training.aspx'); } else { document.getElementById("enrollArea").src = 'student_create_enrollment_frame.aspx?clearLaunch=true'; } }); } } function updateCatalogEnrollmentsV38(lmsuserID, enrollmentID, confirm, courseID, thePrompt) { processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); newestEnrollmentID = enrollmentID; //ad the prompt to take the course now if (confirm == 'y') { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "Un-Enroll"; //ezConfirm('Would you like to launch this course now?', 'student_my_training.aspx'); alertify.confirm(thePrompt + '?', function (e) { if (e) { gotoPage('student_my_training.aspx'); } else { document.getElementById("enrollArea").src = 'student_create_enrollment_frame.aspx?clearLaunch=true'; } }); } else { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "Un-Enroll"; } } function updateCatalogEnrollmentsV38_spanish(lmsuserID, enrollmentID, confirm, courseID, thePrompt) { processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); newestEnrollmentID = enrollmentID; //ad the prompt to take the course now if (confirm == 'y') { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "Cancelar inscripción"; //ezConfirm('Would you like to launch this course now?', 'student_my_training.aspx'); alertify.confirm(thePrompt + '?', function (e) { if (e) { gotoPage('student_my_training.aspx'); } else { document.getElementById("enrollArea").src = 'student_create_enrollment_frame.aspx?clearLaunch=true'; } }); } else { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "Cancelar inscripción"; } } function updateCatalogEnrollmentsUn(lmsuserID, enrollmentID, confirm) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
Un-Enrolled
"; processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); } function updateCatalogEnrollmentsUnV38(lmsuserID, enrollmentID, confirm, courseID) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "Enroll"; processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); } function updateCatalogEnrollmentsUnV38_spanish(lmsuserID, enrollmentID, confirm, courseID) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "Inscribirse"; processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); } function updateCatalogEnrollmentsUnV38LP(lmsuserID, LMSLPID, EnrolledById) { document.getElementById('lpenroll_' + latestLPEnrollmentID).innerHTML = "
Un-Enrolled
"; processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); } function updateCatalogEnrollmentsV5(lmsuserID, enrollmentID) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
Enrolled
"; processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); newestEnrollmentID = enrollmentID; //ezAlert('You are now enrolled in the Certification. Click the "My Certifications" tab to begin taking the course.'); } function updateCatalogEnrollmentsLP(lmsuserID, enrollmentID) { document.getElementById('lpenroll_' + latestLPEnrollmentID).innerHTML = "
Enrolled
"; processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); //newestEnrollmentID = enrollmentID; } function updateCatalogEnrollmentsLPRequest(lmsuserID, enrollmentID) { document.getElementById('lpenroll_' + latestLPEnrollmentID).innerHTML = "
Requested
"; //processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); //newestEnrollmentID = enrollmentID; } function updateCatalogEnrollmentsTask(lmsuserID, enrollmentID) { document.getElementById('taskenroll_' + latestLPEnrollmentID).innerHTML = "
Enrolled
"; processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); //newestEnrollmentID = enrollmentID; } function updateCatalogEnrollmentsBuy(lmsuserID, enrollmentID, mode) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
In Cart
"; processAjax('student_ecomm_cart_frame.aspx?userID=' + lmsuserID + '&mode=' + mode, 'catalogCart'); //newestEnrollmentID = enrollmentID; } function updateCatalogEnrollmentsBuy_ext(lmsuserID, enrollmentID, mode) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
In Cart
"; processAjax('ext_calendar_ecomm_cart_frame.aspx?userID=' + lmsuserID + '&mode=' + mode, 'catalogCart'); //newestEnrollmentID = enrollmentID; } function updateCatalogEnrollmentsBuyV20(lmsuserID, enrollmentID) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
In Cart
"; processAjax('v20_ecomm_cart_frame.aspx?userID=' + lmsuserID, 'catalogCart'); //newestEnrollmentID = enrollmentID; } function updateCatalogEnrollmentsRequest(lmsuserID, enrollmentID) { document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
Requested
"; } function updateCatalogEnrollmentsRequestClass(lmsuserID, enrollmentID) { document.getElementById('enrollclass_' + latestEnrollmentID).innerHTML = "
Requested
"; } function updateCatalogEnrollmentsClass(lmsuserID, sessionID) { document.getElementById('classEnrollArea_' + sessionID).innerHTML = "
Enrolled
"; processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments'); //newestEnrollmentID = enrollmentID; } function updateCatalogEnrollmentsClassBuy(lmsuserID, sessionID) { document.getElementById('classEnrollArea_' + sessionID).innerHTML = "
Translate(lanSelected)
"; processAjax('student_ecomm_cart_frame.aspx?userID=' + lmsuserID, 'catalogCart'); //newestEnrollmentID = enrollmentID; } function checkOut(lmsuserID, mode) { if (isMobile) { window.top.location='general_checkout_1.aspx?userID=' + lmsuserID + '&mode=' + mode + '&frm=mobile'; } else { gotoPage('general_checkout_1.aspx?userID=' + lmsuserID + '&mode=' + mode + '&frm=page'); //document.getElementById('modalArea').innerHTML = ''; //$("#modalArea").modal({ // opacity: 30, // minHeight: 640, // minWidth: 815 //}); } } function checkOut_extCal(lmsuserID, orgID) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 640, minWidth: 815 }); } function checkOutV20(lmsuserID) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 700, minWidth: 865 }); } function ezToggleCategory(which) { Set_Cookie('catsel', which, 2, '/', '', ''); currentSource = document.getElementById('catIcon_' + which).src; if (currentSource.indexOf('folder_down') > -1) { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'folder_up.png'; } else { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'folder_down.png'; } ezToggle('cat_' + which); } function V38_ezToggleCategory(which) { Set_Cookie('catsel', which, 2, '/', '', ''); currentSource = document.getElementById('catIcon_' + which).src; if ((currentSource.indexOf('plus_sign') > -1) || (currentSource.indexOf('folder_down') > -1)) { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'minus_sign.png'; } else { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'plus_sign.png'; } ezToggle('cat_' + which); } function ezToggleCategoryAjax(which, whichWidth, whichLeft, whichIsEcomm, searchTerm, setCookie) { if (setCookie == 'true') { Set_Cookie('catsel', which, 2, '/', '', ''); } currentSource = document.getElementById('catIcon_' + which).src; if (currentSource.indexOf('folder_down') > -1) { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'folder_up.png'; if ((document.getElementById('catContents_' + which).innerHTML == '') || (document.getElementById('catContents_' + which).innerHTML.indexOf('small_spinner.gif') > 0)) { if ((searchTerm == '')) { document.getElementById('catContents_' + which).innerHTML = "
"; } $.get("contentadmin_catalog_folder.aspx", { catID: which, isEcomm: whichIsEcomm, searchTerm: searchTerm, myLeft: whichLeft, myWidth: whichWidth }) .done(function (data) { document.getElementById('catContents_' + which).innerHTML = data; if ((searchTerm != '') && (data.indexOf('') > 0)) { document.getElementById('catBlock_' + which).style.display = ''; } }); } } else { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'folder_down.png'; } ezToggle('cat_' + which); } function ezToggleCategoryAjaxNocats(which, whichWidth, whichLeft, whichIsEcomm, searchTerm, setCookie) { if (setCookie == 'true') { Set_Cookie('catsel', which, 2, '/', '', ''); } document.getElementById('catContents_' + which).innerHTML = "
"; if ((document.getElementById('catContents_' + which).innerHTML == '') || (document.getElementById('catContents_' + which).innerHTML.indexOf('small_spinner.gif') > 0)) { $.get("contentadmin_catalog_folder.aspx", { catID: which, isEcomm: whichIsEcomm, searchTerm: searchTerm, myLeft: whichLeft, myWidth: whichWidth }) .done(function (data) { document.getElementById('catContents_' + which).innerHTML = data; if ((searchTerm != '') && (data.indexOf('') > 0)) { document.getElementById('catBlock_' + which).style.display = ''; } }); } } function ezToggleResCategory(which) { Set_Cookie('rescatsel', which, 2, '/', '', ''); currentSource = document.getElementById('catIcon_' + which).src; if (currentSource.indexOf('folder_down') > -1) { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'folder_up.png'; } else { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'folder_down.png'; } ezToggle('cat_' + which); } function catExpand(which) { Set_Cookie('mtcatsel', which, 2, '/', '', ''); currentSource = document.getElementById('catToggle_' + which).src; if (currentSource.indexOf('_expand') > -1) { document.getElementById('catToggle_' + which).src = 'images/ec_collapse.png'; } else { document.getElementById('catToggle_' + which).src = 'images/ec_expand.png'; } ezToggle('wholeCourseDetails_' + which); } function V38_ezToggleResCategory(which) { Set_Cookie('rescatsel', which, 2, '/', '', ''); currentSource = document.getElementById('catIcon_' + which).src; if (currentSource.indexOf('plus_sign.png') > -1) { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'minus_sign.png'; } else { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'plus_sign.png'; } ezToggle('cat_' + which); } function ezToggle(which) { $('#' + which).slideToggle(""); } function instructionToggle(which) { $('#' + which).slideToggle("slow"); //set the cookie } function send_page() { if (document.addContent.name.value == "") { alert("You must enter a name for the page before submitting."); } else { //set_x(); document.addContent.submit(); } } function send_question() { if (document.addContent.name.value == "") { alert("You must enter a name for the page before submitting."); } else { //if (document.addContent.answer1.value=="") { //alert("You must enter at least one answer for the question."); //} else { document.addContent.submit(); //} } } function send_page_OO() { document.addContent.submit(); } function set_x() { var x = bpitEditor.document.body.innerHTML; var y = document.addContent.expert_content.value; if (which_mode == "simple") { document.addContent.content.value = x; } else { document.addContent.content.value = y; } } function button_over(doitButton) { doitButton.style.backgroundColor = "#CCCCCC"; doitButton.style.borderColor = "#FFFFFF #666666 #666666 #FFFFFF"; } function button_out(doitButton) { doitButton.style.backgroundColor = "CCCCCC"; doitButton.style.borderColor = "#CCCCCC"; } function button_down(doitButton) { doitButton.style.backgroundColor = "#CCCCCC"; doitButton.style.borderColor = "#666666 #FFFFFF #FFFFFF #666666"; } function button_up(doitButton) { doitButton.style.backgroundColor = "#CCCCCC"; doitButton.style.borderColor = "#CCCCCC"; } function doit(it) { var tr = frames.bpitEditor.document.selection.createRange() tr.execCommand(it) tr.select() frames.bpitEditor.focus() } function pickType() { //check for converting from existing free var qs = new Querystring(); var convertID = qs.get("convertID") //convertID = 17; if (document.signup.accType[0].checked) { if (convertID != null) { alert("You can not extend your free ten day trial. You must sign up for a payed account."); } else { location = "signup3.asp?free=1"; } } else { document.signup.convertID.value = convertID; document.signup.submit(); } } function Querystring(qs) { // optionally pass a querystring to parse this.params = new Object() this.get = Querystring_get if (qs == null) qs = location.search.substring(1, location.search.length) if (qs.length == 0) return // Turn back to // See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1 qs = qs.replace(/\+/g, ' ') var args = qs.split('&') // parse out name/value pairs separated via & // split out each name=value pair for (var i = 0; i < args.length; i++) { var value; var pair = args[i].split('=') var name = unescape(pair[0]) if (pair.length == 2) value = unescape(pair[1]) else value = name this.params[name] = value } } function Querystring_get(key, default_) { // This silly looking line changes UNDEFINED to NULL if (default_ == null) default_ = null; var value = this.params[key] if (value == null) value = default_; return value } function pasteContent(what) { addContent.narrText.value = what; } function IsNumeric(sText) { var ValidChars = "0123456789"; var IsNumber = true; var Char; for (i = 0; i < sText.length && IsNumber == true; i++) { Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1) { IsNumber = false; } } return IsNumber; } function isDate(sDate) { var scratch = new Date(sDate); if (scratch.toString() == "NaN" || scratch.toString() == "Invalid Date") { //alert("Not a Date"); return false; } else { return true; } } function clearNameField() { //alert("doing it"); if (document.pageCreate.pageTitle.value == "Type Your Page Title Here") { document.pageCreate.pageTitle.value = ""; } } function Set_Cookie(name, value, expires, path, domain, secure) { // set time, it's in milliseconds var today = new Date(); today.setTime(today.getTime()); /* if the expires variable is set, make the correct expires time, the current script below will set it for x number of days, to make it for hours, delete * 24, for minutes, delete * 60 * 24 */ if (expires) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date(today.getTime() + (expires)); document.cookie = name + "=" + escape(value) + ((expires) ? ";expires=" + expires_date.toGMTString() : "") + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "") + ((secure) ? ";secure" : ""); } function roll(obj, highlightcolor) { obj.style.backgroundColor = highlightcolor; } function getWindowWidth() { var myWidth = 1000; if (typeof (window.innerWidth) == 'number') { myWidth = window.innerWidth; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { myWidth = document.documentElement.clientWidth; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { myWidth = document.body.clientWidth; } return myWidth; } function showCourseWindow(whatWindow, myw, myh) { var availHeight; var availWidth; if (typeof (window.innerWidth) == 'number') { availHeight = window.innerHeight; availWidth = window.innerWidth; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { availHeight = document.documentElement.clientHeight; availWidth = document.documentElement.clientWidth; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { availHeight = document.body.clientHeight; availWidth = document.body.clientWidth; } var yOffset if (self.pageYOffset) { yOffset = self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop) { yOffset = document.documentElement.scrollTop; } else if (document.body) { yOffset = document.body.scrollTop; } var indicatorWidth = myw; var indicatorHeight = myh; var left = (availWidth / 2) - (indicatorWidth / 2); //var top = (availHeight/2) - (indicatorHeight/2); var top = ((availHeight / 2) + yOffset) - (indicatorHeight / 2); var indicator = document.getElementById(whatWindow); //document.getElementById('blanket').style.height = '100%'; blanket_size(); //document.getElementById('blanket').style.display = ''; $('#blanket').fadeIn("fast"); if (top < 0) { top = 0; } var isiPad = navigator.userAgent.match(/iPad/i) != null; var isiPhone = navigator.userAgent.match(/iPhone/i) != null; //alert(isiPad); if (isiPad || isiPhone) { top = 0; window.parent.scrollTo(0, 0); } //alert(top); //indicator.style.border="1px solid gray"; //indicator.style.background="white"; indicator.style.position = "absolute"; indicator.style.zIndex = "999"; indicator.style.width = myw + "px"; indicator.style.height = myh + "px"; indicator.style.top = top + "px"; indicator.style.left = left + "px"; //indicator.style.display="block"; } function blanket_size() { if (typeof window.innerWidth != 'undefined') { viewportheight = window.innerHeight; } else { viewportheight = document.documentElement.clientHeight; } if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) { blanket_height = viewportheight; } else { if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) { blanket_height = document.body.parentNode.clientHeight; } else { blanket_height = document.body.parentNode.scrollHeight; } } var contHeight = document.getElementById('wrapper').offsetHeight; //alert(contHeight); var blanket = document.getElementById('blanket'); //alert("height: " + blanket_height); if (blanket_height >= contHeight) { blanket.style.height = blanket_height + 'px'; } else { blanket.style.height = contHeight + 'px'; } } function closeContent(preview) { //see if there is a compliance statement if (inYoutube == true) { if (preview == 'y') { inYoutube = false; courseOpen = false; document.getElementById('blanket').style.display = 'none'; document.getElementById('cwWindow').style.display = 'none'; document.getElementById('waitMessage').style.display = 'none'; document.getElementById('cwFrame').src = ''; cwFrame.closeYoutube(); } else { cwFrame.closeYoutube(); inYoutube = false; courseOpen = false; document.getElementById('cwWindow').style.display = 'none'; showCourseWindow('waitMessage', '500', '220') document.getElementById('waitMessage').style.display = ''; } } else if (inSurvey == true) { inSurvey == false; location.reload(); } else if (inAICC == true) { inAICC == false; location.reload(); } else if (inDoc == true) { inDoc == false; //location.reload(); //document.getElementById('cwWindow').style.display = 'none'; //showCourseWindow('waitMessage', '500', '220') //document.getElementById('waitMessage').style.display = ''; cwFrame.finishMe(); } else { courseOpen = false; document.getElementById('cwWindow').style.display = 'none'; showCourseWindow('waitMessage', '500', '220') document.getElementById('waitMessage').style.display = ''; try { console.log("changed5"); var SCORM2004_objAPI = document.getElementById('cwFrame').contentWindow.API_1484_11; strResult = SCORM2004_objAPI.Commit(""); //document.getElementById('cwWindow').contentWindow.API_1484_11.Commit(""); console.log("Manually commiting data"); } catch (err) { //skip it console.log("External Commit Failed"); } window.setTimeout(endCourse(preview), 2000); //window.setTimeout(closeCourse(), 10000); } } function closeContentFD(where) { //see if there is a compliance statement if (inYoutube == true) { if (goFD) { document.getElementById("cwFrame").contentWindow.isOutFrame = 'true'; } document.getElementById("cwFrame").contentWindow.closeYoutube(); inYoutube = false; courseOpen = false; //document.getElementById('cwWindow').style.display = 'none'; //showCourseWindow('waitMessage', '500', '220') //document.getElementById('waitMessage').style.display = ''; } else if (inSurvey == true) { inSurvey == false; //location.reload(); } else if (inAICC == true) { inAICC == false; //location.reload(); } else if (inDoc == true) { inDoc == false; document.getElementById("cwFrame").contentWindow.finishMe(); //location.reload(); //document.getElementById('cwWindow').style.display = 'none'; //showCourseWindow('waitMessage', '500', '220') //document.getElementById('waitMessage').style.display = ''; //cwFrame.finishMe(); //window.setTimeout(gotoPage(where), 1000); } else { courseOpen = false; //alert("about to close"); //alert(document.getElementById('cwFrame').courseArea.src); //document.getElementById('cwWindow').style.display = 'none'; //showCourseWindow('waitMessage', '500', '220') //document.getElementById('waitMessage').style.display = ''; if (document.getElementById('cwFrame')) { document.getElementById('cwFrame').src = ''; } if (document.getElementById('pageLoader')) { document.getElementById('pageLoader').style.display = ''; } window.setTimeout(gotoPage(where), 2000); } } function endCourse(preview) { document.getElementById('cwFrame').src = ''; var browser = navigator.userAgent.toLowerCase(); if ((browser.indexOf('chrome') > -1) && (preview != 'y')) { window.setTimeout(closeCourseChrome, 2000); } } function closeCourseChrome() { if (imDone == 'true') { window.setTimeout(closeCourse, 2000); } else { window.setTimeout(closeCourseChrome, 2000); } } function closeCourse() { window.location.reload(); } function launchAssignment(which, whichEnrollment, whichUser, whichCourseID, preview) { if ((goFD) && (preview != 'y')) { gotoPage("student_my_training_display.aspx?type=assignment&whichSco=" + which + "&whichEnroll=" + whichEnrollment + "&w=900&h=600&lmsuserID=" + whichUser + "&LMSCourseID=" + whichCourseID + "&preview=n"); } else { var thisWindowWidth = getWindowWidth(); var isiPad = navigator.userAgent.match(/iPad/i) != null; var isiPhone = navigator.userAgent.match(/iPhone/i) != null; //var thisWindowWidth = 500; if ((thisWindowWidth < 600) || (isiPad) || (isiPhone)) { //var anotherWin = (window.open('student_assignment.aspx?blockID=' + which + '&enrollmentID=' + whichEnrollment + '&userID=' + whichUser + '&courseID=' + whichCourseID + '&isPopup=true', "courseware", "width=900,height=600,location=no,status=yes,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")); //anotherWin.focus(); document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 220, minWidth: 430, maxWidth: 430 }); } else { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920 }); } } } function launchSco12(whichSco, whichEnroll, w, h, launch, inReview, preview) { //hide the static menu //alert("GOFD: " + goFD); if ((goFD) && (preview != 'y')) { gotoPageOut("student_my_training_display.aspx?type=scorm12&whichSco=" + whichSco + "&whichEnroll=" + whichEnroll + "&w=" + w + "&h=" + h + "&launch=" + launch + "&inReview=" + inReview + "&preview=n"); } else { var thisWindowWidth = getWindowWidth(); if (thisWindowWidth < 600) { //its small, use a popup launchSco12Popup(whichSco, whichEnroll, w, h, launch, inReview, preview) } else { if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched if (preview != 'y') { var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); } myWidth = 1030; myHeight = 700; myWidth = w + 10; myHeight = h + 10; //alert("about to show the window: " + myWidth + " - " + myHeight); showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverScormAPI_12.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + "&preview=" + preview; courseOpen = true; } } } function launchSco12Popup(whichSco, whichEnroll, w, h, launch, inReview, preview) { //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; document.getElementById('popupLaunch').src = "deliverScormAPI_12_popup.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview; } function launchSco13(whichSco, whichEnroll, w, h, launch, inReview, preview) { //hide the static menu if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } if ((goFD) && (preview != 'y')) { gotoPageOut("student_my_training_display.aspx?type=scorm13&whichSco=" + whichSco + "&whichEnroll=" + whichEnroll + "&w=" + w + "&h=" + h + "&launch=" + launch + "&inReview=" + inReview + "&preview=n"); } else { //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverScormAPI_13.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview; courseOpen = true; } } function launchSco13Popup(whichSco, whichEnroll, w, h, launch, inReview, preview) { //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; document.getElementById('popupLaunch').src = "deliverScormAPI_13_popup.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview; } function launchAICC(whichSco, whichEnroll, w, h, launch, inReview, preview) { var thisWindowWidth = getWindowWidth(); //if (thisWindowWidth < 600) { //its small, use a popup //launchAICCPopup(whichSco, whichEnroll, w, h, launch, inReview) //} else { //hide the static if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inAICC = true; myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverAICC.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + '&preview=' + preview; courseOpen = true; //} } function launchAICCPopup(whichSco, whichEnroll, w, h, launch, inReview, preview) { //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inAICC = true; myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; document.getElementById('popupLaunch').src = "deliverAICC_popup.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview; } function launchTinCan(whichSco, whichEnroll, w, h, launch, inReview, preview) { var thisWindowWidth = getWindowWidth(); if (thisWindowWidth < 600) { //its small, use a popup launchTinCanPopup(whichSco, whichEnroll, w, h, launch, inReview, preview) } else { //hide the static menu if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inAICC = true; myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverTinCan.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview; courseOpen = true; } } function launchTinCanPopup(whichSco, whichEnroll, w, h, launch, inReview, preview) { //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inAICC = true; myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; //showCourseWindow('cwWindow', myWidth, myHeight); //$('#cwWindow').fadeIn("fast"); document.getElementById('popupLaunch').src = "deliverTinCan.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + "&popup=true"; //courseOpen = true; } function launchYoutube(whichSco, whichEnroll, w, h, launch, inReview, preview) { if ((goFD) && (preview != 'y')) { gotoPageOut("student_my_training_display.aspx?type=youtube&whichSco=" + whichSco + "&whichEnroll=" + whichEnroll + "&w=" + w + "&h=" + h + "&launch=" + launch + "&inReview=" + inReview + "&preview=n"); } else { //hide the static menu if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inYoutube = true; myWidth = 800; myHeight = 600; if (w != myWidth) { myWidth = w; } if (h != myHeight) { myHeight = h; } myWidth = myWidth + 25; myHeight = myHeight + 45; //alert(myWidth + " - " + myHeight) showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverYoutube.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + "&preview=" + preview; courseOpen = true; } } function launchVimeo(whichSco, whichEnroll, w, h, launch, inReview, preview) { //hide the static menu if ((goFD) && (preview != 'y')) { gotoPage("student_my_training_display.aspx?type=vimeo&whichSco=" + whichSco + "&whichEnroll=" + whichEnroll + "&w=" + w + "&h=" + h + "&launch=" + launch + "&inReview=" + inReview + "&preview=n"); } else { if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inYoutube = true; myWidth = 800; myHeight = 600; if (w != myWidth) { myWidth = w; } if (h != myHeight) { myHeight = h; } myWidth = myWidth + 25; myHeight = myHeight + 45; showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverVimeo.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + "&preview=" + preview; courseOpen = true; } } function launchEZVideo(whichSco, whichEnroll, w, h, launch, inReview, preview) { //hide the static menu if ((goFD) && (preview != 'y')) { gotoPage("student_my_training_display.aspx?type=ezvideo&whichSco=" + whichSco + "&whichEnroll=" + whichEnroll + "&w=" + w + "&h=" + h + "&launch=" + launch + "&inReview=" + inReview + "&preview=n"); } else { var thisWindowWidth = getWindowWidth(); if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inYoutube = true; myWidth = 800; myHeight = 600; if (w != myWidth) { myWidth = w; } if (h != myHeight) { myHeight = h; } myWidth = myWidth + 25; myHeight = myHeight + 45; //if (myWidth > thisWindowWidth) { //adjust the size //myWidth = thisWindowWidth; //} showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverEZVideo.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + "&specWidth=" + myWidth + "&preview=" + preview; courseOpen = true; } } function launchSurvey(which, whichEnrollment, whichUser, whichCourseID, whichInstructorID, preview) { //hide the static menu //hide the static menu if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, which, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnrollment, 1, '/', '', ''); myWidth = 1030; myHeight = 700; showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverSurvey1.aspx?blockID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser + "&lmscourseID=" + whichCourseID + "&instructorID=" + whichInstructorID; inSurvey = true; //var anotherWin = (window.open("deliverSurvey1.aspx?coID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser, "courseware", "width=900,height=700,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); } function launchDocAudio(whichSco, whichEnroll, w, h, launch, inReview, preview) { if ((goFD) && (preview != 'y')) { gotoPage("student_my_training_display.aspx?type=doc&whichSco=" + whichSco + "&whichEnroll=" + whichEnroll + "&w=800&h=400&launch=" + launch + "&inReview=" + inReview + "&preview=n"); } else { var thisWindowWidth = getWindowWidth(); var isiPad = navigator.userAgent.match(/iPad/i) != null; var isiPhone = navigator.userAgent.match(/iPhone/i) != null; //var thisWindowWidth = 500; if ((thisWindowWidth < 600) || (isiPad) || (isiPhone)) { //its small, use a popup launchDocPopup(whichSco, whichEnroll, w, h, launch, inReview, preview) } else { //hide the static menu //hide the static menu if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inDoc = true; myWidth = 800; myHeight = 400; if (w > myWidth) { w = myWidth; } //if (h > myHeight) { //h = myHeight; //} myWidth = myWidth + 20; myHeight = myHeight + 80; showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverDoc.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + "&preview=" + preview; courseOpen = true; } } } function launchDoc(whichSco, whichEnroll, w, h, launch, inReview, preview) { if ((goFD) && (preview != 'y')) { //gotoPage("student_my_training_display.aspx?type=doc&whichSco=" + whichSco + "&whichEnroll=" + whichEnroll + "&w=" + w + "&h=" + h + "&launch=" + launch + "&inReview=" + inReview + "&preview=n"); launchDocPopup(whichSco, whichEnroll, w, h, launch, inReview, preview); } else { var thisWindowWidth = getWindowWidth(); var isiPad = navigator.userAgent.match(/iPad/i) != null; var isiPhone = navigator.userAgent.match(/iPhone/i) != null; //var thisWindowWidth = 500; if ((thisWindowWidth < 600) || (isiPad) || (isiPhone)) { //its small, use a popup launchDocPopup(whichSco, whichEnroll, w, h, launch, inReview, preview) } else { //hide the static menu //hide the static menu if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inDoc = true; myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverDoc.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + "&preview=" + preview; courseOpen = true; } } } function launchDocPopup(whichSco, whichEnroll, w, h, launch, inReview, preview) { var thisWindowWidth = getWindowWidth(); //hide the static menu //hide the static menu if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, whichSco, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnroll, 1, '/', '', ''); inDoc = true; myWidth = 1030; myHeight = 700; if (w > myWidth) { w = myWidth; } if (h > myHeight) { h = myHeight; } myWidth = myWidth + 20; myHeight = myHeight + 80; //showCourseWindow('cwWindow', myWidth, myHeight); //$('#cwWindow').fadeIn("fast"); //document.getElementById('cwFrame').src = "deliverDoc.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview; //document.getElementById('popupLaunch').src = "deliverDoc.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview + "&isPopup=true"; //courseOpen = true; document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 220, minWidth: 460, maxWidth: 460 }); } function skipSurvey(which, whichEnrollment, whichUser, whichCourseID, whichInstructorID, preview) { document.getElementById('pageLoader').style.display = ''; //myWidth = 1030; //myHeight = 700; //alert("In skip survey"); //showCourseWindow('cwWindow', myWidth, myHeight); //$('#cwWindow').fadeIn("fast"); //document.getElementById('cwFrame').src = "deliverSurvey1.aspx?blockID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser + "&lmscourseID=" + whichCourseID + "&instructorID=" + whichInstructorID; //inSurvey = true; //var anotherWin = (window.open("deliverSurvey1.aspx?coID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser, "courseware", "width=900,height=700,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); document.getElementById('popupLaunch').src = 'deliverSurvey2.aspx?blockID=' + which + '&userID=' + whichUser + '&enrollmentID=' + whichEnrollment + '&lmscourseID=' + whichCourseID + '&skip=true'; } function chooseReportPage() { var mysid = document.getElementById('surveyID').value; var mypID = document.getElementById('pageID').value; var myStart = ''; if (document.getElementById('startDate')) { myStart = document.getElementById('startDate').value; } var myEnd = ''; if (document.getElementById('endDate')) { myEnd = document.getElementById('endDate').value; } gotoPage('reporter_survey_reportV2.aspx?surveyID=' + mysid + '&pageID=' + mypID + '&startDate=' + myStart + '&endDate=' + myEnd); } function chooseReportPageInst() { var mysid = document.getElementById('surveyID').value; var mypID = document.getElementById('pageID').value; var mycs = document.getElementById('cs').value; gotoPage('instructor_survey_reportV2.aspx?surveyID=' + mysid + '&pageID=' + mypID + '&cs=' + mycs); } function launchSurveySS(which, whichEnrollment, whichUser, whichCourseID, whichInstructorID, preview) { //hide the static menu if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched var cookName = "jlID_" + MYUSERID; Set_Cookie(cookName, which, 1, '/', '', ''); cookName = "jeID_" + MYUSERID; Set_Cookie(cookName, whichEnrollment, 1, '/', '', ''); myWidth = 1030; myHeight = 700; showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverSurveySS1.aspx?blockID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser + "&lmscourseID=" + whichCourseID + "&instructorID=" + whichInstructorID; inSurvey = true; //var anotherWin = (window.open("deliverSurvey1.aspx?coID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser, "courseware", "width=900,height=700,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); } function launchSurveyV2(which, whichEnrollment, whichUser, whichCourseID, whichInstructorID, preview) { //alert("in here"); //hide the static menu if (goFD) { //gotoPage("student_my_training_display.aspx?type=surveyv2&whichSco=" + whichSco + "&whichEnroll=" + whichEnroll + "&w=1030&h=700&launch=&whichUser=" + whichUser + "&whichCourseID=" + whichCourseID + "&whichInstructorID=" + whichInstructorID + "&inReview=false&preview=n"); gotoPage("deliverSurveyV2.aspx?blockID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser + "&lmscourseID=" + whichCourseID + "&instructorID=" + whichInstructorID + "&preview=" + preview + "&fd=true"); } else { if (document.getElementById('pageTopMenuStatic')) { document.getElementById('pageTopMenuStatic').style.display = 'none'; } //track which lesson was just launched //var cookName = "jlID_" + MYUSERID; //Set_Cookie(cookName, which, 1, '/', '', ''); //cookName = "jeID_" + MYUSERID; //Set_Cookie(cookName, whichEnrollment, 1, '/', '', ''); myWidth = 1030; myHeight = 700; //alert("ok so far"); showCourseWindow('cwWindow', myWidth, myHeight); $('#cwWindow').fadeIn("fast"); document.getElementById('cwFrame').src = "deliverSurveyV2.aspx?blockID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser + "&lmscourseID=" + whichCourseID + "&instructorID=" + whichInstructorID + "&preview=" + preview; inSurvey = true; //var anotherWin = (window.open("deliverSurvey1.aspx?coID=" + which + "&enrollmentID=" + whichEnrollment + "&userID=" + whichUser, "courseware", "width=900,height=700,location=no,status=yes,toolbar=no,menubar=no,scrollbars=auto,resizable=yes")); } } function Get_Cookie(check_name) { // first we'll split this cookie up into name/value pairs // note: document.cookie only returns name=value, not the other components var a_all_cookies = document.cookie.split(';'); var a_temp_cookie = ''; var cookie_name = ''; var cookie_value = ''; var b_cookie_found = false; // set boolean t/f default f for (i = 0; i < a_all_cookies.length; i++) { // now we'll split apart each name=value pair a_temp_cookie = a_all_cookies[i].split('='); // and trim left/right whitespace while we're at it cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, ''); // if the extracted name matches passed check_name if (cookie_name == check_name) { b_cookie_found = true; // we need to handle case where cookie has no value but exists (no = sign, that is): if (a_temp_cookie.length > 1) { cookie_value = unescape(a_temp_cookie[1].replace(/^\s+|\s+$/g, '')); } // note that in cases where cookie is initialized but no value, null is returned return cookie_value; break; } a_temp_cookie = null; cookie_name = ''; } if (!b_cookie_found) { return null; } } function showCompStatementArea(which) { if (which == 'y') { document.getElementById('compStatementArea').style.display = ''; } else { document.getElementById('compStatementArea').style.display = 'none'; } } function changePageBreak() { pageBreak = document.getElementById('displayRecords').value; page = 1; redisplayResults(); } function changePageBreakManager(whichGroup) { var myPageBreak = document.getElementById('displayRecords_' + whichGroup).value; eval("pageBreak_" + whichGroup + " = " + myPageBreak); eval("page_" + whichGroup + " = 1"); redisplayResultsManager(whichGroup); } function changeOrderBy(what) { orderBy = what; redisplayResults(); } function changeOrderByFl(what, flip) { orderBy = what; filter = flip; redisplayResults(); } function changeOrderByUsers(what, myFilter) { orderBy = what; filter = myFilter; redisplayResults(); } function openTaskPrint(which, isPDF) { //myWin = open('general_print_task.aspx?taskID=' + which + '&isPDF=' + isPDF, "Task", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('general_print_task.aspx?taskID=' + which + '&isPDF=' + isPDF); } function openPerfGroupPrint(isPDF) { //myWin = open('reporter_performance_group_print.aspx?' + qString + '&isPDF=' + isPDF, "Performance", "width=1000,height=700,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_performance_group_print.aspx?' + qString + '&isPDF=' + isPDF); } function redisplayResults() { if (displayFile.indexOf('?') < 0) { document.getElementById('reportArea').src = displayFile + '?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter; } else { document.getElementById('reportArea').src = displayFile + '&' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter; } } function redisplayResultsManager(whichGroup) { var myDisplayFile = eval("displayFile_" + whichGroup); if (myDisplayFile.indexOf('?') < 0) { document.getElementById('reportArea_' + whichGroup).src = myDisplayFile + '?' + qString + '&page=' + eval("page_" + whichGroup) + '&pageBreak=' + eval("pageBreak_" + whichGroup) + '&orderBy=' + eval("orderBy_" + whichGroup) + '&filter=' + filter; } else { document.getElementById('reportArea_' + whichGroup).src = myDisplayFile + '&' + qString + '&page=' + eval("page_" + whichGroup) + '&pageBreak=' + eval("pageBreak_" + whichGroup) + '&orderBy=' + eval("orderBy_" + whichGroup) + '&filter=' + filter; } } function openUserReportExcel() { myWin = open('reporter_users_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "User_Report", "width=800,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('reporter_users_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter); } function openUserReportPrint(isPDF) { if (isMobile && isPDF == 'true') { myWin = open('reporter_users_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } else { displayReportLayer('reporter_users_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } } function openLEsReportPrint(isPDF) { //myWin = open('reporter_le_report_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "Learning_Event_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_le_report_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } function openCustomReportPrint(isPDF) { if (isMobile && isPDF == 'true') { myWin = open('reporter_custom_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "User_Report", "width=1000,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } else { displayReportLayer('reporter_custom_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF) } } function openCustomReportPrintPerf(isPDF) { //myWin = open('reporter_custom_print_perf.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "Performance_Report", "width=1000,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_custom_print_perf.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } function openGroupReportExcel(whichID) { myWin = open('reporter_groups_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&managerID=' + whichID, "User_Report", "width=800,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('reporter_groups_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&managerID=' + whichID); } function openGroupReportPrint(whichID, isPDF) { if (isMobile && isPDF == 'true') { myWin = open('reporter_groups_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&managerID=' + whichID + '&isPDF=' + isPDF, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } else { displayReportLayer('reporter_groups_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&managerID=' + whichID + '&isPDF=' + isPDF); } } function openGroupsReportSingleExcel(which) { myWin = open('reporter_groups_display_single_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&groupID=' + which, "Group_Report", "width=800,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('reporter_groups_display_single_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&groupID=' + which); } function openGroupsReportSinglePrint(which, isPDF, variant) { //myWin = open('reporter_groups_display_single_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&groupID=' + which + '&isPDF=' + isPDF, "Group_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_groups_display_single_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&groupID=' + which + '&isPDF=' + isPDF + '&variant=' + variant); } function openCoursesReportExcel() { myWin = open('reporter_courses_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "User_Report", "width=800,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('reporter_courses_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter); } function openCoursesReportPrint(isPDF) { if (isMobile && isPDF == 'true') { myWin = open('reporter_courses_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } else { displayReportLayer('reporter_courses_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } } function openClassesReportPrint(skip1,skip2,isPDF) { //myWin = open('reporter_classes_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_classes_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } function openInstClassesReportPrint(isPDF) { //myWin = open('instructor_classes_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('instructor_classes_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } function v38_openInstClassesReportPrint(isPDF) { //myWin = open('instructor_classes_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('v38_instructor_classes_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } function openSurveysReportPrint(which, isPDF) { //myWin = open('reporter_surveys_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_surveys_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } function openSurveysReportPrintV2(which, isPDF) { if (isMobile && isPDF == 'true') { myWin = open('reporter_surveys_display_printV2.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } else { displayReportLayer('reporter_surveys_display_printV2.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } } function openSurveysReportExcel() { myWin = open('reporter_surveys_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "Survey_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('reporter_surveys_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter); } function openSurveysReportExcelV2() { myWin = open('reporter_surveys_display_excelV2.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "Survey_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('reporter_surveys_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter); } function openSurveyReportPrint(which, isPDF, groupID) { //myWin = open('reporter_survey_report_print.aspx?surveyID=' + which + '&isPDF=' + isPDF, "Survey_Report", "width=940,height=800,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_survey_report_print.aspx?surveyID=' + which + '&groupID=' + groupID + '&isPDF=' + isPDF); } function openEcommReportPrint(which, isPDF) { //myWin = open('reporter_survey_report_print.aspx?surveyID=' + which + '&isPDF=' + isPDF, "Survey_Report", "width=940,height=800,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_ecomm_display_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } function openEcommReportExcel() { //myWin = open('reporter_survey_report_print.aspx?surveyID=' + which + '&isPDF=' + isPDF, "Survey_Report", "width=940,height=800,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_ecomm_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter); } function openClassesReportExcel() { myWin = open('reporter_classes_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('reporter_classes_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter); } function openInstClassesReportExcel() { myWin = open('instructor_classes_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('instructor_classes_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter); } function v38_openInstClassesReportExcel() { myWin = open('v38_instructor_classes_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter, "User_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('instructor_classes_display_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter); } function openCoursesReportSingleExcel(which) { myWin = open('reporter_courses_display_single_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&lmscourseID=' + which, "User_Report", "width=800,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); //displayReportLayer('reporter_courses_display_single_excel.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&lmscourseID=' + which); } function openCoursesReportSinglePrint(which, isPDF) { //myWin = open('reporter_courses_display_single_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&lmscourseID=' + which + '&isPDF=' + isPDF, "Course_Report", "width=860,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); //myWin.focus(); displayReportLayer('reporter_courses_display_single_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&lmscourseID=' + which + '&isPDF=' + isPDF); } function openTranscriptPrint(where) { if (isMobile && (where.indexOf('ispdf') > 0 || where.indexOf('isPDF') > 0)) { myWin = open(where, "Transcript", "width=1020,height=700,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } else { displayReportLayer(where); } } function v38_openGameReportPrint(isPDF) { if (isMobile && isPDF == 'true') { myWin = open('v38_reporter_game_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "Game_Report", "width=1000,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } else { displayReportLayer('v38_reporter_game_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF); } } function setPageData(myHowMany) { howMany = myHowMany; if (howMany > pageBreak) { numPages = Math.floor(howMany / pageBreak) + 1; } else { numPages = 1; } document.getElementById('howManyArea').innerHTML = 'Displaying Page ' + page + ' Of ' + numPages + ''; document.getElementById('totalArea').innerHTML = '' + howMany + ' Total Records'; var backAllString = ''; var backString = ''; var forAllString = ''; var forString = ''; if (page == 1) { backAllString = ''; backString = ''; } else { backAllString = ''; backString = ''; } if (page == numPages) { forAllString = ''; forString = ''; } else { forAllString = ''; forString = ''; } document.getElementById('pageButtonArea').innerHTML = backAllString + backString + forString + forAllString; } function setPageDataManager(myHowMany, whichGroup) { //howMany = myHowMany; var myPageBreak = eval("pageBreak_" + whichGroup) var myNumPages = 0; var myPage = eval("page_" + whichGroup) + 0; if (myHowMany > myPageBreak) { myNumPages = Math.floor(myHowMany / myPageBreak) + 1; } else { myNumPages = 1; } document.getElementById('howManyArea_' + whichGroup).innerHTML = 'Displaying Page ' + myPage + ' Of ' + myNumPages + ''; document.getElementById('totalArea_' + whichGroup).innerHTML = '' + myHowMany + ' Total Records'; var backAllString = ''; var backString = ''; var forAllString = ''; var forString = ''; if (myPage == 1) { backAllString = ''; backString = ''; } else { backAllString = ''; backString = ''; } if (myPage == myNumPages) { forAllString = ''; forString = ''; } else { forAllString = ''; forString = ''; } document.getElementById('pageButtonArea_' + whichGroup).innerHTML = backAllString + backString + forString + forAllString; eval("howMany_" + whichGroup + " = " + myHowMany); eval("page_" + whichGroup + " = " + myPage); eval("numPages_" + whichGroup + " = " + myNumPages); } function goPageBack() { page = page - 1; redisplayResults(); } function goPageFor() { page = page + 1; redisplayResults(); } function goPageForAll() { page = numPages; redisplayResults(); } function goPageBackAll() { page = 1; redisplayResults(); } function goPageBackManager(whichGroup) { eval("page_" + whichGroup + " = page_" + whichGroup + " - 1"); redisplayResultsManager(whichGroup); } function goPageForManager(whichGroup) { eval("page_" + whichGroup + " = page_" + whichGroup + " + 1"); redisplayResultsManager(whichGroup); } function goPageForAllManager(whichGroup) { eval("page_" + whichGroup + " = numPages_" + whichGroup); redisplayResultsManager(whichGroup); } function goPageBackAllManager(whichGroup) { eval("page_" + whichGroup + " = 1"); redisplayResultsManager(whichGroup); } function submitPartnerOrder(which) { var total = 0; var firstName = ''; var lastName = ''; var goFor = document.editOrder.elements.length for (i = 0; i < editOrder.elements.length; i++) { //alert("got one: " + gradeClass.elements[i].type); if (editOrder.elements[i].type == "checkbox") { var myname = editOrder.elements[i].name; if (myname.indexOf("lmscourse_") >= 0) { if (editOrder.elements[i].checked) { //alert(editOrder.elements[i].value); total = total + parseFloat(editOrder.elements[i].value); } } } } //alert("total: " + total); document.getElementById('modalArea').innerHTML = 'Are you sure that you want to submit this order for a total of $' + total + '?

 '; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 150, minWidth: 340, maxWidth: 400 }); } function addForumPost(whichThreadID,whichID) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, onClose: forumPostClose }); } function displayReportLayer(where) { //var thisWindowWidth = getWindowWidth(); //if (thisWindowWidth < 900) { //var anotherWin = (window.open(where, "LMS", "location=yes,status=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes")); //anotherWin.focus; //} else { document.getElementById('modalArea').innerHTML = '
'; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: globalModalMinWidth, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); //} } function reportLayerClose() { document.getElementById('modalArea').innerHTML = ''; $.modal.close(); } function displayCertificateLayer(where) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 720, minWidth: 1000, onClose: reportLayerClose }); } function forumPostClose() { $.modal.close(); window.location.reload(); } function checkForCats() { var currID = document.getElementById('lmscourseID').value; var oldID = document.getElementById('oldLmscourseID').value; if (currID == oldID) { document.getElementById('chooseCats').style.display = ''; document.getElementById('chooseCredits').style.display = ''; } else { document.getElementById('chooseCats').style.display = 'none'; document.getElementById('chooseCredits').style.display = 'none'; } } function tallyScore(howMany) { var lastName = ''; var whichIndex = 1; var scoreCount = 0; var scoreTotal = 0; for (var i = 0; i < document.editPerf.elements.length; i++) { if (document.editPerf.elements[i].type == "radio") { if (document.editPerf.elements[i].name.substr(0, 5) == "task_") { if (document.editPerf.elements[i].name != lastName) { //start a new one whichIndex = 1; lastName = document.editPerf.elements[i].name; if (document.editPerf.elements[i].checked) { //alert("low checked"); scoreCount = scoreCount + 1; } } else { //still in the old one whichIndex = whichIndex + 1; if (whichIndex == 2) { if (document.editPerf.elements[i].checked) { //alert("mid checked"); scoreCount = scoreCount + 2; } } else if (whichIndex == 3) { if (document.editPerf.elements[i].checked) { //alert("high checked"); scoreCount = scoreCount + 3; } } } } } } scoreTotal = howMany * 3; var score = (scoreCount / scoreTotal) * 100; var avgScore = Math.round(score); //alert(avgScore); document.getElementById('scoreArea').innerHTML = "Score: " + avgScore + ""; } function sendPR(howMany) { var lastName = ''; var whichIndex = 1; var scoreCount = 0; var scoreTotal = 0; for (var i = 0; i < document.editPerf.elements.length; i++) { if (document.editPerf.elements[i].type == "radio") { if (document.editPerf.elements[i].name.substr(0, 5) == "task_") { if (document.editPerf.elements[i].name != lastName) { //start a new one whichIndex = 1; lastName = document.editPerf.elements[i].name; if (document.editPerf.elements[i].checked) { //alert("low checked"); scoreCount = scoreCount + 1; } } else { //still in the old one whichIndex = whichIndex + 1; if (whichIndex == 2) { if (document.editPerf.elements[i].checked) { //alert("mid checked"); scoreCount = scoreCount + 2; } } else if (whichIndex == 3) { if (document.editPerf.elements[i].checked) { //alert("high checked"); scoreCount = scoreCount + 3; } } } } } } scoreTotal = howMany * 3; var score = (scoreCount / scoreTotal) * 100; var avgScore = Math.round(score); //alert(avgScore); document.getElementById('score').value = avgScore; submitPage('editPerf'); } function showTaskStepRecurr(which) { if (which != 'n') { document.getElementById('recurrEndArea').style.display = ''; } else { document.getElementById('recurrEndArea').style.display = 'none'; } if (which == 'd') { document.getElementById('recurrDayArea').style.display = ''; } else { document.getElementById('recurrDayArea').style.display = 'none'; } if (which == 'w') { document.getElementById('recurrWeekArea').style.display = ''; } else { document.getElementById('recurrWeekArea').style.display = 'none'; } if (which == 'm') { document.getElementById('recurrMonthArea').style.display = ''; } else { document.getElementById('recurrMonthArea').style.display = 'none'; } if (which == 'a') { document.getElementById('recurrYearArea').style.display = ''; } else { document.getElementById('recurrYearArea').style.display = 'none'; } } function makeGroupMember(which, userID, groupID) { //alert(userID + " - " + groupID + " - " + which); if (document.getElementById(which).checked) { $.post("general_ajax_group_membership.aspx", { "userID": userID, "groupID": groupID, "action": "add", "type": "member" }); } else { $.post("general_ajax_group_membership.aspx", { "userID": userID, "groupID": groupID, "action": "remove", "type": "member" }); } } function makeBadgeCourse(which, courseID, badgeID) { //alert(userID + " - " + groupID + " - " + which); if (document.getElementById(which).checked) { $.post("general_ajax_badge_course.aspx", { "courseID": courseID, "badgeID": badgeID, "action": "add", "type": "member" }); numCourses = numCourses + 1; } else { $.post("general_ajax_badge_course.aspx", { "courseID": courseID, "badgeID": badgeID, "action": "remove", "type": "member" }); numCourses = numCourses - 1; } } function makeBadgeLp(which, lpID, badgeID) { //alert(userID + " - " + groupID + " - " + which); if (document.getElementById(which).checked) { $.post("general_ajax_badge_lp.aspx", { "lpID": lpID, "badgeID": badgeID, "action": "add", "type": "member" }); numCourses = numCourses + 1; } else { $.post("general_ajax_badge_lp.aspx", { "lpID": lpID, "badgeID": badgeID, "action": "remove", "type": "member" }); numCourses = numCourses - 1; } } function makeGroupMemberSubmit(which, userID, groupID, orgID) { //alert(userID + " - " + groupID + " - " + which); var email = ''; var firstname = ''; var lastname = ''; if (document.getElementById('email')) { email = document.getElementById('email').value; } if (document.getElementById('firstname')) { firstname = document.getElementById('firstname').value; } if (document.getElementById('lastname')) { lastname = document.getElementById('lastname').value; } if (document.getElementById(which).checked) { $.post("general_ajax_group_membership.aspx", { "userID": userID, "groupID": groupID, "action": "add", "type": "member", "orgID" : orgID, "email" : email, "firstname" : firstname, "lastname" : lastname }); } else { $.post("general_ajax_group_membership.aspx", { "userID": userID, "groupID": groupID, "action": "remove", "type": "member" }); } } function makeGroupManager(which, userID, groupID) { if (document.getElementById(which).checked) { $.post("general_ajax_group_membership.aspx", { "userID": userID, "groupID": groupID, "action": "add", "type": "manager" }); } else { $.post("general_ajax_group_membership.aspx", { "userID": userID, "groupID": groupID, "action": "remove", "type": "manager" }); } } function enrollCourse(which, userID, courseID, workerID) { //alert(userID + " - " + groupID + " - " + which); if (document.getElementById(which).checked) { $.post("general_ajax_course_enroll.aspx", { "userID": userID, "courseID": courseID, "action": "enroll", "workerID": workerID }); } } function enrollClass(which, userID, classID, workerID) { //alert(userID + " - " + classID + " - " + which); if (document.getElementById(which).checked) { $.post("general_ajax_class_enroll.aspx", { "userID": userID, "classID": classID, "action": "enroll", "workerID": workerID }); } else { $.post("general_ajax_class_enroll.aspx", { "userID": userID, "classID": classID, "action": "unenroll", "workerID": workerID }); } } function catalogEnrollAll(courseID, active, courseName) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: true, opacity: 30, minHeight: 300, minWidth: 700 }); } function catalogUNEnrollAll(courseID, active, courseName) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: true, opacity: 30, minHeight: 300, minWidth: 700 }); } function roleNavFlat(which) { if (which == 'roleFlatNavAdmin') { $("#flatMenuItemLearner").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemManager").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemInstructor").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemReporter").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemDeveloper").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemAdmin").removeClass("flatMenuItem").addClass("flatMenuItemSelected"); $("#roleFlatNavLearner").slideUp("fast"); $("#roleFlatNavManager").slideUp("fast"); $("#roleFlatNavInstructor").slideUp("fast"); $("#roleFlatNavReporter").slideUp("fast"); $("#roleFlatNavDeveloper").slideUp("fast"); $("#roleFlatNavAdmin").slideDown(); } if (which == 'roleFlatNavManager') { $("#flatMenuItemAdmin").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemLearner").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemInstructor").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemReporter").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemDeveloper").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemManager").removeClass("flatMenuItem").addClass("flatMenuItemSelected"); $("#roleFlatNavAdmin").slideUp("fast"); $("#roleFlatNavLearner").slideUp("fast"); $("#roleFlatNavInstructor").slideUp("fast"); $("#roleFlatNavReporter").slideUp("fast"); $("#roleFlatNavDeveloper").slideUp("fast"); $("#roleFlatNavManager").slideDown(); } if (which == 'roleFlatNavInstructor') { $("#flatMenuItemAdmin").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemLearner").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemManager").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemReporter").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemDeveloper").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemInstructor").removeClass("flatMenuItem").addClass("flatMenuItemSelected"); $("#roleFlatNavAdmin").slideUp("fast"); $("#roleFlatNavLearner").slideUp("fast"); $("#roleFlatNavManager").slideUp("fast"); $("#roleFlatNavReporter").slideUp("fast"); $("#roleFlatNavDeveloper").slideUp("fast"); $("#roleFlatNavInstructor").slideDown(); } if (which == 'roleFlatNavReporter') { $("#flatMenuItemAdmin").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemLearner").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemManager").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemInstructor").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemDeveloper").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemReporter").removeClass("flatMenuItem").addClass("flatMenuItemSelected"); $("#roleFlatNavAdmin").slideUp("fast"); $("#roleFlatNavLearner").slideUp("fast"); $("#roleFlatNavManager").slideUp("fast"); $("#roleFlatNavInstructor").slideUp("fast"); $("#roleFlatNavDeveloper").slideUp("fast"); $("#roleFlatNavReporter").slideDown(); } if (which == 'roleFlatNavDeveloper') { $("#flatMenuItemAdmin").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemManager").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemInstructor").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemReporter").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemLearner").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemDeveloper").removeClass("flatMenuItem").addClass("flatMenuItemSelected"); $("#roleFlatNavAdmin").slideUp("fast"); $("#roleFlatNavManager").slideUp("fast"); $("#roleFlatNavInstructor").slideUp("fast"); $("#roleFlatNavReporter").slideUp("fast"); $("#roleFlatNavLearner").slideUp("fast"); $("#roleFlatNavDeveloper").slideDown(); } if (which == 'roleFlatNavLearner') { $("#flatMenuItemAdmin").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemManager").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemInstructor").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemReporter").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemDeveloper").removeClass("flatMenuItemSelected").addClass("flatMenuItem"); $("#flatMenuItemLearner").removeClass("flatMenuItem").addClass("flatMenuItemSelected"); $("#roleFlatNavAdmin").slideUp("fast"); $("#roleFlatNavManager").slideUp("fast"); $("#roleFlatNavInstructor").slideUp("fast"); $("#roleFlatNavReporter").slideUp("fast"); $("#roleFlatNavDeveloper").slideUp("fast"); $("#roleFlatNavLearner").slideDown(); } } function associateCourseDisplay(whichID, whichName) { if (document.getElementById('associate_' + whichID).checked) { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Associate Group: " + whichName; cell2.innerHTML = ""; } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Remove Association: " + whichName; cell2.innerHTML = ""; } document.getElementById('actionSubmitArea').style.display = ''; } function limitedCourseDisplay(whichID, whichName) { if (document.getElementById('limited_' + whichID).checked) { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Add to Limited Catalog: " + whichName; cell2.innerHTML = ""; } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Remove From Limited Catalog: " + whichName; cell2.innerHTML = ""; } document.getElementById('actionSubmitArea').style.display = ''; } function v38_setClassCrit(mySessID) { //alert("in here: " + mySessID); var myPriv = document.getElementById('v3_private').value; processAjax('general_session_criteria.aspx?private=' + myPriv + '&sessionID=' + mySessID, 'customCritArea'); //if (myPriv == 'y') { //document.getElementById('selfRegisterNo').checked = true; //document.getElementById('selfRegisterRow').style.display = 'none'; //} else { //document.getElementById('selfRegisterRow').style.display = ''; //} } function v30_instructorChoose() { if (document.getElementById('instructorCheckbox').checked) { $("#v30_instructorTypeArea").slideDown("fast"); } else { $("#v30_instructorTypeArea").slideUp("fast"); } } function v44_instructorOption() { if (document.getElementById('instructorCheckbox').checked) { $("#v44_instructorOptionArea").slideDown("fast"); } else { $("#v44_instructorOptionArea").slideUp("fast"); } } function v30_setInst(which, whichUser) { if (which == 'e') { document.getElementById('v30_instructorFrameArea').style.display = ''; document.getElementById('instructorFrame').src = 'v30_instructorFrame.aspx?userID=' + whichUser + '&type=e'; document.getElementById('instructorFrame').style.height = '675px'; } if (which == 'i') { document.getElementById('v30_instructorFrameArea').style.display = ''; document.getElementById('instructorFrame').src = 'v30_instructorFrame.aspx?userID=' + whichUser + '&type=i'; document.getElementById('instructorFrame').style.height = '520px'; } if (which == 'w') { document.getElementById('v30_instructorFrameArea').style.display = 'none'; } if (which == 'o') { document.getElementById('v30_instructorFrameArea').style.display = 'none'; } } function v38_enrollUserDisplay(whichID, whichName, type) { if (type == 'enroll') { if (document.getElementById('user_' + whichID).checked) { //see if it is already there if (document.getElementById('enr_' + whichID)) { //skip it, its already there } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Enroll user: " + whichName; cell2.innerHTML = ""; } } } if (type == 'reenroll') { if (document.getElementById('userre_' + whichID).checked) { if (document.getElementById('enrre_' + whichID)) { //skip it, its already there } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Re-Enroll user: " + whichName; cell2.innerHTML = ""; } } } if (type == 'unenroll') { if (document.getElementById('user_' + whichID).checked) { //do nothing } else { if (document.getElementById('enrun_' + whichID)) { //skip it, its already there } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Un-Enroll user: " + whichName; cell2.innerHTML = ""; } } } document.getElementById('actionSubmitArea').style.display = ''; } function v38_enrollUserDisplayLP(whichID, whichName, type) { if (type == 'enroll') { if (document.getElementById('user_' + whichID).checked) { //see if it is already there if (document.getElementById('enr_' + whichID)) { //skip it, its already there } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Enroll user: " + whichName; cell2.innerHTML = ""; } } } if (type == 'unenroll') { if (document.getElementById('user_' + whichID).checked) { //do nothing } else { if (document.getElementById('enrun_' + whichID)) { //skip it, its already there } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Un-Enroll user: " + whichName; cell2.innerHTML = ""; } } } document.getElementById('actionSubmitArea').style.display = ''; } function v38_associateCourseDisplay(whichID, whichName) { if (document.getElementById('associate_' + whichID).checked) { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Associate Group: " + whichName; cell2.innerHTML = ""; } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell2.style.width = '30px'; cell1.innerHTML = "Remove Association: " + whichName; cell2.innerHTML = ""; } document.getElementById('actionSubmitArea').style.display = ''; } function v38_enrollUserDisplayClass(whichID, whichFirst, whichLast, whichEmail) { if (document.getElementById('user_' + whichID)) { //skip it, its already there } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); var cell3 = row.insertCell(2); var cell4 = row.insertCell(3); var cell5 = row.insertCell(4); cell1.innerHTML = whichLast; cell2.innerHTML = whichFirst; cell3.innerHTML = whichEmail; cell4.style.textAlign = 'center'; cell4.innerHTML = ''; cell5.style.textAlign = 'center'; cell5.innerHTML = ""; } if (document.getElementById('uli_' + whichID)) { document.getElementById('uli_' + whichID).innerHTML = 'Enrolled'; } if (((rowCount + 1) > seats) && (seatNote == 'false')) { ezAlert("You have reached the maximum number of seats specified for this class. You may continue to add users, but you will be exceeding the specified number of seats.") seatNote = 'true'; } } function v38_addCourserDisplayLP(whichID, whichName) { if (document.getElementById('user_' + whichID)) { //skip it, its already there } else { var table = document.getElementById("actionTable"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); cell1.innerHTML = whichName; cell2.style.textAlign = 'center'; cell2.innerHTML = ""; } if (document.getElementById('uli_' + whichID)) { document.getElementById('uli_' + whichID).innerHTML = 'Selected'; } v38_initDragTableLp(); } function v38_searchClassList() { var sVal = document.getElementById('enrolledListSearch').value; var gotSMatch = false; if (sVal) { for (x = 0; x < 500; x++) { if (document.getElementById('subRow_' + x)) { // it exists var myHTML = document.getElementById('subRow_' + x).innerHTML; if (myHTML) { var arrHTML = myHTML.split(''); var myLN = arrHTML[0].replace("", ""); myLN = myLN.replace("", ""); var myFN = arrHTML[1].replace("", ""); var myEM = arrHTML[2].replace("", ""); var n1 = myLN.toLowerCase().indexOf(sVal.toLowerCase()); var n2 = myFN.toLowerCase().indexOf(sVal.toLowerCase()); var n3 = myEM.toLowerCase().indexOf(sVal.toLowerCase()); //alert(myLN.toLowerCase().indexOf(sVal.toLowerCase())) if ((n1 > -1) || (n2 > -1) || (n3 > -1)) { //alert(myEM); gotSMatch = true; } else { document.getElementById('subRow_' + x).style.display = 'none'; } } } } } else { for (x = 0; x < 500; x++) { if (document.getElementById('subRow_' + x)) { // it exists document.getElementById('subRow_' + x).style.display = ''; } } } } function v38_searchLpList() { var sVal = document.getElementById('lpListSearch').value; var gotSMatch = false; if (sVal) { for (x = 0; x < 500; x++) { if (document.getElementById('subRow_' + x)) { // it exists var myHTML = document.getElementById('subRow_' + x).innerHTML; if (myHTML) { var arrHTML = myHTML.split(''); var myLN = arrHTML[0].replace("", ""); myLN = myLN.replace("", ""); var myFN = arrHTML[1].replace("", ""); var myEM = arrHTML[2].replace("", ""); var n1 = myLN.toLowerCase().indexOf(sVal.toLowerCase()); //var n2 = myFN.toLowerCase().indexOf(sVal.toLowerCase()); //var n3 = myEM.toLowerCase().indexOf(sVal.toLowerCase()); //alert(myLN.toLowerCase().indexOf(sVal.toLowerCase())) if ((n1 > -1)) { //alert(myEM); gotSMatch = true; } else { document.getElementById('subRow_' + x).style.display = 'none'; } } } } } else { for (x = 0; x < 500; x++) { if (document.getElementById('subRow_' + x)) { // it exists document.getElementById('subRow_' + x).style.display = ''; } } } } function v38_submitInstrEnrollPage(which) { for (x = 0; x < 500; x++) { if (document.getElementById('subRow_' + x)) { // it exists document.getElementById('subRow_' + x).style.display = ''; } } submitPage(which); } function v38_submitLpCoursePage(which) { for (x = 0; x < 500; x++) { if (document.getElementById('subRow_' + x)) { // it exists document.getElementById('subRow_' + x).style.display = ''; } } submitPage(which); } function isNumber(n) { return !isNaN(parseFloat(n)) && isFinite(n); } function testBrowser() { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 300, minWidth: 520, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function v38_openCustomClassReportPrint(isPDF) { if (isMobile && isPDF == 'true') { myWin = open('v38_reporter_classes_custom_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF, "Class_Report", "width=1000,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } else { displayReportLayer('v38_reporter_classes_custom_print.aspx?' + qString + '&page=' + page + '&pageBreak=' + pageBreak + '&orderBy=' + orderBy + '&filter=' + filter + '&isPDF=' + isPDF) } } function v38_showSessionRoster(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: 920, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function v38_showPDFRoster(which) { myWin = open('general_session_roster.aspx?isPDF=true&sessionID=' + which, "Roster", "width=1000,height=600,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes"); myWin.focus(); } //REALPAGE function enrollMeOtherV38(LMSCourseID, LMSUserID, enrollmentID, courseName, mode) { latestEnrollmentID = LMSCourseID; //document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; document.getElementById('modalArea').innerHTML = ''; //document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 300, minWidth: 550, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); document.getElementById('modalArea').innerHTML = ''; } function unenrollMeOtherV38(LMSCourseID, LMSUserID, enrollmentID, courseName, mode) { latestEnrollmentID = LMSCourseID; //document.getElementById('enroll_' + LMSCourseID).innerHTML = ""; document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ close: false, opacity: 30, minHeight: 270, minWidth: 600, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function v38_initDragTableLp() { $('#actionTable').tableDnD({ onDrop: function (table, row) { v38_saveNewLpOrder($.tableDnD.serialize()); } }); } function v38_saveNewLpOrder(what) { replaceMe = "dragTable[]"; myWhat = what.replace(/dragTable/g, "d"); //alert(myWhat); //document.getElementById('orderSaveArea').src = "contentadmin_course_order.aspx?" + myWhat; } function v38_enrollMeLP(LMSLPID, LMSUserID) { alertify.confirm('Are you sure you want to enroll in this Learning Path?', function (e) { if (e) { v38_enrollMeLPDo(LMSLPID, LMSUserID, LMSUserID); } else { // user clicked "cancel" } }); } function v38_enrollMeLPRe(LMSLPID, LMSUserID) { alertify.confirm('Are you sure you want to re-enroll in this Learning Path?', function (e) { if (e) { v38_enrollMeLPDo(LMSLPID, LMSUserID, LMSUserID); } else { // user clicked "cancel" } }); } function v38_enrollMeLPUn(LMSLPEnrollID, EnrolledByID, LMSLPID, LMSUserID) { alertify.confirm('Are you sure you want to Un-enroll this user from this Learning Path? All courses and data associated with this Learning Path will be removed.', function (e) { if (e) { v38_enrollMeLPDoUn(LMSLPEnrollID, EnrolledByID, LMSLPID, LMSUserID); } else { // user clicked "cancel" } }); } function v38_enrollMeLPRequest(LMSLPID, LMSUserID) { alertify.confirm('Are you sure you want to request enrollment in this Learning Path?', function (e) { if (e) { v38_enrollMeLPDoRequest(LMSLPID, LMSUserID, LMSUserID); } else { // user clicked "cancel" } }); } function v38_enrollUserLP(LMSLPID, LMSUserID, enrolledByID) { alertify.confirm('Are you sure you want to enroll this user in this Learning Path?', function (e) { if (e) { v38_enrollMeLPDo(LMSLPID, LMSUserID, enrolledByID); } else { // user clicked "cancel" } }); } function v38_enrollMeLPDo(LMSLPID, LMSUserID, enrolledByID) { latestLPEnrollmentID = LMSLPID; document.getElementById('lpenroll_' + LMSLPID).innerHTML = ""; //see if there are class sessions to display //if (document.getElementById('classSessions_' + LMSCourseID)) { // $('#classSessions_' + LMSCourseID).slideDown(""); //} document.getElementById("enrollArea").src = 'student_create_enrollment_frame_lp.aspx?lmslpID=' + LMSLPID + '&lmsuserID=' + LMSUserID + '&enrolledById=' + enrolledByID; } function v38_enrollMeLPDoRe(LMSLPID, LMSUserID, enrolledByID) { latestLPEnrollmentID = LMSLPID; document.getElementById('lpenroll_' + LMSLPID).innerHTML = ""; //see if there are class sessions to display //if (document.getElementById('classSessions_' + LMSCourseID)) { // $('#classSessions_' + LMSCourseID).slideDown(""); //} document.getElementById("enrollArea").src = 'student_create_enrollment_frame_lp.aspx?lmslpID=' + LMSLPID + '&lmsuserID=' + LMSUserID + '&enrolledById=' + enrolledByID + '&lpRe=true'; } function v38_enrollMeLPDoUn(LMSLPEnrollID, EnrolledByID, LMSLPID, LMSUserID) { latestLPEnrollmentID = LMSLPID; document.getElementById('lpenroll_' + LMSLPID).innerHTML = ""; //see if there are class sessions to display //if (document.getElementById('classSessions_' + LMSCourseID)) { // $('#classSessions_' + LMSCourseID).slideDown(""); //} document.getElementById("enrollArea").src = 'v38_student_create_enrollment_frame_lp_remove.aspx?lmslpEnrollID=' + LMSLPEnrollID + '&enrolledById=' + EnrolledByID + '&lmslpid=' + LMSLPID + '&lmsuserID=' + LMSUserID; } function v38_enrollMeLPDoRequest(LMSLPID, LMSUserID, enrolledByID) { latestLPEnrollmentID = LMSLPID; document.getElementById('lpenroll_' + LMSLPID).innerHTML = ""; //see if there are class sessions to display //if (document.getElementById('classSessions_' + LMSCourseID)) { // $('#classSessions_' + LMSCourseID).slideDown(""); //} document.getElementById("enrollArea").src = 'student_create_enrollment_frame_lp.aspx?mode=request&lmslpID=' + LMSLPID + '&lmsuserID=' + LMSUserID + '&enrolledById=' + enrolledByID; } function v38_showLPDetails(lpID) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: globalModalMinWidth, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function v38_showLPDetailsLaunch(lpID, enrollmentID) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 600, minWidth: globalModalMinWidth, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function v38_deleteLPEnrollment(lpEnrID, mode, studentID) { ezConfirm('Are you sure you want to remove this Learning Path enrollment for this user?', 'v38_general_transcript.aspx?code=deleteLP&deleteID=' + lpEnrID + '&mode=' + mode + '&studentID=' + studentID); } function v38_makeLPGroup(which, groupID, lpID) { //alert(userID + " - " + groupID + " - " + which); if (document.getElementById(which).checked) { $.post("v38_general_ajax_lp.aspx", { "groupID": groupID, "lpID": lpID, "action": "add", "type": "group" }); //numCourses = numCourses + 1; } else { $.post("v38_general_ajax_lp.aspx", { "groupID": groupID, "lpID": lpID, "action": "remove", "type": "group" }); //numCourses = numCourses - 1; } } function v38_makeLPUser(which, lmsuserID, lpID) { //alert(userID + " - " + groupID + " - " + which); //alert("in here"); if (document.getElementById(which).checked) { $.post("v38_general_ajax_lp.aspx", { "lmsuserID": lmsuserID, "lpID": lpID, "action": "add", "type": "user" }); //numCourses = numCourses + 1; } else { $.post("v38_general_ajax_lp.aspx", { "lmsuserID": lmsuserID, "lpID": lpID, "action": "remove", "type": "user" }); //numCourses = numCourses - 1; } } function v38_showInternalNote(which) { document.getElementById('modalArea').innerHTML = ''; $("#modalArea").modal({ opacity: 30, minHeight: 400, minWidth: globalModalMinWidth, maxWidth: '90%', maxHeight: '90%', zIndex: 10100, overlayClose: true }); } function v38_perfShowDetails(whichGoal, whichStudent, stage) { if (stage == 'self') { if (document.getElementById("goself_" + whichGoal).style.display == 'none') { document.getElementById("goself_" + whichGoal).style.display = ''; processAjax('v38_general_performance_goal_details.aspx?goalID=' + whichGoal + '&studentID=' + whichStudent, "showself_" + whichGoal); } else { document.getElementById("goself_" + whichGoal).style.display = 'none'; } } else { if (stage == 'review') { if (document.getElementById("goselfr_" + whichGoal).style.display == 'none') { document.getElementById("goselfr_" + whichGoal).style.display = ''; processAjax('v38_general_performance_goal_details.aspx?goalID=' + whichGoal + '&studentID=' + whichStudent, "showselfr_" + whichGoal); } else { document.getElementById("goselfr_" + whichGoal).style.display = 'none'; } } else { if (document.getElementById("go_" + whichGoal).style.display == 'none') { document.getElementById("go_" + whichGoal).style.display = ''; processAjax('v38_general_performance_goal_details.aspx?goalID=' + whichGoal + '&studentID=' + whichStudent, "show_" + whichGoal); } else { document.getElementById("go_" + whichGoal).style.display = 'none'; } } } } function v38_showPerfAssignmentParts(assignmentID, mode, which) { if (mode == 'comments') { //alert("genCommArea" + which); if (document.getElementById("genCommArea" + which).style.display == 'none') { document.getElementById("genCommArea" + which).style.display = ''; processAjax('v38_general_performance_goal_details.aspx?assignmentID=' + assignmentID + '&mode=assignComments', "genCommArea" + which); } else { document.getElementById("genCommArea" + which).style.display = 'none'; } } else { if (document.getElementById("genDocArea" + which).style.display == 'none') { document.getElementById("genDocArea" + which).style.display = ''; processAjax('v38_general_performance_goal_details.aspx?assignmentID=' + assignmentID + '&mode=assignDoc', "genDocArea" + which); } else { document.getElementById("genDocArea" + which).style.display = 'none'; } } currentSource = document.getElementById('catIcon_' + which).src; if (currentSource.indexOf('folder_down') > -1) { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'folder_up.png'; } else { document.getElementById('catIcon_' + which).src = 'images/icons/' + icp + 'folder_down.png'; } } function v38_perfFinishPopup(whichGoal, whichStudent) { localCloseModal(); processAjax('v38_general_performance_goal_details.aspx?goalID=' + whichGoal + '&studentID=' + whichStudent, "show_" + whichGoal); if (document.getElementById("showself_" + whichGoal)) { processAjax2('v38_general_performance_goal_details.aspx?goalID=' + whichGoal + '&studentID=' + whichStudent, "showself_" + whichGoal); } if (document.getElementById("showselfr_" + whichGoal)) { processAjax3('v38_general_performance_goal_details.aspx?goalID=' + whichGoal + '&studentID=' + whichStudent, "showselfr_" + whichGoal); } } function v38_perfFinishPopupGen(assignmentID, mode) { localCloseModal(); if (mode == 'comments') { if (document.getElementById("genCommArea1")) { processAjax('v38_general_performance_goal_details.aspx?assignmentID=' + assignmentID + '&mode=assignComments', "genCommArea1"); } if (document.getElementById("genCommArea3")) { processAjax2('v38_general_performance_goal_details.aspx?assignmentID=' + assignmentID + '&mode=assignComments', "genCommArea3"); } if (document.getElementById("genCommArea5")) { processAjax3('v38_general_performance_goal_details.aspx?assignmentID=' + assignmentID + '&mode=assignComments', "genCommArea5"); } } else { if (document.getElementById("genDocArea2")) { processAjax('v38_general_performance_goal_details.aspx?assignmentID=' + assignmentID + '&mode=assignDoc', "genDocArea2"); } if (document.getElementById("genDocArea4")) { processAjax2('v38_general_performance_goal_details.aspx?assignmentID=' + assignmentID + '&mode=assignDoc', "genDocArea4"); } if (document.getElementById("genDocArea6")) { processAjax3('v38_general_performance_goal_details.aspx?assignmentID=' + assignmentID + '&mode=assignDoc', "genDocArea6"); } } } function v59_makeRegulatorSubmit(which, userID, regID, orgID) { if (document.getElementById(which).checked) { $.post("v59_ajax_regulator.aspx", { "userID": userID, "regID": regID, "action": "add", "type": "member", "orgID": orgID }); } else { $.post("v59_ajax_regulator.aspx", { "userID": userID, "regID": regID, "action": "remove", "type": "member" }); } } function v59_makeRegulatorEmailSubmit(which, userID, regID, orgID) { //alert("ok"); if (document.getElementById(which).checked) { $.post("v59_ajax_regulator.aspx", { "userID": userID, "regID": regID, "action": "add", "type": "email", "orgID": orgID }); } else { $.post("v59_ajax_regulator.aspx", { "userID": userID, "regID": regID, "action": "remove", "type": "email" }); } } function v59_makeIndustrySubmit(which, userID, regID, orgID) { if (document.getElementById(which).checked) { $.post("v59_ajax_regulator.aspx", { "userID": userID, "regID": regID, "action": "add", "type": "industry", "orgID": orgID }); } else { $.post("v59_ajax_regulator.aspx", { "userID": userID, "regID": regID, "action": "remove", "type": "industry" }); } }