<!--
	var error = "Hibás adatokat adott meg, vagy néhány mező kitöltetlen maradt!\n\n";
	
	function teszt(adat,minta)
	{
		for (var i=0; i<adat.length; i++)
			if (minta.indexOf(adat.charAt(i)) == -1) return false;
		return true;
	}
	function tartalmaz(adat,minta)
	{
		for (var i=0; i<adat.length; i++)
			if (minta.indexOf(adat.charAt(i)) != -1) return true;
		return false;
	}
	function numcheck(mezo)
	{
		if (!teszt(mezo.value,"1234567890")) return false;
		return true;
	}
	function telefoncheck(mezo)
	{
		if (mezo.value.length != 0)
		{
			if (!teszt(mezo.value,"1234567890()/-+ ") || !tartalmaz(mezo.value,"1234567890"))
			{
				return false;
			}
			else return true;
		}
	}
	function emailcheck(mezo)
	{
		var szoveg = mezo.value;
		if (!(tartalmaz(szoveg,'@') && szoveg.indexOf('@')<szoveg.length-5 && szoveg.indexOf('@')>=2) || !(tartalmaz(szoveg,'.') && szoveg.indexOf('.')<szoveg.length-2))
		{
			return false;
		}
		else return true;
	}
	function radiochecked (radioButtonOrGroup) {
		if (radioButtonOrGroup.length) {
			for (var i=0; i < radioButtonOrGroup.length; i++)
			if (radioButtonOrGroup[i].checked) return true;
		}
		else if (radioButtonOrGroup.checked) return true;
		return false;
	}

// -->

function show(e) {

  document.getElementById(e).style.display = 'block';

  if (navigator.appName.indexOf("Microsoft")==-1) {
	document.getElementById('popupBase').style.height = window.height;
  }

  if (document.getElementById('talalatdb'))
  {
	  document.getElementById('talalatdb').style.display = 'none';
  }
  if (document.getElementById('allnyom'))
  {
	  document.getElementById('allnyom').style.display = 'none';
      document.getElementById('ajanlat').style.display = 'none';
  }
  

}

function hide(e) {

  document.getElementById(e).style.display = 'none';
  document.getElementById('popupBase').style.display = 'none';

  if (document.getElementById('talalatdb'))
  {
	  document.getElementById('talalatdb').style.display = 'block';
  }
  if (document.getElementById('allnyom'))
  {
	  document.getElementById('allnyom').style.display = 'block';
      document.getElementById('ajanlat').style.display = 'block';
  }

}
