';
//$("#modalArea").modal({
//close: false,
//opacity: 30,
//minHeight: 150,
//minWidth: 340
//});
ezConfirm('Are you sure you want to deactivate the course:
?', '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:
';
//$("#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 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 initDragTableQuestion() {
$('#dragTable').tableDnD({
onDrop: function (table, row) {
saveNewQOrder($.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;
}
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;
}
function saveNewCourseOrder(what) {
replaceMe = "dragTable[]";
myWhat = what.replace(/dragTable/g, "d");
//alert(myWhat);
document.getElementById('orderSaveArea').src = "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 saveNewSurveyOrder(what) {
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 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) {
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;
}
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 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 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
";
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) {
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('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';
}
});
} else {
document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
Un-Enroll";
}
}
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 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 updateCatalogEnrollmentsTask(lmsuserID, enrollmentID) {
document.getElementById('taskenroll_' + latestLPEnrollmentID).innerHTML = "
Enrolled
";
processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments');
//newestEnrollmentID = enrollmentID;
}
function updateCatalogEnrollmentsBuy(lmsuserID, enrollmentID) {
document.getElementById('enroll_' + latestEnrollmentID).innerHTML = "
In Cart
";
processAjax('student_ecomm_cart_frame.aspx?userID=' + lmsuserID, '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 updateCatalogEnrollmentsClass(lmsuserID, sessionID) {
document.getElementById('classEnrollArea_' + sessionID).innerHTML = "
Enrolled
";
processAjax('student_current_enrollment_frame.aspx?userID=' + lmsuserID, 'catalogCurrentEnrollments');
//newestEnrollmentID = enrollmentID;
}
function updateCatalogEnrollmentsClassCatalog(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) {
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 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 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 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() {
//see if there is a compliance statement
if (inYoutube == true) {
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 = '';
window.setTimeout(endCourse, 1000);
}
}
function endCourse() {
document.getElementById('cwFrame').src = '';
var browser = navigator.userAgent.toLowerCase();
if (browser.indexOf('chrome') > -1) {
window.setTimeout(closeCourseChrome, 1000);
}
}
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) {
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) {
//hide the static menu
var thisWindowWidth = getWindowWidth();
if (thisWindowWidth < 600) {
//its small, use a popup
launchSco12Popup(whichSco, whichEnroll, w, h, launch, inReview)
} 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, '/', '', '');
myWidth = 1030;
myHeight = 700;
//if (w > myWidth) {
//w = myWidth;
//}
//if (h > myHeight) {
//h = myHeight;
//}
myWidth = w + 10;
myHeight = h + 10;
showCourseWindow('cwWindow', myWidth, myHeight);
$('#cwWindow').fadeIn("fast");
document.getElementById('cwFrame').src = "deliverScormAPI_12.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview;
courseOpen = true;
}
}
function launchSco12Popup(whichSco, whichEnroll, w, h, launch, inReview) {
//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) {
//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, '/', '', '');
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 launchAICC(whichSco, whichEnroll, w, h, launch, inReview) {
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;
courseOpen = true;
//}
}
function launchAICCPopup(whichSco, whichEnroll, w, h, launch, inReview) {
//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) {
var thisWindowWidth = getWindowWidth();
if (thisWindowWidth < 600) {
//its small, use a popup
launchTinCanPopup(whichSco, whichEnroll, w, h, launch, inReview)
} 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) {
//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) {
//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;
showCourseWindow('cwWindow', myWidth, myHeight);
$('#cwWindow').fadeIn("fast");
document.getElementById('cwFrame').src = "deliverYoutube.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview;
courseOpen = true;
}
function launchVimeo(whichSco, whichEnroll, w, h, launch, inReview) {
//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;
showCourseWindow('cwWindow', myWidth, myHeight);
$('#cwWindow').fadeIn("fast");
document.getElementById('cwFrame').src = "deliverVimeo.aspx?scoID=" + whichSco + "&enrollmentID=" + whichEnroll + "&inReview=" + inReview;
courseOpen = true;
}
function launchEZVideo(whichSco, whichEnroll, w, h, launch, inReview) {
//hide the static menu
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;
courseOpen = true;
}
function launchSurvey(which, whichEnrollment, whichUser, whichCourseID, whichInstructorID) {
//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) {
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)
} 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;
courseOpen = true;
}
}
function launchDoc(whichSco, whichEnroll, w, h, launch, inReview) {
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)
} 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;
courseOpen = true;
}
}
function launchDocPopup(whichSco, whichEnroll, w, h, launch, inReview) {
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) {
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;
gotoPage('reporter_survey_reportV2.aspx?surveyID=' + mysid + '&pageID=' + mypID);
}
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) {
//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) {
//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 = "deliverSurveyV2.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 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 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) {
//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();
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) {
//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();
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) {
//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();
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) {
//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();
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() {
//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);
}
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 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 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 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) {
//myWin = open(where, "Transcript", "width=1020,height=700,location=no,status=no,toolbar=no,menubar=no,scrollbars=yes");
//myWin.focus();
displayReportLayer(where);
}
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 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 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_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) {
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 = "
";
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 exceding the specified number of seats.")
seatNote = 'true';
}
}
function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}