   
   
   function GetSong()
       {
           var marqueecontent;
          
          var url='/rdufeed/BILBOARD.PHP';
          var newsong;
          var xmlReturnVal;
        newsong=httpRequest("get",url,true);   
       if(request.readyState == 4){
       
       if(request.status == 200){
            /*Grab the result as a string*/
     marqueecontent = request.responseText; 
     
      
   
      alert(xmlReturnVal);
          
          
        }}
      }    
        
        function handleResponse(){
         if(request.readyState == 4){
        if(request.status == 200){
            /*Grab the result as a string*/
            var marqueecontent = request.responseText; 
     
        
   
          populate(marqueecontent);
          
         

        } else {
            alert("A problem occurred with communicating between the XMLHttpRequest object and the server program.");
        }
    }//end outer if
}

/* Initialize a Request object that is already constructed */
function initReq(reqType,url,bool){
    /* Specify the function that will handle the HTTP response */
    request.onreadystatechange=handleResponse;
    request.open(reqType,url,bool);
    request.send(null);
}

/* Wrapper function for constructing a Request object.
 Parameters:
  reqType: The HTTP request type such as GET or POST.
  url: The URL of the server program.
  asynch: Whether to send the request asynchronously or not. */
function httpRequest(reqType,url,asynch){
    //Mozilla-based browsers
    if(window.XMLHttpRequest){
        request = new XMLHttpRequest();
        initReq(reqType,url,asynch);
    } else if (window.ActiveXObject){
        request=new ActiveXObject("Msxml2.XMLHTTP");
            if (! request){
            request=new ActiveXObject("Microsoft.XMLHTTP");
        }
        if(request){
            initReq(reqType,url,asynch);
        }
    } else {
        alert("Your browser does not permit the use of all of this application's features!");}
}

   
        
        
      function UpdateSong() {
        
      
           
           
           
          setTimeout("UpdateSong()",20000);
  
          
           GetSong();
        }  
        
        

 
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        