function showNews(LastID,Mode)
{
  var httpRequest;

  //Create the XMLHTTP object, depending on the browser type
  
  if (window.XMLHttpRequest)
  {
    // Mozilla, Safari, ...
    httpRequest = new XMLHttpRequest();
    
    //For Mozilla, if the header does not contain XML mime-type, there will be an error, if this is the case, override the header
    
    if (httpRequest.overrideMimeType)
    {
      httpRequest.overrideMimeType('text/xml');
    }
  }
  else if (window.ActiveXObject)
  {
    // IE
    try
    {
      httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
      try
      {
        httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch (e) {}
    }
  }
  
  //We were unable to create an XMLHTTP instance, warn the user and exit

  if (!httpRequest)
  {
    alert('Giving up :( Cannot create an XMLHTTP instance');
    return false;
  }
  
  /*The code to populate the form elements*/
  
  //Define the url
  
  var url="showNews.php";
  
  //Append the selected value from the client number drop down to the url string (...calendar.php?date=yyyy-mm-dd)
  
  url=url+"?LastID="+LastID+"&Mode="+Mode;
  
  //Not sure what this line does
  
  url = url+"&sid="+Math.random();
  
  //Call the function to post the values to the next page
  
  httpRequest.onreadystatechange = function()
  {
    MakeCalendar(httpRequest);
  };
  
  httpRequest.open('GET', url, true);
  httpRequest.send('');

}

function MakeCalendar(httpRequest)
{
  if (httpRequest.readyState == 4)
  {
    if (httpRequest.status == 200)
    {
      document.getElementById("News").innerHTML=httpRequest.responseText;
    }
    else
    {
      alert('There was a problem with the request.');
    }
  }
}