function VT_GetObj(ojject)
  {
  return ((document.getElementById) ? document.getElementById(ojject) : eval("document.all[" + ojject + "]"));
  }
  
var AjaxDestination = '';
  
function AjaxLoader(command,dest)
  {
  AjaxDestination = dest;
  try 
    { 
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest() :	new ActiveXObject("Microsoft.XMLHTTP"); 
    } 
	catch (e) { } 
	xmlhttp.onreadystatechange = AjaxUser; 
	if (command.indexOf('?') == -1)
    {
    command = command + "?"
    }
  else
    {
    command = command + "&";
    }
	
	command = command + "rnd="+(Math.random()*99999);
  xmlhttp.open("GET", command);
  xmlhttp.send(null); 	
  }
  
  
function AjaxUser()
  {
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) 
    { 
		VT_GetObj(AjaxDestination).innerHTML = xmlhttp.responseText; 
		} 
  }
  
function ImageLoader(url,nyelv,section,imageid,dest)
  {
  var command = url + '/' + nyelv + '/image/' + section + '/' + imageid + '.jpg';
  AjaxLoader(command,dest);
  }
  
  
 function ButtonLoader(url,nyelv,insname,dest)
  {
  var command = url + '/' + nyelv + '/button/' + insname + '/button.php';
  AjaxLoader(command,dest);
  }
 
 
function SubMenuLoader(url,nyelv,menuname,dest,exec)
  {
  var command = url + '/' + nyelv + '/menu/' + menuname + '/' + exec + '.php';
  AjaxLoader(command,dest);
  }
  
function ImageOptionLoader(url,nyelv,section,imageid,destname2,formname,idname,destname)
  {
  var command = url + '/' + nyelv + '/imageoption/ajax.php?szekcio=' + section + '&formname=' + formname + '&idname=' + idname + '&destname=' + destname2 + '&destname2=' + destname + '&imageid=' + imageid;
  //alert(destname + ' = ' + command);
  AjaxLoader(command,destname);
  }

function addBookmark(title,url) 
{
  if (window.sidebar)
  { 
    window.sidebar.addPanel(title, url,""); 
  }
  else if( document.all ) 
  {
    window.external.AddFavorite( url, title);
  } 
  else if( window.opera && window.print )
  {
   return true;
  }
}
 