function spam_check()
{
	var answer = Math.floor(Math.random()*1000)

	var input = prompt("For security reasons, please enter the following number below: " + answer, "enter here");
	input = parseInt(input);

	if (input != answer)
	{
		alert('Incorrect number ... please try again!');
	}
	else
	{
		alert('Correct! Click OK to proceed!');
		document.form.action="pupils_registered.php";
	}
}




