function populateClassInfo()
  {
  var classId= document.getElementById('classes').value;
  if(classId == '-99'){return false;}
  var the_page = "./populate_class_info.php?classId="+classId;

  var xmlHttp;
  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! Please use Firefox or Microsoft IE");
        return false;
        }
      }
    }
	  xmlHttp.onreadystatechange=function()
	  {
		if(xmlHttp.readyState==4)
		{
		var xmlDoc = xmlHttp.responseText;
		document.getElementById('class_category_listing').innerHTML= xmlDoc;
		}
	  }
	  xmlHttp.open("GET",the_page,true);
	  xmlHttp.send(null);
  }
  
  
  function showReport()
  {
  var streamId= document.getElementById('stream').value;
  var the_page = "./populate_stream_info.php?stream_id="+streamId;
  var xmlHttp;
  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! Please use Firefox or Microsoft IE");
        return false;
        }
      }
    }
	  xmlHttp.onreadystatechange=function()
	  {
		if(xmlHttp.readyState==4)
		{
		var xmlDoc = xmlHttp.responseText;
		document.getElementById('report_info').innerHTML= xmlDoc;
		}
	  }
	  xmlHttp.open("GET",the_page,true);
	  xmlHttp.send(null);
  }

function display_article_contents()
  {
  var articleId= document.getElementById('article_name').value;
  if(articleId == '-99'){return false;}
  var the_page = "./populate_article_info.php?articleId="+articleId;

  var xmlHttp;
  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! Please use Firefox or Microsoft IE");
        return false;
        }
      }
    }
	  xmlHttp.onreadystatechange=function()
	  {
		if(xmlHttp.readyState==4)
		{
		var xmlDoc = xmlHttp.responseText;

		document.getElementById('article_display_area').innerHTML= xmlDoc;
		}
	  }
	  xmlHttp.open("GET",the_page,true);
	  xmlHttp.send(null);
  }