var xmlHttp

function filterActiveEvents(ioption,ioption2)
{
xmlHttp=GetXmlHttpObject2();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="inc_activeevents.asp";
url=url+"?iopt="+ioption;
url=url+"&iopt2="+ioption2;
url=url+"&sid="+Math.random();

xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 

function stateChanged2() 
{ 
if (xmlHttp.readyState==4) { 
	document.getElementById("active").innerHTML=xmlHttp.responseText;
}
else {
	updatepage2("<img src=\'./images/processing.gif\' hspace='350' vspace='25'><br clear='all'><img src=\'./images/point.gif\' width='1' height='478' border='0'><br clear='all'>","active");
	}
}

function GetXmlHttpObject2()
{
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;
}
function updatepage2(str,responsediv){
    document.getElementById(responsediv).innerHTML = str;
}


