var xmlHttp

function showTitle(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="http://www.suriplein.com/portal/gettitle.php"
url=url+"?title="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedTitle
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function showRegel1(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="http://www.suriplein.com/portal/regel1.php"
url=url+"?title="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedRegel1
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function showRegel2(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="http://www.suriplein.com/portal/regel2.php"
url=url+"?regel2="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedRegel2
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function showAdres(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 } 
var url="http://www.suriplein.com/portal/adres.php"
url=url+"?adres="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedAdres
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChangedAdres() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("adres").innerHTML=xmlHttp.responseText 
 } 
}
function stateChangedRegel2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("regel2").innerHTML=xmlHttp.responseText 
 } 
}
function stateChangedRegel1() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("regel1").innerHTML=xmlHttp.responseText 
 } 
}
function stateChangedTitle() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("title").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;
}