function selectday(selectedday)
{
  document.all.eventslist.innerHTML="<div align=center><br><img src='/images/loading.gif'><br><br>Finding Events</div>"
  xmlHttp=ajaxinit();
	xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
			 setTimeout("document.all.eventslist.innerHTML=xmlHttp.responseText", 750)
			 //document.all.eventslist.innerHTML=xmlHttp.responseText
      }
    }
  xmlHttp.open("GET","/modules/events/ajax/eventlist.php?refresh=<?php echo time()?>&selectedday="+selectedday,true);
  xmlHttp.send(null);
}

function selectmonth(selectedmonth)
{
  document.all.calendarcontainer.innerHTML="<div align=center><br><img src='/images/loading.gif'><br><br>Finding Calendar</div>"
  xmlHttp2=ajaxinit();
	
	xmlHttp2.onreadystatechange=function()
    {
    if(xmlHttp2.readyState==4)
      {
			 //setTimeout("document.all.calendarcontainer.innerHTML=xmlHttp2.responseText", 750)
			 //document.all.homeeventsmonthcontainer.innerHTML=xmlHttp2.responseText
      }
    }
  xmlHttp2.open("GET","/modules/events/ajax/drawmonthpicker.php?refresh=<?php echo time()?>&selectedmonth="+selectedmonth,true);
  xmlHttp2.send(null);
	
	xmlHttp=ajaxinit();
	xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
			 setTimeout("document.all.calendarcontainer.innerHTML=xmlHttp.responseText", 750)
			 setTimeout("document.all.homeeventsmonthcontainer.innerHTML=xmlHttp2.responseText", 750)
			 
      }
    }
  xmlHttp.open("GET","/modules/events/ajax/drawcalendarmonth.php?refresh=<?php echo time()?>&selectedmonth="+selectedmonth,true);
  xmlHttp.send(null);
}


