// voir appel dans commercialRSS.xsl
function rss_suggest_url(rss_link) {
	var rss_title = "<img src='xsl/feed-icon-14x14.png' vspace='0' hspace='0' align='absmiddle'> ";
	rss_title = "<span class='fontO'>Flux RSS mio'Terr</span>";

	var currentTime = new Date();
	var tempid = "temp" + currentTime.getTime();
	var rss_input = "<input style='font-size:8pt' readonly='readonly' id='" + tempid + "' name='" + tempid + "' type='text' value=''/>";

	var rss_msg = "<div style='height:5px'></div>";
	rss_msg += "<p>Pour s'abonner au flux :<br/>faites un <b class='fontW font8'>Copiez-Coller</b>";
	rss_msg += " du lien ci-dessous dans votre lecteur <b class='fontW font7'>RSS</b>";
	rss_msg += "</p>" + rss_input;
	//rss_msg += "<p style='margin-top:8px; margin-bottom:10px;'>";
	//rss_msg += "<img src='image/mBox_sep.gif' style='width:100%'/></p>";
	rss_msg += "<div style='height:20px'></div>";
	rss_msg += "<p class='fontRss font9'>Pour lire le flux :<br/>cliquez sur l'icône RSS pour l'ouvrir dans une nouvelle fenêtre";
	rss_msg += "</p>";

	var rss_width = 420;
	var rss_width_offset = 40;
	var rss_height = 200;
	
	rss_msg += "<div class='alignR' style='width:" + (rss_width - rss_width_offset) + "px;'>";
	rss_msg += "<br/>";
	rss_msg += "<button class='common_button fontB fontRss'";
	rss_msg += " onclick='if(this.blur)this.blur(); mBox.onok();'";
	rss_msg += ">";
	rss_msg += "<img style='margin-bottom:-3px;' src='xsl/feed-icon-14x14.png'/>&nbsp;";
	rss_msg += "Ouvrir le flux</button>";
	rss_msg += "</div>";

	var rss_init_argObject = {"tempid":tempid, "rss_link":rss_link};
	var rss_init_function  = function(arguments) {
		with(arguments) {
			getById(tempid).onclick = function() {
				this.selectionStart = 0;
				this.selectionEnd = this.value.length;
			};
			
			mBox.mbxBOX.style.width = px(rss_width);
			mBox.mbxBOX.style.height = px(rss_height);

			getById(tempid).style.width = "99%"; //px(rss_width - rss_width_offset);
			getById(tempid).value = rss_link;
			setTimeout("getById('" + tempid + "').focus()", 1);
			getById(tempid).onclick();
		}
	}

	mBox.onshow = function () {
		rss_init_function(rss_init_argObject);
	};
	mBox.onok = function() { 
		window.open(getById(tempid).value, "_blank", "");
		mBox.hide();
	};
	mBox.show(rss_title, rss_msg, mBox.mbxClose);

};

