
var url = ""; // The server-side script
var shows ="" ;
function handleHttpResponse() {	
if (http.readyState != 4) {
document.body.style.cursor = "wait";
document.getElementById(shows).innerHTML = "<b style=\"position:relative; top:5px;\">Mailing list</b><br>Loading...";
}
if (http.readyState == 4) {
		if(http.status==200) {
		var results=http.responseText;
		
		document.getElementById(shows).innerHTML = results;
		document.body.style.cursor = "default";
		}
		if(http.status!=200) {
		var results=http.responseText;
		
		document.getElementById(shows).innerHTML = 'Not done';
		document.body.style.cursor = "default";
		}
		
	}
}
		
function requestCallback(id,show,url) {   

shows = show;
	http.open("get", url+".php?"+id, true);
	http.onreadystatechange = handleHttpResponse;
	http.send(null);
	
}
		
function getHTTPObject() {
var xmlhttp; 
	if(window.XMLHttpRequest){
	xmlhttp = new XMLHttpRequest();
	}
  else if (window.ActiveXObject){
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	if (!xmlhttp){
	xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
	}
}
  return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object