var http = null;

if (window.XMLHttpRequest) {
   http = new XMLHttpRequest();
} else if (window.ActiveXObject) {
   http = new ActiveXObject("Microsoft.XMLHTTP");
}

function getDownloads(bookid) {
		
	if (http != null) {
	   
		http.open("GET", "/php/sidebar.php?show=downloads&id="+bookid, true);
	    http.onreadystatechange = ausgeben;
	    http.send(null);
	
	}
	
}

function ausgeben() {
   if (http.readyState == 4) {
	   document.getElementById("bottom").innerHTML = http.responseText;
  }
}
