function loadArticle()
{
  var lbArticles = document.getElementById('lbArticles');
  id = lbArticles[lbArticles.selectedIndex].value;
  switch(id){
    case "1" : url = "http://localhost/art1.html";break;
    case "2" : url = "http://localhost/art2.html";break;
    case "3" : url = "http://localhost/art3.html";break;
    default : return;
  }
  lbArticles.disabled = true;
  startGETRequest(url, onComplete, onEnd);
}

function onComplete(text, xml)
{
  var dataDiv = document.getElementById('dataDiv');
  dataDiv.innerHTML = text;
}

function onEnd(text, xml)
{
  var lbArticles = document.getElementById('lbArticles');
  lbArticles.disabled = false;
}