function linkAlahuz(obj, esemeny, id){
	switch (esemeny){
		case 'over':
			obj.style.textDecoration='underline';
			break;
		case 'out':
			obj.style.textDecoration='none';
			break;
		case 'down':
			obj.style.textDecoration='none';
			break;
	}
}
function linkAlahuzOut(obj, esemeny, id){
	switch (esemeny){
		case 'over':
			obj.style.textDecoration='none';
			break;
		case 'out':
			obj.style.textDecoration='underline';
			break;
		case 'down':
			obj.style.textDecoration='underline';
			break;
	}
}
function fomenuEsemeny(obj, esemeny, id){
	switch (esemeny){
		case 'over':
			document.getElementById('tr'+id).style.backgroundColor='#A22A34';
			document.getElementById('negyzet'+id).className='menu_negyzet_feher';
			obj.className = 'bal_menu_cim_feher';
			break;
		case 'out':
			document.getElementById('tr'+id).style.backgroundColor='';
			document.getElementById('negyzet'+id).className='menu_negyzet_bordo';
			obj.className = 'bal_menu_cim';
			break;
	}
}
function alsoMenuEsemeny(obj, esemeny, id){
	switch (esemeny){
		case 'over':
			document.getElementById(id).style.backgroundColor='#58181E'; 
			break;
		case 'out':
			document.getElementById(id).style.backgroundColor=''; 
			break;
	}
}
function statusKijelzo(str){
	window.status=str;
}
function check() {
	 if (document.kgfb.uztulazonos.value==0) {
		document.kgfb.uztulazonos.style.backgroundColor='#7F2329';
		document.kgfb.uztulazonos.style.color='#FFFFFF';
		document.kgfb.uztulazonos.focus();
		alert ("Kérjük adja meg, hogy a tulajdonos és az üzembentartó azonos személy-e!");
		return false;
	 }

	if (document.kgfb.gyartasiev.value=='' || document.kgfb.gyartasiev.value.length < 4 || isNaN(document.kgfb.gyartasiev.value)) {
		document.kgfb.gyartasiev.style.backgroundColor='#7F2329';
		document.kgfb.gyartasiev.style.color='#FFFFFF';
		document.kgfb.gyartasiev.focus();
		alert ("Kérjük adja meg a gépjármű gyártási évét!");
		
		return false;
	 }
}
function fogombSzinez ( td_id, td_bg, link_id, link_color ) {
	document.getElementById(td_id).style.backgroundColor = td_bg; 
	document.getElementById(link_id).style.color = link_color;
}
