function inic() {
	kulsolinkek();
	if ($('nyomtathato_verzio')) {
		//$('nyomtathato_verzio').childNodes[0].onclick = function() { window.print(); return false; };
		$('nyomtathato_verzio').childNodes[0].target = '_blank';
	}
	if ($('cikk_tovabbkuldese')) {
		$('cikk_tovabbkuldese').childNodes[0].onclick = function() { window.open(this.href, 'ablak', 'width=350,height=270'); return false; };
	}
}

function kulsolinkek() {
	var ak = document.getElementsByTagName('a');
	for (var i = 0; i < ak.length; i++) {
		if (ak[i].className !== null && ak[i].className.indexOf('kulso') != -1) {
			ak[i].onclick = function() { window.open(this.href, 'kulso', ''); return false; };
		}
	}
}

function $(id) {
	return document.getElementById(id);
}

function hirkereso() {
	var inputok = $('hirkereso_form').getElementsByTagName('div')[0].getElementsByTagName('input');
	for (var i = 0; i < inputok.length; i++) {
		inputok[i].onclick = function() {
			if (this.value == '????' || this.value == 'HH' || this.value == 'NN') {
				this.eredeti = this.value;
				this.value = '';
			}
		};
		inputok[i].onblur = function() {
			if (this.value == '') {
				this.value = this.eredeti;
			}
		};
	}
}

function linkkereso() {
	var inputok = $('hirkereso_form').getElementsByTagName('div')[0].getElementsByTagName('input');	
	for (var i = 0; i < inputok.length; i++) {
		inputok[i].onblur = function() {
			if (this.value == '') {
				this.value = this.eredeti;
			}
		};
	}
}

function CheckKeyword(obj, msg)
{
	if(obj.q.value.length < 2)
	{
		alert(msg);
		return false;
	}
	else
	{
		return true;
	}
}
