function getStreams()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
  document.getElementById("streammanager").innerHTML=xmlhttp.responseText;
  }
}
xmlhttp.open("GET","./modules/streamfinder/index.php",true);
xmlhttp.send(null);
}


// Common javascript function for getting a page and replacing the values in the DIV suplied 
function getGuide(str)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
  document.getElementById("zapguide").innerHTML=xmlhttp.responseText;
  }
}
xmlhttp.open("GET","./modules/tvguide/index.php",true);
xmlhttp.send(null);
}

function getForm(str)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
  document.getElementById("zapguideform").innerHTML=xmlhttp.responseText;
  }
}
xmlhttp.open("POST","./modules/tvguide/editform.php",true);
xmlhttp.send(null);
}