function startCourse(startCourseoid, registered) { openPopup('/study/registerlesson/startCourse.faces?oid=' + startCourseoid + '&tm=' + new Date().getTime(),800,800,'coursewindow','resizable=1,scrollbars=1'); } function addFreeLesson(oid){ if (confirm("This free course will be added to your courses list. Please click 'OK' to continue, or click 'Cancel' to abort.")) { window.location.href = "/study/registerlesson/addFreeLesson.faces?courseId=" + oid; } } function startScormTest(oid){//for scorm tests. startTest.jsp will save the start time openPopup('/study/test/scorm/startTest.faces?oid=' + oid + '&tm=' + new Date().getTime(),800,800,'coursewindow','resizable=1,scrollbars=1'); } function startTest(courseId) {//for questionbank tests alert("You must login to take the test."); } function startSurvey(courseId) { window.location.href = "/study/test/taketest/testSlides.jsp?oid=" + courseId + "&survey=true&tm=" + new Date().getTime(); } function addFreeBoxset(oid) { } function redirectToTakeLesson() { if (!confirm("You have already purchased the online training for your own use. You will be redirected to 'My Online Training'. Please click OK to continue. Otherwise, please click Cancel.")) { return; } window.location.href = "/study/takelesson/listStudyCourses-frame.faces"; }