function check()
{
var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    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;
        }
      }
    }
  	return xmlHttp;
}
///////////////////////////////////////
function pijlen(waarde)
 { 
  
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('aanwijzer').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
    xmlHttp.open("GET","ajaxsources/pijltjes.php?categorie="+waarde,true);
    xmlHttp.send(null);
  }
  ///////////////////////////////////////////////
 function fotolijst(cat, pag)
 { 
  
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('fotolist').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
    xmlHttp.open("GET","ajaxsources/thumblist.php?categorie="+cat+"&pag="+pag,true);
    xmlHttp.send(null);
  }
  
  ///////////////////////////////////////////
  function verwijderen(afb_id)
 { 
  
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('rechts').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
    xmlHttp.open("GET","ajaxsources/remove_update.php?del_id="+afb_id,true);
    xmlHttp.send(null);
  }
  
   function update_record(afb_id)
 { 
 
  
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('rechts').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
    xmlHttp.open("GET","ajaxsources/remove_update.php?upd_id="+afb_id,true);
    xmlHttp.send(null);
  }
  
  function screeninfo(value){
	  var xmlHttp = check();
    xmlHttp.open("GET","ajaxsources/bezoekers.php?width="+value,true);
    xmlHttp.send(null);
}

function bezoekers()
 { 
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('rechts').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
    xmlHttp.open("GET","ajaxsources/bezoekers.php",true);
    xmlHttp.send(null);
  }
  function bezoekersmenu()
 { 
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('navcontainer').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
    xmlHttp.open("GET","ajaxsources/bezoekersmenu.php",true);
    xmlHttp.send(null);
  }
function bezoekerstekst()
 { 
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('tekst').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
    xmlHttp.open("GET","ajaxsources/bezoekers.php?tekst=1",true);
    xmlHttp.send(null);
  }

