var cert_password_prompt = "Access to the LASER ACADEMY is restricted. Please enter the correct secret password.";
var cert_password = "imagination";
var cert_incorrect_password = "ACCESS DENIED. INCORRECT PASSWORD. TRY AGAIN, OR CONSULT YOUR TEACHER FOR THE CORRECT PASSWORD.";
var cert_location = "laser-academy.asp";
var cert_print_message = "Press OK to print your certificate.";

// DO NOT EDIT BELOW THIS LINE

function GetCertificate()
{
	var enteredPass = prompt(cert_password_prompt,"");
	if (enteredPass.toLowerCase() == cert_password.toLowerCase())
	{
		window.location = cert_location;
	}else{
		alert(cert_incorrect_password);
	}
}

function PrintCert()
{
	if (confirm(cert_print_message))
	{
		print();
	}
}