function initRSS(tmpFilterName, tmpFilterValue)
{          
    xmltodiv("eventbox", "/news/atom.xml", "/js/AtomLatestArticle.xsl");
    
    if (tmpFilterName)
    {
        xmltodivparampair("categorybox", "/news/atom.xml", "/js/AtomToLIAByCategory.xsl", tmpFilterName, tmpFilterValue);
    }
    else
    {
        xmltodiv("categorybox", "/news/atom.xml", "/js/AtomToLIA.xsl");
    }
    
}

function xmltodiv(strDiv, strXML, strXSL)
{
    var proc = new XSLTProcessor();

    var xmlhttp = new XMLHttpRequest();
    xmlhttp.open("GET", strXSL, false);
    xmlhttp.send('');
    var xslDoc = xmlhttp.responseXML;

    proc.importStylesheet(xslDoc);
    objDiv = document.getElementById(strDiv);
    
    Sarissa.updateContentFromURI(strXML, objDiv, proc);
}

function xmltodivparampair(strDiv, strXML, strXSL, strParamName, strParamValue)
{   
    var proc = new XSLTProcessor();

    var xmlhttp = new XMLHttpRequest();
    xmlhttp.open("GET", strXSL, false);
    xmlhttp.send('');
    var xslDoc = xmlhttp.responseXML;

    proc.importStylesheet(xslDoc);
    proc.setParameter(null, strParamName, strParamValue);
    
    objDiv = document.getElementById(strDiv); 
    
    Sarissa.updateContentFromURI(strXML, objDiv, proc);
}