function get_rss_feed(url, target, limit) {
	//clear the content in the div for the next feed.
	$('#ul_'+target).empty();
	
	//	Limit
	limit = (typeof limit == 'undefined') ? 10 : limit;
	i=0;
 
	//use the JQuery get to grab the URL from the selected item, put the results in to an argument for parsing in the inline function called when the feed retrieval is complete
	$.get(url, function(d) {
	
		//	Update title
		title = $(d).find('channel > title').text();
		$('#title_'+target).empty();
		$('#title_'+target).append(title);

		//find each 'item' in the file and parse it
		$(d).find('item').each(function() {
 			if(i==limit) return false;
 			
			//name the current found item this for this particular loop run
			var $item = $(this);
			// grab the post title
			var title = $item.find('title').text();
			
			//	Get publication date from title
			var pattern = "^([0-9]{2}\-[0-9]{2}\-[0-9]{4}) \| ([0-9]{2}:[0-9]{2}):[0-9]{2} \- (.*)";
			
var maReg = new RegExp( pattern, "" ) ;
var resultat = title.split( maReg ) ;
/* console.log(resultat); */

			var title = resultat[7];
			var pubDate = resultat[6]			
			
			// grab the post's URL
			var link = $item.find('link').text();
			// next, the description
/* 			var description = $item.find('description').text(); */
			//don't forget the pubdate
/* 			var pubDate = $item.find('pubDate').text(); */
			
			var style= i%2 ? 'light' : 'dark';
 
 			$('#ul_'+target).append('<li class="'+style+'"><span>'+pubDate+'</span><a href="'+link+'" target="_blank" title="'+title+'">'+title.substr(0,45)+'</a></li>');
 			
 			i++;
		});
	});

};
