var xmlHttp
function shoutbox(){
xmlHttp=GetXmlHttpObjekt()
if (xmlHttp==null){
  alert ("Browser does not support HTTP Request")
  exit
}
  var url="shoutbox.php"
  url=url+"?hack="+Math.random()
  xmlHttp.onreadystatechange=statusaendern
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null)
  setTimeout("shoutbox()", 3000);
}

function statusaendern(){
  if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
    document.getElementById("shoutboxtxt").innerHTML=xmlHttp.responseText;
    document.getElementById("shoutboxtxt").value = xmlHttp.responseText;
  }
}

function GetXmlHttpObjekt(){
  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;
}



