If statement wont work : First i run this first function,
it sets paikka3.src to "sapeli.png".

But then when i run the second function, the if statement wont work/run.

Why is this? I have no clue...
code:

var sapeliMäärä = 1;

function tavarat() {
	
	if(sapeliMäärä == 1) {
		document.lomake.paikka3.src = "sapeli.png";
	}
}

function käytäTavaraa3() {
	
	
	if(document.lomake.paikka3.src == "sapeli.png") {
		OmaHp += 5;
		document.lomake.poksi.value = "Söit lohen joka paransi 5 HP";
		document.lomake.paikka3.src = "";
		lohiMäärä -= 1;
		
	}
}