var xmlHttp
function showHint(url,tab)
{xmlHttp=GetXmlHttpObject()
function stateChanged()
{if(xmlHttp.readyState==4)
{document.getElementById(tab).style.display="";document.getElementById(tab).innerHTML=xmlHttp.responseText;}}
if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function showHintParent(url,tab)
{xmlHttp=GetXmlHttpObject()
function stateChanged1()
{if(xmlHttp.readyState==4)
{window.parent.document.getElementById(tab).innerHTML=xmlHttp.responseText;}}
if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged1;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function showHintMenu(url1,tab1,url2,tab2){xmlHttp=GetXmlHttpObject()
function stateChanged(){if(xmlHttp.readyState==4){document.getElementById(tab1).style.display="";document.getElementById(tab1).innerHTML=xmlHttp.responseText;showHint(url2,tab2);}}
if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url1,true);xmlHttp.send(null);}
function showHintMenuGrid(url1,tab1,url2,tab2,gcid){xmlHttp=GetXmlHttpObject()
function stateChanged(){if(xmlHttp.readyState==4){document.getElementById(tab1).style.display="";document.getElementById(tab1).innerHTML=xmlHttp.responseText;showHintGrid(url2,tab2,gcid);}}
if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url1,true);xmlHttp.send(null);}
function showHintGrid(url,tab,gcid)
{xmlHttp=GetXmlHttpObject()
function stateChanged(){if(xmlHttp.readyState==4){document.getElementById(tab).style.display="";document.getElementById(tab).innerHTML=xmlHttp.responseText;setgridsize(gcid);fejlecrepoz(gcid);}}
if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function showHintGridParent(url,tab,gcid){xmlHttp=GetXmlHttpObject()
function stateChanged(){if(xmlHttp.readyState==4){window.parent.document.getElementById(tab).style.display="";window.parent.document.getElementById(tab).innerHTML=xmlHttp.responseText;setgridsizeParent(gcid);}}
if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function showHintGridClose(url,tab,gcid){xmlHttp=GetXmlHttpObject()
function stateChanged(){if(xmlHttp.readyState==4){alert('1tab ='+tab+'  pid='+gcid+'  url='+url);document.getElementById(tab).style.display="";alert('2tab ='+tab+'  pid='+gcid+'  url='+url);document.getElementById(tab).innerHTML=xmlHttp.responseText;setgridsize(gcid);alert('3tab ='+tab+'  pid='+gcid+'  url='+url);close_window('new',1);}}
if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function showHintDel(url,tab,tid1,tid2){xmlHttp=GetXmlHttpObject()
function stateChanged(){if(xmlHttp.readyState==4){document.getElementById(tab).style.display="";document.getElementById(tab).innerHTML=xmlHttp.responseText;var dtid=tid2+document.getElementById(tid1).innerHTML;document.getElementById(dtid).style.display='';document.getElementById(dtid).style.visibility='visible';document.getElementById(dtid).height='645px;';}}
if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function showHintPost(url,params,tab)
{xmlHttp=GetXmlHttpObject()
function stateChanged()
{if(xmlHttp.readyState==4)
{document.getElementById(tab).style.display="";document.getElementById(tab).innerHTML=xmlHttp.responseText;}
else{document.getElementById(tab).innerHTML="Loading please wait...";}}
if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",params.length);xmlHttp.send(params);}
function HintPost(url,params)
{xmlHttp=GetXmlHttpObject()
if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",params.length);xmlHttp.send(params);}
function Hint(url)
{xmlHttp=GetXmlHttpObject()
function stateChanged1()
{}
if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=stateChanged1;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
var timeOutRefresh=false;function pf(){if(timeOutRefresh)
close_window('new',1);else
setTimeout('pf()',100);}
var attachments=new Array;var xmlHttpa;function ajaxsearch(url,div,pgid)
{var at=new Array;var obj=document.getElementById(div);aktindex=attachments.length;attachmentindex=attachments.length;xmlHttpa=GetXmlHttpObject()
function stateChanged1()
{if(xmlHttp.readyState==4)
{s=xmlHttpa.responseText;if(xmlHttpa.responseText!="0"){at=explode(";",s);for(i=0;i<at.length-1;i++){vane=0;for(k=0;k<attachments.length;k++){if(attachments[k]==at[i])
vane=1;}
if(vane==0){aktindex++;attachments[aktindex]=at[i];}}
if(attachments)
{for(j=attachmentindex;j<attachments.length;j++){if(attachments[j]){newDiv=document.createElement("OPTION");newDiv.innerHTML=attachments[j];newDiv.setAttribute("value",attachments[j]);newDiv.setAttribute("id",attachments[j]+"_"+pgid);obj.appendChild(newDiv);}}}
return true;}
return false;}}
if(xmlHttpa==null)
{alert("Your browser does not support AJAX!");return;}
xmlHttpa.onreadystatechange=stateChanged1;xmlHttpa.open("GET",url,true);xmlHttpa.send(null);}
function pausems(millis_)
{date=new Date();var curDate=null;do{var curDate=new Date();}
while(curDate-date<millis_);}
function holanc(id,kep,ev)
{document.getElementById(id).style.left=getMouseXY(ev).x+20+'px';var scrt=document.documentElement.scrollTop;if(0==scrt)
{scrt=document.body.scrollTop;}
var my=getMouseXY(ev).y-scrt;sy=screen.height;if(my+500>sy)
{k=(my+500)-sy;dy=my-k+scrt-100;}
else
{dy=my+scrt-100;}
if(dy<450)
dy=450;document.getElementById(id).style.top=dy+'px';showHint('modul/kep_felurgro/kep_felurgro.php?kep='+kep,id);}
function csodaholanc(id,kep,ev)
{document.getElementById(id).style.left=(getMouseXY(ev).x-420)+'px';var scrt=document.documentElement.scrollTop;if(0==scrt)
{scrt=document.body.scrollTop;}
var my=getMouseXY(ev).y-scrt;sy=screen.height;if(my+500>sy)
{k=(my+500)-sy;dy=my-k+scrt-100;}
else
{dy=my+scrt-100;}
if(dy<450)
dy=450;document.getElementById(id).style.top=dy+'px';showHint('modul/kep_felurgro/kep_felurgro.php?kep='+kep,'kep_felugro');}
