var xmlHttp
function add(member,showid)
 { 
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
 var url="../../../add.php";
 url=url+"?member="+member+"&showid="+showid;
 url=url+"&sid="+Math.random();
 xmlHttp.onreadystatechange = function () { shows (); };
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
 }

function shows() 
 { 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
  { 
  document.getElementById("attend").innerHTML=xmlHttp.responseText
  } 
 }
 
function thumb(vote,revid)
 { 
 xmlHttp=GetXmlHttpObject();
 if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
 var url="../../../thumb.php";
 url=url+"?revid="+revid+"&vote="+vote;
 url=url+"&sid="+Math.random();
 xmlHttp.onreadystatechange = function () { votes (revid); };
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
 }

function votes(revid) 
 { 
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
  { 
  document.getElementById("rev"+revid).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;
}
