var xmlHttp

function toonOpmaak()
{
str=document.getElementById("in1").value
if (str.length==0)
 {
 document.getElementById("uit3").
 innerHTML="";
 return
 }
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }

var url="includes/ajax.php"
url=url+"?i="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=opmaakVeranderd
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function opmaakVeranderd()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
 document.getElementById("uit3").innerHTML=xmlHttp.responseText;
 }
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}






function toonTaal(str)
{
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="includes/ajax.php"
var opdracht_array=str.split("||");
var loc=opdracht_array[0];
url=url+"?q="+opdracht_array[1];
url=url+"&sid="+Math.random()
if (loc=="index")
{
xmlHttp.onreadystatechange=veranderTaal
}
if (loc=="about")
{
xmlHttp.onreadystatechange=verander_Taal
}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function veranderTaal()
{
var taal_array
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
 taal_array=xmlHttp.responseText.split("||");
 document.getElementById("par_links").innerHTML=taal_array[0];
 document.getElementById("par_rechts").innerHTML=taal_array[1];
 }
}

function verander_Taal()
{
var taal_array
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
 taal_array=xmlHttp.responseText.split("||");
 document.getElementById("_par_links").innerHTML=taal_array[2];
 document.getElementById("_par_rechts").innerHTML=taal_array[3];
 document.getElementById("citaat").innerHTML=taal_array[4];
 }
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 // Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

