var xmlHttp;

function spotlightdisplay(progression)
{
  if (progression=="prev") { currentspotlight = prev;}
  if (progression=="next") { currentspotlight = next;}
  xmlHttp=GetXmlHttpObject();
  if (xmlHttp==null) { return; } 
  xmlHttp.onreadystatechange=spotlightinfo;
  xmlHttp.open('POST','spotlights/_spotlights.asp',true);
  var content_type = 'application/x-www-form-urlencoded';
	xmlHttp.setRequestHeader('Content-Type', content_type);
  xmlHttp.send('spotlight=' + currentspotlight);
  prev = currentspotlight - 1;
  next = currentspotlight + 1;
}

function spotlightinfo() 
{ 
  if (xmlHttp.readyState==4) 
  { 
  document.getElementById('spotlighttext').innerHTML= xmlHttp.responseText;
  }
}

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try { xmlHttp=new XMLHttpRequest(); }
  catch (e) { try { xmlHttp=new ActiveXObject('Msxml2.XMLHTTP'); }
  catch (e) { xmlHttp=new ActiveXObject('Microsoft.XMLHTTP'); } }
  return xmlHttp;
}