var xmlHttp;

function doboth()
{
	gspringcastFunction(1);
	setTimeout("gfallcastFunction(36)",1000);
}

function gspringcastFunction(productionid)
{//alert("groovy spring baby!");
	xmlHttp = GetXmlHttpObject();
	var url="ajax/springcastdata.php";
	url=url+"?q="+productionid;
	url=url+"&sid="+Math.random();
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	xmlHttp.onreadystatechange=stateChanged ;
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {document.getElementById("springcast").innerHTML=xmlHttp.responseText;} 
}

function gfallcastFunction(productionid)
{//alert("groovy fall baby!");
	xmlHttp = GetXmlHttpObject();
	var url="ajax/springcastdata.php";
	url=url+"?q="+productionid;
	url=url+"&sid="+Math.random();
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	xmlHttp.onreadystatechange=fallstateChanged ;

}

function fallstateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {document.getElementById("fallcast").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)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  return  xmlHttp;
  }

