
    var xmlDaily;
    
    function getDailyList(){

        if( daily.style.display == 'block'){
        
            var url = './xml/xml_daily_list.jsp';

            if( window.XMLHttpRequest) xmlDaily = new XMLHttpRequest();
            else if( window.ActiveXObject) xmlDaily = new ActiveXObject('Microsoft.XMLHTTP');
                  
            // xmlDaily = GetXmlHttpObject();
            xmlDaily.open( 'GET', url, false);
            xmlDaily.onreadystatechange = setDailyList;
            xmlDaily.send( null);


        }

    }
    
    function setDailyList(){

        var i, j;
        var total;
        var subject, notes, icon, url, paste, bgcolor;
        var html;
        
        if( xmlDaily.readyState == 4 && xmlDaily.status == 200){ 
           
            total = parseInt( xmlDaily.responseXML.getElementsByTagName('total')[0].firstChild.nodeValue);

            if( total > 0){
                
                html = '                     <table width="250" border="0" cellpadding="1" cellspacing="1">\n';
                
                j = 0;
                
                for( i = 0; i < total; i ++){

                    subject = xmlDaily.responseXML.getElementsByTagName('subject')[i].firstChild.nodeValue;
                    url = xmlDaily.responseXML.getElementsByTagName('url')[i].firstChild.nodeValue;
                    icon = xmlDaily.responseXML.getElementsByTagName('icon')[i].firstChild.nodeValue;

                    if( icon.length == 3) icon = '<img src="./images/' + icon + '_01.gif">';
                    else icon = ''; 
                    
                    if( i == 0){

                        notes = xmlDaily.responseXML.getElementsByTagName('notes')[i].firstChild.nodeValue;
                        paste = xmlDaily.responseXML.getElementsByTagName('paste')[i].firstChild.nodeValue;

                        html += '                      <tr><td height="25" colspan="2" valign="middle" class="b12"><a href="' + url + '" target="_top" class="b12">' + subject + '</a> ' + icon + '</td></tr>\n';
                        html += '                      <tr><td width="100" height="100"><a href="' + url + '"><img src="' + paste + '" width="100" height="100" border="0"></a></td>\n';
                        html += '                          <td width="150" class="gary12">' + notes + ' <a href="' + url + '" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'D0601010001\',\'\',\'./images/more_02.gif\', 1)"><img src="./images/more_01.gif" name="D0601010001" width="37" height="13" border="0" id="D0601010001"></a></td></tr>\n';
                        html += '                      <tr><td height="12" colspan="2" background="./images/arrow_01.gif"></td></tr>\n';
                        
                    }
                    
                    else{
                    
                        bgcolor = j == 0 ? "#FFFFFF" : "#EEEEEE";

                        html += '                      <tr><td height="25" colspan="2" valign="middle" bgcolor="' + bgcolor + '" class="org12">ĄD<a href="' + url + '" class="org12">' + subject + '</a> ' + icon + '</td></tr>\n';
                    
                        j ++;
                        
                        if( j == 2) j = 0;
                    
                    }


                }

                html += '                     </table>\n';
    
                daily.innerHTML = html;
               
            }

        }

    }

