function changeStyleClass(obj,newClass)
{if(typeof obj.className!='undefined'){obj.className=newClass;return true;}else{return false;}}
function show_menu(id){for(i=1;i<10;i++)
{ob=document.getElementById('menu_'+i);if(ob){ob.style.display='none';}}
ob=document.getElementById(id);if(ob){ob.style.display='block';}}
function hide_menu(id){ob=document.getElementById(id);if(ob){ob.style.display='none';}}
function checkempty()
{ob=document.getElementById('SB_SortBox_s_freeloc');if(ob.value)
{return true;}
else
{alert('A mentéshez adjon egy nevet a keresésnek');return false;}}
function popup(obj)
{ob=document.getElementById(obj);if(ob)
ob.style.display='block';}
function pulldown(obj)
{ob=document.getElementById(obj);if(ob)
ob.style.display='none';}
function advpost(target)
{get=0;target=target.replace(/ /g,'_');var search_prefix_regex=new RegExp(search_prefix,"i");if(!target.match(search_prefix_regex)){target=search_prefix+target;}
ob=document.getElementById('SB_sbname');if(ob){if(ob.value&&(ob.value!=name_pelda)){target=target+'/name_'+(ob.value);}}
ob=document.getElementById('SB_sbkw');if(ob){if(ob.value&&(ob.value!=keyword_pelda)){radio=document.getElementById('kwSearchInName');if(radio&&radio.checked){target=target+'/name_'+(ob.value);}else{target=target+'?frm_search_desc='+(ob.value);get=1;}}}
ob=document.getElementById('SB_s_freeloc');if(ob){if(ob.value&&(ob.value!=varos_pelda)){if(get){target=target+'&frm_search_workplace='+(ob.value);}else{target=target+'?frm_search_workplace='+(ob.value);}}}
target='/'+target.replace(/#/g,escape('#'));target=target.replace(/\/+/,"/");location.href=target.replace(/\/\//g,'/');}
function my_confirm(){return confirm("Biztos benne?");}
function l(url){window.location=url;}
function wopen(url){win=window.open(url,'newwin');}
function myPopUp(url,width,height,name){var open_args="toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0, resizable=1,width="+width+",height="+height;var ablak=window.open(url,name,open_args);ablak.moveTo((screen.availWidth-width)/2,(screen.availHeight-height)/2);ablak.focus();return false;}
function myPopUp2(url,width,height,name){var open_args="toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0, resizable=0,width="+width+",height="+height;var ablak=window.open(url,name,open_args);ablak.moveTo((screen.availWidth-width)/2,(screen.availHeight-height)/2);ablak.focus();}
function copyclipboard(value){window.clipboardData.setData('Text',value);}
function CheckEmpty(val){len=val.length;i=0;for(position=0;position<len;position++){if(val.charAt(position)!=' '&&val.charAt(position)!='\t'&&val.charAt(position)!='\n'){i++;}}
return i;}
function userFormAutoAdvance(current,next){var ez=document.getElementById(current);if(ez){if(ez.value.length==ez.maxLength){var kov=document.getElementById(next);if(kov){kov.focus();}}}}
var act=new Array();var max=new Array();function shownext(source_id,hir,desc,img,act,max){act[source_id]=(act[source_id]+1)%max[source_id];document.getElementById('hirtitle_'+source_id).innerHTML=hir[act[source_id]];document.getElementById('hirdesc_'+source_id).innerHTML=desc[act[source_id]];if(img[act[source_id]]){document.getElementById('hirimage_'+source_id).src=img[act[source_id]];document.getElementById('hirimage_'+source_id).style.display='block';}else{document.getElementById('hirimage_'+source_id).style.display='none';}}
function showprev(source_id,hir,desc,img,act,max){act[source_id]=(max[source_id]+act[source_id]-1)%max[source_id];document.getElementById('hirtitle_'+source_id).innerHTML=hir[act[source_id]];document.getElementById('hirdesc_'+source_id).innerHTML=desc[act[source_id]];if(img[act[source_id]]){document.getElementById('hirimage_'+source_id).src=img[act[source_id]];document.getElementById('hirimage_'+source_id).style.display='block';}else{document.getElementById('hirimage_'+source_id).style.display='none';}}
var keyword_pelda="pl. Értékesítő";var name_pelda="pl. Értékesítő";var varos_pelda="pl. Budapest, Gödöllő, Kerepes";function kereso_input_pelda_focus(id,pl){elem=document.getElementById(id);elem.style.color="";if(elem.value==pl){elem.value="";}}
function kereso_input_pelda_blur(id,pl){elem=document.getElementById(id,pl);if(elem.value==""){elem.style.color="#CCCCCC";elem.value=pl;}}
function changeOpac(opacity,id){var object=document.getElementById(id);object.style.opacity=(opacity/100)-0.001;object.style.filter="alpha(opacity="+opacity+")";if(opacity<1){object.style.display="none";}else if(opacity<3){object.style.display="block";}}
function opacity(id,opacStart,opacEnd,millisec){step=1;var speed=Math.round(millisec/(100/step));var timer=0;if(opacStart>opacEnd){for(i=opacStart;i>=opacEnd;i=i-step){window.setTimeout("changeOpac("+i+",'"+id+"')",(timer*speed));timer++;}}else if(opacStart<opacEnd){for(i=opacStart;i<=opacEnd;i=i+step)
{window.setTimeout("changeOpac("+i+",'"+id+"')",(timer*speed));timer++;}}}
function show_image(fadein){fadein=400;document.getElementById('image_overlay_background').style.display="block";document.getElementById('image_overlay').style.display="block";}
function show_overlay(img_src){document.getElementById('image_overlay_image').onload=show_image;document.getElementById('image_overlay_image').src=img_src;}
function hide_overlay(){fadeout=400;document.getElementById('image_overlay_background').style.display="none";document.getElementById('image_overlay').style.display="none";}
function hideFlash(){document.getElementById('flash_overlay_background').style.display="none";document.getElementById('flash_overlay').style.display="none";document.getElementById('banner-layer').style.display="none";}
function equalize(){if(document.getElementById('frm_equal').checked){frm_invoice_zipcode=document.getElementById('frm_invoice_zipcode');frm_invoice_city=document.getElementById('frm_invoice_city');frm_invoice_street=document.getElementById('frm_invoice_street');frm_zipcode=document.getElementById('frm_zipcode');frm_city=document.getElementById('frm_city');frm_street=document.getElementById('frm_street');frm_zipcode.value=frm_invoice_zipcode.value;frm_city.value=frm_invoice_city.value;frm_street.value=frm_invoice_street.value;frm_zipcode.disabled=true;frm_city.disabled=true;frm_street.disabled=true;}}
function unequalize(){frm_invoice_zipcode=document.getElementById('frm_invoice_zipcode');frm_invoice_city=document.getElementById('frm_invoice_city');frm_invoice_street=document.getElementById('frm_invoice_street');frm_zipcode=document.getElementById('frm_zipcode');frm_city=document.getElementById('frm_city');frm_street=document.getElementById('frm_street');frm_zipcode.disabled=false;frm_city.disabled=false;frm_street.disabled=false;if(frm_zipcode.value==frm_invoice_zipcode.value){frm_zipcode.value='';}
if(frm_city.value==frm_invoice_city.value){frm_city.value='';}
if(frm_street.value==frm_invoice_street.value){frm_street.value='';}}
function equalize_email(){frm_email=document.getElementById('frm_email');frm_contact_email=document.getElementById('frm_contact_email');frm_notice_email=document.getElementById('frm_notice_email');frm_contact_email.value=frm_email.value;frm_notice_email.value=frm_email.value;}
function close_toll(){if(navigator.userAgent.match('MSIE')){document.getElementById('toll_flash').style.display='none';}else{opacity("toll_flash",100,0,500);}
setCookie("nemkelltoll",1,365,"/");};function feliratkozasra(x){_gaq.push(['_trackEvent','Feliratkozó kampány','Flash-re kattintás',x]);location.href='/allaskereso_regisztracio';setCookie("nemkelltoll",1,365,"/");}
function setCookie(name,value,expiredays,path,domain,secure){if(expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);}
document.cookie=name+"="+escape(value)+
((expiredays)?"; expires="+exdate.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");}
function getCookie(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else{begin+=2;}
var end=document.cookie.indexOf(";",begin);if(end==-1){end=dc.length;}
return unescape(dc.substring(begin+prefix.length,end));}
function deleteCookie(name,path,domain){if(getCookie(name)){document.cookie=name+"="+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}};function ajaxfunction(url,t)
{var xmlHttp;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{alert("Your browser does not support AJAX!");return false;}}}
xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4)
{document.getElementById(t).innerHTML=xmlHttp.responseText;}}
var rn=Math.floor(Math.random()*1000000);xmlHttp.open("GET",url,true);xmlHttp.send(null);};function embededflash(azonosito,fajlnev,meret_x,meret_y,hatter,valtozok){document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+meret_x+'" height="'+meret_y+'" id="'+azonosito+'" align="middle" />');document.write('<param name="allowScriptAccess" value="sameDomain" />');document.write('<param name="movie" value="'+fajlnev+'" />');document.write('<param name="FlashVars" value="'+valtozok+'" />');document.write('<param name="quality" value="high" />');document.write('<param name="bgcolor" value="'+hatter+'" />');document.write('<param name="menu" value="false" />');document.write('<embed src="'+fajlnev+'" FlashVars="'+valtozok+'" width="'+meret_x+'" height="'+meret_y+'" align="middle" quality="high" bgcolor="'+hatter+'" menu="false" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');}