function loadData(URL,dest,replace) {
  // Create the XML request
  xmlReq = null;
  if (window.XMLHttpRequest) xmlReq = new XMLHttpRequest();
  else if (window.ActiveXObject) xmlReq = new ActiveXObject("Microsoft.XMLHTTP");
  if (xmlReq==null) return; // Failed to create the request

  // Anonymous function to handle changed request states
  xmlReq.onreadystatechange = function() {
    switch(xmlReq.readyState) {
      case 0: // Uninitialized
      break;
      case 1: // Loading
      break;
      case 2: // Loaded
      break;
      case 3: // Interactive
      break;
      case 4: // Done!
      // Retrieve the data between the <quote> tags
      doSomethingWithData(xmlReq.responseText,dest,replace);
//       doSomethingWithData(xmlReq.responseXML.getElementsByTagName('quote')[0].firstChild.data);
      break;
      default:
      break;
    }
  }

  // Make the request
  xmlReq.open ('GET', URL, true);
  xmlReq.send (null);
}
