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 gotIsh(ish){
	
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('case_titel').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
	xmlHttp.open("GET","includes/info.php?ding="+ish,true);
	  
    xmlHttp.send(null);
  }
  
  
/*function gotcIsh(ish){
	
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('content_text').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
	xmlHttp.open("GET","includes/cinfo.php?ding="+ish,true);
	  
    xmlHttp.send(null);
  }*/
  
  
function navimg(ish){
	
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('nav_img').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
	xmlHttp.open("GET","includes/navimg.php?id="+ish,true);
	  
    xmlHttp.send(null);
  }
  
  
function moreIsh(ish){
	
var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('content_text').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
	xmlHttp.open("GET","includes/more.php?ding="+ish,true);
	  
    xmlHttp.send(null);
  }
  


function vwInfo(id){
	
	var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('vwReplacer').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
	xmlHttp.open("GET","includes/vw_info.php?id="+id,true);
	  
	xmlHttp.send(null);
}

function caseInfo(id){
	
	var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('case_inhoud').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
	xmlHttp.open("GET","includes/more.php?id="+id,true);
	  
	xmlHttp.send(null);
}


function setMedia(id){
	
	var xmlHttp = check();

    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
       document.getElementById('media_set').innerHTML=xmlHttp.responseText;
	   
        }
      }
	  
	xmlHttp.open("GET","includes/set_media.php?id="+id,true);
	  
	xmlHttp.send(null);
}
