function display_block(block_id, szum){
	for(i=1; i<=szum; i++){
		var torol=document.getElementById('termek_'+i);
		torol.style.display="none";
	}
	
	var x=document.getElementById(block_id);
	x.style.display="block";
}

function ujablak(w, h, u, p, c, s)
{
 most = new Date();
 x = (screen.availWidth - 12 - w) / 2;
 y = (screen.availHeight + 20 - h) / 2;
 window.open(u + p, c, "width=" + w + ",height=" + h + ",status=1,left=" + x + ",top=" + y + ",menubar=no,resizable=no,location=no,toolbar=no,directories=no,scrollbars=" + s);
}

function hirlevel_ellenoriz()
{
 var text=document.frm_hirlevel.email.value;

   if (text.indexOf('@') == -1)
   {
     alert('Az e-mail cím nem helyes. Kérjem, adja meg pontosan e-mail címét.');
     document.frm_hirlevel.email.focus();
     document.frm_hirlevel.email.select();
     return false;
   }
   if (text.indexOf('.') == -1)
   {
     alert('Az e-mail cím nem helyes. Kérjem, adja meg pontosan e-mail címét.');

     document.frm_hirlevel.email.focus();
     document.frm_hirlevel.email.select();
     return false;
   }    
   if ((text.length-text.lastIndexOf('.'))>4 || (text.length-text.lastIndexOf('.'))<2)
   {
     alert('Az e-mail cím nem helyes. Kérjem, adja meg pontosan e-mail címét.');
     document.frm_hirlevel.email.focus();
     document.frm_hirlevel.email.select();
     return false;
   }   
   if (text.indexOf('.')==text.indexOf('@')+1)
   {
     alert('Az e-mail cím nem helyes. Kérjem, adja meg pontosan e-mail címét.');
     document.frm_hirlevel.email.focus();
     document.frm_hirlevel.email.select();
     return false;
   }
   return  document.frm_hirlevel.submit();
} 