function checkForm() {
	var error = "";
	if (document.lomake.nimi.value == '') {
		error += "Ole hyvä ja täytä nimesi.\n";
	}

	if (document.lomake.puhelin.value == '') {
		if (document.lomake.email.value == '') {
			error += "Ole hyvä ja täytä puhelinnumerosi ja/tai sähköpostiosoitteesi.\n";
		}
	}

	if (document.lomake.asia.value == '') {
		error += "Ole hyvä ja täytä asiasi.\n";
	}

	if (error != '') {
		alert(error);
		return false;
	} else {
		return true;
	}
}

