function openExamWindowFor(mail,hash)
	{
	if(mail.match(/^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$/))
		{
		if(hash.match(/^[a-z0-9]{20}$/i))
			{
			if(confirm("Before you begin we recommend that you close any applications that may be running, other than your web browser.\n\nOnce you're ready to proceed, please press OK."))
				{
				if(!window.open("start/?email="+mail+"&hash="+hash,"examWindow",'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=760,height=540,left=350,top=20'))
					window.location = "/start/?email="+mail+"&hash="+hash;
				}
			}
			else
			{
			alert("You must provide us with a valid hash to start your exam.");
			}
		}
		else
		{
		alert("You must provide us with a valid email address to start your exam.");
		}
	}
