Congratulations! You have completed the " + courseTitle.replace(' Congratulations! You have completed Lesson " + SCONumber + " of the " + courseTitle.replace(' To print your certificate, enter your name in the blank below.";
if (SCONumber == 0) {
getNameText += " By entering your name in the field below and selecting the Enter button, you certify that you completed " + courseTitle.replace('
', ' ') + " course.";
} else {
getNameText += "
', ' ') + " course.";
}
getNameText += "
', ' ') + " in its entirety.";
}
$('#divGetNameText').html(getNameText);
$('#divGetName').show();
};
}
function printCertificate() {
if ($('#name').val() == "") {
alert("Please enter your name.");
return(false);
}
studentName = $('#name').val();
$('#divGetName').hide();
$('#iframeCertificate').attr('src', 'certificate.htm');
$('#iframeCertificate').show();
if (SCONumber == 0) printedCertificate = true;
}
CONGRATULATIONS!