

var usid="";

function show(theid,usid){
    if (document.getElementById) {
    var tab_id = document.getElementById(usid);	
    var switch_id = document.getElementById(theid);
	/*document.write(switch_id);*/
    var switch_1 = document.getElementById("topics1");
    var switch_2 = document.getElementById("topics2");
    var switch_3 = document.getElementById("topics3");
    var switch_4 = document.getElementById("topics4");
    var switch_5 = document.getElementById("topics5");		
    var switch_6 = document.getElementById("topics6");
    var switch_7 = document.getElementById("topics7");
    var switch_8 = document.getElementById("topics8");
    var switch_9 = document.getElementById("topics9");
    var switch_10 = document.getElementById("topics10");		
    var switch_11 = document.getElementById("topics11");				
    var switch_12 = document.getElementById("topics12");				
    var switch_13 = document.getElementById("topics13");
	var switch_14 = document.getElementById("topics14");			
	var switch_15 = document.getElementById("topics15");			
	var switch_16 = document.getElementById("topics16");			
    var tab_1 = document.getElementById("usrp1");
    var tab_2 = document.getElementById("usrp2");
    var tab_3 = document.getElementById("usrp3");
    var tab_4 = document.getElementById("usrp4");
    var tab_5 = document.getElementById("usrp5");			
           tab_1.className = 'off';	
           tab_2.className = 'off';	
           tab_3.className = 'off';	
           tab_4.className = 'off';	
           tab_5.className = 'off';			   		   		   		   
           tab_id.className = 'on';	
           switch_1.className = 'hide';
           switch_2.className = 'hide';
           switch_3.className = 'hide';
           switch_4.className = 'hide';
           switch_5.className = 'hide';		   
           switch_6.className = 'hide';
           switch_7.className = 'hide';
           switch_8.className = 'hide';
           switch_9.className = 'hide';
           switch_10.className = 'hide';		   		   		      		
           switch_11.className = 'hide';				
           switch_12.className = 'hide';			      	   		
           switch_13.className = 'hide';
			switch_14.className = 'hide';		   		   
			switch_15.className = 'hide';		   		   
			switch_16.className = 'hide';		   		   
           switch_id.className = 'act';

    }
}

function showsub(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);
	/*document.write(switch_id);*/
    var switch_1 = document.getElementById("topics1");
    var switch_2 = document.getElementById("topics2");
    var switch_3 = document.getElementById("topics3");
    var switch_4 = document.getElementById("topics4");
    var switch_5 = document.getElementById("topics5");			
    var switch_6 = document.getElementById("topics6");
    var switch_7 = document.getElementById("topics7");
    var switch_8 = document.getElementById("topics8");
    var switch_9 = document.getElementById("topics9");
    var switch_10 = document.getElementById("topics10");		
    var switch_11 = document.getElementById("topics11");			
    var switch_12 = document.getElementById("topics12");				
    var switch_16 = document.getElementById("topics16");				
           switch_1.className = 'hide';
           switch_2.className = 'hide';
           switch_3.className = 'hide';
           switch_4.className = 'hide';
           switch_5.className = 'hide';		   			
           switch_6.className = 'hide';
           switch_7.className = 'hide';
           switch_8.className = 'hide';
           switch_9.className = 'hide';
           switch_10.className = 'hide';		   		   		      		
           switch_11.className = 'hide';		   		   
           switch_12.className = 'hide';		   		   
           switch_16.className = 'hide';		   		   
           switch_id.className = 'act';
    }
}

menu_status = new Array();

function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);
        if(menu_status[theid] != 'act') {
           switch_id.className = 'act';
           menu_status[theid] = 'act';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}


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

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_hirlevel.email.value==' e-mail cím...')
   	document.forms.frm_hirlevel.email.value='';
} 

function do_search(){
  	valid = true;
  	if (document.forms.frm_search.edt_search.value==' Keresés...' || document.forms.frm_search.edt_search.value==''){ 
    	alert("Kérjük, adja meg a keresett szót, kifejezést!");
		valid = false;
   	}
  	return valid;
}
  
function do_reg(){
  	valid = true; 
  	if (document.forms.frm_hirlevel.email.value==' e-mail cím...' || document.forms.frm_hirlevel.email.value==''){
    	alert("Kérjük, adja meg e-mail címét!");
		valid = false;
  	}
  	return valid;   
}

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 clearinput(){
document.getElementById("edt_search").value="";
}

