function getAJAX(){
   var xmlHttp=(typeof(XMLHttpRequest)!="undefined") ? new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP");
   xmlHttp=(typeof(xmlHttp)=="undefined")? new ActiveXObject("Microsoft.XMLHTTP") : xmlHttp;
   return xmlHttp;
}

function AjaxLink(url,div,loading) {
   var req=getAJAX();
   var tartalom=document.getElementById(div);
   if (loading) tartalom.innerHTML="<i>"+loading+"</i>";
   req.onreadystatechange=function(){
      if (req.readyState==4){
		tartalom.innerHTML=req.responseText;
		eval(CB_Init());
	  }
   }
   req.open("GET",url,true);
   req.send(null);
}

function copy_data(from, to) {
	document.getElementById(to).value=document.getElementById(from).value
}
