// JavaScript Document
function testform()
{var score=0;
if (document.turkish.ocean.value=="denizde") 
	{
	score = score + 1
	}

if (document.turkish.carrot.value=="havuca")
	{
	score = score + 1
	} 

if (document.turkish.table.value=="masalar")
	{
	score = score + 1
	} 

if (document.turkish.notebook.value=="defterde")
	{
	score = score + 1
	} 

if (document.turkish.house.value=="evlere")
	{
	score = score + 1
	} 

if (score==0) {document.turkish.evaluation.value = "Oops!"}
if (score==1) {document.turkish.evaluation.value = "Good start!"}
if (score==2) {document.turkish.evaluation.value = "Keep going!"}
if (score==3) {document.turkish.evaluation.value = "Way to go!"}
if (score==4) {document.turkish.evaluation.value = "Almost there!"}
if (score==5) {document.turkish.evaluation.value = "Congratulations!"; 
				document.turkish.scoreoutput.value = score + " out of 5!";
				document.certificate.solved.value = "solved";
				document.turkish.instructions.value = "Now that you have solved this puzzle, you may request a certificate by pressing the button below."}
	else document.turkish.scoreoutput.value = score + " out of 5"
}
