var xmlHttp

function showResult3(invoer)
{
str=invoer.str
persoon=invoer.persoon
partij=invoer.partij
zoekterm=invoer.zoekterm

if (str.length==0)
{ 
document.getElementById("livesearch3").
innerHTML="";
document.getElementById("livesearch3").
style.border="0px";
return
}
xmlHttp=GetXmlHttpObject3()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="livesearchMinisterie.php"
url=url+"?q="+str
url=url+"&"+persoon
url=url+"&"+partij
url=url+"&zoekterm="+zoekterm
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged3 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 

function stateChanged3() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("livesearch3").
innerHTML=xmlHttp.responseText;
document.getElementById("livesearch3").
style.border="1px solid #A5ACB2";
} 
}

function GetXmlHttpObject3()
{
  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;
}
