
<!--
    function openWin( windowURL, windowName, windowFeatures ) { 
        return window.open( windowURL, windowName, windowFeatures ) ; 
    } 
// -->



function Highlight(tableCellRef, hoverFlag)
 {
  if ( hoverFlag )
   {
    tableCellRef.style.backgroundColor = '#B0B79C';
   } 
    else
   {
    tableCellRef.style.backgroundColor = '#959583';
   }
 }
 
function Highlight_feature(tableCellRef, hoverFlag)
 {
  if ( hoverFlag )
   {
    tableCellRef.style.backgroundColor = '#9198AE';
   } 
    else
   {
    tableCellRef.style.backgroundColor = '#5E6C89';
   }
 } 
 
function Highlight_new(tableCellRef, hoverFlag)
 {
  if ( hoverFlag )
   {
    tableCellRef.style.backgroundColor = '#F1B25F';
   } 
    else
   {
    tableCellRef.style.backgroundColor = '#EB8E16';
   }
 } 
 
 function Highlight_hrportal(tableCellRef, hoverFlag)
 {
  if ( hoverFlag )
   {
    tableCellRef.style.backgroundColor = '#A6ADC4';
   } 
    else
   {
    tableCellRef.style.backgroundColor = '#7886A4';
   }
 } 
 
function Highlight_active(tableCellRef, hoverFlag)
 {
  if ( hoverFlag )
   {
    tableCellRef.style.backgroundColor = '#B0B79C';
   } 
    else
   {
    tableCellRef.style.backgroundColor = '#767669';
   }
 }
 
function edt_search_onClick()
 {
  if (document.forms.frm_search.edt_search.value=='<?=$search_default?>')
   document.forms.frm_search.edt_search.value='';
 }

function edt_reg_onClick()
 {
  if (document.forms.frm_reg.edt_reg.value=='e-mail cím...')
   document.forms.frm_reg.edt_reg.value='';
 } 

function horizontal_menu_about_us_over(active)
 {
  if (active=='')
   document.horizontal_menu_about_us.src='images/horizontal_menu_about_us_hover2.gif';
 } 
 
function horizontal_menu_about_us_out(active)
 {
  if (active=='') 
   document.horizontal_menu_about_us.src='images/horizontal_menu_about_us2.gif';
 }  
 
function horizontal_menu_contact_over(active)
 {
  if (active=='')
   document.horizontal_menu_contact.src='images/horizontal_menu_contact_hover2.gif';
 } 
 
function horizontal_menu_contact_out(active)
 {
  if (active=='') 
   document.horizontal_menu_contact.src='images/horizontal_menu_contact2.gif';
 }   
 
function horizontal_menu_button_over()
 {
   document.horizontal_menu_button.src='images/horizontal_menu_button_active2.gif';
 }   
 
function horizontal_menu_button_out()
 {
   document.horizontal_menu_button.src='images/horizontal_menu_button2.gif';
 }  
 

function do_search()
 {
  var f=document.forms.frm_search;
  if (f.edt_search.value=='Keresés...' || document.forms.frm_search.edt_search.value=='')
   alert("Kérjük adja meg a keresett szót!");
  else
   {
    if (f.edt_search_where.value=='articles' || f.edt_search_where.value=='eszkoztar' || f.edt_search_where.value=='acro' || f.edt_search_where.value=='feor')
     {
      f.target='_blank';
      f.action='http://www.hrportal.hu/index.phtml';
      f.page.value='search';
     }
      else
     {
      f.target='_self';
      f.action='index.phtml';
      f.page.value='katalogus_szolgaltatas';
     }
    f.submit();
   }
 }


var hlc=0;
var hlc2=0;
var elc=0;
var a_s=0;
var txt="";
var elol="";
var hatul="";

function gmc()
{
		elol=szoveg[a_s].substring(0,elc);
		hatul=szoveg[a_s].substring(elc,hlc2);
                
                txt=elol;
                if (document.all)
                {
                 txt+='<span class="felsocsikgray">'+hatul+'</span></a>';
                }
            }

function sht() {
		if (document.all) document.all.hottext.href=url[a_s];
        if (hlc<=szoveg[a_s].length-1) {
                        hlc++;elc=hlc-1;hlc2=szoveg[a_s].length-1;
                        if (elc<0) {elc=0;}
                        
                gmc();
                        
                        
                
                if (document.getElementById("hottext"))
                {
                 var element = document.getElementById("hottext");
                 element.innerHTML=txt;
                 var tk=setTimeout("sht()", 30);
                }

        }
        else {
                clearTimeout(tk);
                var tk=setTimeout("cm()", 4000);
        }
}

function cm() {
        hlc=0;elc=0;
        a_s++;
        if (a_s>szoveg.length-1) {a_s=0 }
        sht();
}


var zoneid=0;
function addhbanner(zoneid){
 var m3_u = (location.protocol=='https:'?'https://hrportal.hu/hik/www/delivery/ajs.php':'http://hrportal.hu/hik/www/delivery/ajs.php');
	var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<script type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=" + zoneid);
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'></script>");
   

}
function do_reg()
  {
   var f=document.forms.frm_reg;
   if (f.edt_nev.value=="" || f.edt_cegnev.value=="" || f.edt_email.value=="")
    {
     alert("Nincs kitöltve az összes kötelező mező!");
    }
   else
    {
     if (checkEmail(f.edt_email.value))
      {
       f.submit();
      }
       else
      {
       alert("Helytelen e-mail formátum!");
      }
    }
  }
  
function checkEmail(emailstr)
 {
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(emailstr))
   {
    return (true)
   }
  return (false)
 }     

 function do_addevent(){
 var f=document.forms.frm_addev;
  	if (f.edt_email.value=='e-mail cím...' || f.edt_email.value==''){
    	alert("Kérjük, adja meg e-mail címét!");
	}	
	else{
		f.submit();
	}	
 	
}