
/*******************************
	THIS IS WERE YOU CAN EDIT
********************************

Please remember you need to edit the content between the two double quotes. e.g.
var pass = "12345";  => var pass = "abcdefg";

*******************************/

// This is the password that you need to edit to allow the user to download the pdf.
var pass = "051706";

// This is the text that the user will be prompted to enter the password.
var msg = "Please enter your password below to access the form.";

// This is the error message that the user will get if they enter the password wrong. 
// If you don't want this error message to come up then you can just leave it blank.
var errormsg = "You have entered an invalid password. Please try again.";

/*******************************
	END
*******************************/

/*******************************
	DON'T EDIT BEOND THIS POINT
*******************************/

function CheckPass() {
	
	if(prompt(msg, "") == pass)
		window.location = "../online-form/index.html";
	else
		if(errormsg != "" && errormsg != null)
			alert(errormsg);
}

/*******************************
	END
*******************************/
