/*  JavaScript file for RSS aggregator
    Copyright 2007 Poplar ProductivityWare LLC
    www.poplarware.com
    All Rights Reserved
*/

/* Configuration: put the correct URL for the directory where the
 * CGI script is on the line below.
 */
var rss_reader_base_url = "http://131.103.75.97/breakingnewsscript/";

function rss_reader_get_rss( client_id, div_id ) {
    // create a dynamic script and execute it
    var rss_reader_script = document.createElement( 'script' );

    rss_reader_script.setAttribute( "src", rss_reader_base_url +
                           'dofeed.cgi?divid=' + div_id + '&id=' + client_id );
    rss_reader_script.setAttribute( "id", "rss_reader_script" );

    var head = document.getElementsByTagName("head").item(0);
    head.appendChild( rss_reader_script );
}

