// JavaScript Document

function loadNewsXMLDoc(url)
{
document.getElementById('NewsHolder').innerHTML="<div style='padding:10px; text align:center'><img style='margin:auto;' src='/image/progressbar.gif' /></div>" ;
xmlhttpNews=null;
if (window.XMLHttpRequest)
  {// code for Firefox, Opera, IE7, etc.
  xmlhttpNews=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttpNews=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttpNews!=null)
  {
  xmlhttpNews.onreadystatechange=state_ChangeNews;
  xmlhttpNews.open("GET",url,true);
  xmlhttpNews.send(null);
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}


function state_ChangeNews()
{
if (xmlhttpNews.readyState==4)
  {// 4 = "loaded"
  if (xmlhttpNews.status==200)
    {// 200 = "OK"
    document.getElementById('NewsHolder').innerHTML=xmlhttpNews.responseText;
    }
  else
    {
    alert("Problem retrieving data:" + xmlhttpNews.statusText);
    }
  }
}
function decode_utf8(s)
{
return decodeURIComponent( escape( s ) );
}
