function tsek(formi) {
	var enimi = document[formi].enimi;
	var snimi = document[formi].snimi;
	var company = document[formi].company;
	var email = document[formi].email;
	var puh = document[formi].puh;
	var address = document[formi].address;
	var code = document[formi].code;
	var city = document[formi].city;
	var go = 1;

	
	if (enimi.value=='') {enimi.style.backgroundColor="red"; go=0;	} else { enimi.style.backgroundColor="white"; }
	if (snimi.value=='') {snimi.style.backgroundColor="red"; go=0;	} else { snimi.style.backgroundColor="white"; }
	if (company.value=='') {company.style.backgroundColor="red"; go=0;	} else { company.style.backgroundColor="white"; }
	if (puh.value=='') {puh.style.backgroundColor="red"; go=0;	} else { puh.style.backgroundColor="white"; }
	if (address.value=='') {address.style.backgroundColor="red"; go=0;	} else { address.style.backgroundColor="white"; }
	if (code.value=='') {code.style.backgroundColor="red"; go=0;	} else { code.style.backgroundColor="white"; }
	if (city.value=='') {city.style.backgroundColor="red"; go=0;	} else { city.style.backgroundColor="white"; }

	if(go==1) { 
		if((email.value.indexOf(".") > 2) && (email.indexOf("@") > 0)) { email.style.backgroundColor="white"; return true; }
	  	else { email.style.backgroundColor="red"; return false; } 	
	}
	else { return false; }
}
function tsekyht(formi2) {
	var nimi = document[formi2].nimi;
	var info = document[formi2].info;
	var email = document[formi2].email;
	var go = 1;

	
	if (nimi.value=='') {nimi.style.backgroundColor="red"; go=0;	} else { nimi.style.backgroundColor="white"; }
	if (info.value=='') {info.style.backgroundColor="red"; go=0;	} else { info.style.backgroundColor="white"; }

	if(go==1) { 
		if((email.value.indexOf(".") > 2) && (email.indexOf("@") > 0)) { email.style.backgroundColor="white"; return true; }
	  	else { email.style.backgroundColor="red"; return false; } 	
	}
	else { return false; }
}