var ajaxdestination="";

function getdata(what,where) { 
 try {
   xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where).innerHTML ='<div style="text-align: center; padding-top: 200px;"><img src="http://www.mein-sonntag.de/bilder/seite/popuploader.gif" alt=""></div>';
 ajaxdestination=where;
 xmlhttp.onreadystatechange = triggered; 
 xmlhttp.open("GET", what);
 xmlhttp.send(null);
  return false;
}

function triggered() {
  if (xmlhttp.readyState == 4) if (xmlhttp.status == 200) 
    document.getElementById(ajaxdestination).innerHTML =xmlhttp.responseText;
}



