function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function ucfirst(mot) {
      var m=mot.charAt(0).toUpperCase() +
       mot.substring(1).toLowerCase();
      return m;
}

function wait(span) {
	document.getElementById(span).innerHTML = "<img style='vertical-align: middle;' src='images/loadingBlanc.gif'> &nbsp; <i style='font-size:8pt; font-family:arial;'>veuillez patientez...</i>"
}

function verif_form_contact(){

		if(window.document.form_contact.mail.value=='' || window.document.form_contact.mail.value.indexOf("@") == "-1" || window.document.form_contact.mail.value.indexOf(".") == "-1"){
			alert('L\'email doit être saisi et valide');
			window.document.form_contact.mail.focus();
			return false;
		}else if(window.document.form_contact.message.value==0){
			alert('Vous devez saisir votre message');
			window.document.form_contact.message.focus();
			return false;
		}else
			wait('mail_wait');
			document.getElementById('info').style.display = "none";
			window.document.form_contact.submit();
			return true;
}
function verif_form_partenaires(){

		if(window.document.form_contact.site.value.search(/^([http]+[/:/]+[\///])+(.+)?[/\./]+[a-z]{2,4}$/) == -1){
			alert('L\'adresse de votre site doit être valide.');
			window.document.form_contact.site.focus();
			return false;
		}else if(window.document.form_contact.mail.value=='' || window.document.form_contact.mail.value.indexOf("@") == "-1" || window.document.form_contact.mail.value.indexOf(".") == "-1"){
			alert('L\'email doit être saisi et valide');
			window.document.form_contact.mail.focus();
			return false;
		}else if(window.document.form_contact.message.value==0){
			alert('Vous devez saisir votre message');
			window.document.form_contact.message.focus();
			return false;
		}else
			wait('mail_wait');
			document.getElementById('info').style.display = "none";
			window.document.form_contact.submit();
			return true;
}

function verif_nom(){
		if(window.document.form_contact.nom.value==''){
			document.getElementById('spanNom').innerHTML  = "&nbsp;&nbsp;<img src='images/wrong.gif'>";
		}else{
			document.getElementById('spanNom').innerHTML  = "&nbsp;&nbsp;<img src='images/right.gif'>";
		}
}
function verif_mail(){
		if(window.document.form_contact.mail.value=='' || window.document.form_contact.mail.value.indexOf("@") == "-1" || window.document.form_contact.mail.value.indexOf(".") == "-1"){
			document.getElementById('spanMail').innerHTML  = "&nbsp;&nbsp;<img src='images/wrong.gif'>";
		}else{
			document.getElementById('spanMail').innerHTML  = "&nbsp;&nbsp;<img src='images/right.gif'>";
		}
}
function verif_site(){
		if(window.document.form_contact.site.value.search(/^([http]+[/:/]+[\///])+(.+)?[/\./]+[a-z]{2,4}$/) == -1){
			document.getElementById('spanSite').innerHTML  = "&nbsp;&nbsp;<img src='images/wrong.gif'>";
		}else{
			document.getElementById('spanSite').innerHTML  = "&nbsp;&nbsp;<img src='images/right.gif'>";
		}
}

function changeImage(appart, image) {
	document.getElementById('bigImage').innerHTML = "<img src='images/appart"+appart+"_big_"+image+".jpg' width='524px' height='381px'>";
}

function isIE() {
	if (navigator.appName == "Microsoft Internet Explorer")
		return 1
	else
		return 0
}

function isMozilla() {
	if (navigator.appName == "Netscape")
		return 1
	else
		return 0
}

function PutSmilie(addSmilie) {
	if (isIE())
	{
		document.form_gestion.contenu.focus()
		document.selection.createRange().text = addSmilie
	}
	else if (isMozilla())
	{
                var editBox = document.form_gestion.contenu;
                var textString = editBox.value;
                var position = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var revisedMessage = textString.substring(0, position) + addSmilie +  textString.substring(position, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(position + addSmilie.length, position + addSmilie.length);
                editBox.scrollTop = scrollTop;
        }
        else
        {
		var currentMessage = document.form_gestion.contenu.value
		var revisedMessage = currentMessage+addSmilie
		document.form_gestion.contenu.value=revisedMessage
		document.form_gestion.contenu.focus()
	}
}

function SetText(text) 
{ 
document.form_gestion.contenu.value=text 
document.form_gestion.contenu.focus() 
document.form_gestion.sig.checked = false 
}

function SetMpText(titre, text) 
{ 
document.form_gestion.msg_subject.value=titre 
document.form_gestion.contenu.value=text 
document.form_gestion.contenu.focus() 
document.form_gestion.sig.checked = false 
} 

function wysiwyg($id_dest, $id_exp){
	document.getElementById($id_dest).innerHTML = document.getElementById($id_exp).value;
}
function clavier(evenement, id){
	if(evenement.shiftKey && evenement.keyCode == 13) addBR(id);
	if(evenement.altKey && evenement.keyCode == 73) italicThis(1);
	if(evenement.altKey && evenement.keyCode == 66) boldThis(1);
	if(evenement.altKey && evenement.keyCode == 88) bigThis(1);
	if(evenement.altKey && evenement.keyCode == 85) underlineThis(1);
	if(evenement.altKey && evenement.keyCode == 76) ahrefThis(1);
	if(evenement.altKey && evenement.keyCode == 81) quoteThis(1);
}

function carCount($id_dest, $id_exp, $id_submit, $limit){
	document.getElementById($id_dest).innerHTML = "Nombre de caractères : <b>"+document.getElementById($id_exp).value.length+"</b> <i style='font-size:75%;'>("+$limit+" min)</i>";
	if(document.getElementById($id_exp).value.length <= $limit){
		document.getElementById($id_submit).disabled = 'disabled';
	}else{
		document.getElementById($id_submit).disabled = '';
	}
}

function addBR(id) {
	varText = "<br/>";
	if (isIE())
	{
		document.getElementById(id).focus()
		document.selection.createRange().text = varText
	}
	else if (isMozilla())
	{
                var editBox = document.getElementById(id);
                var textString = editBox.value;
                var position = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var revisedMessage = textString.substring(0, position) + varText +  textString.substring(position, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(position + varText.length, position + varText.length);
                editBox.scrollTop = scrollTop;
        }
        else
        {
		var currentMessage = document.getElementById(id).value
		var revisedMessage = currentMessage+varText
		document.getElementById(id).value=revisedMessage
		document.getElementById(id).focus()
	}
}

function ahrefThis() {
	var invite="Entrez ici l'URL que vous voulez lier :"
	if (isIE()) {
		var strSelection = document.selection.createRange().text
		if (strSelection == "") document.updaterss.description.focus()
                var strHref = prompt(invite,"http://")
	        if (strHref == null) return
	        document.selection.createRange().text = "<a target=\"_blank\" href=\"" + strHref + "\">" + strSelection + "</a>"
        }
        else if (isMozilla())
        {
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var positionStart = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var positionEnd = editBox.selectionEnd;
                var linkText = "";
                if (positionEnd != positionStart)
                {
                        linkText = textString.substring(positionStart, positionEnd);
                }
                var linkHref = prompt(invite,"http://");
                if (linkHref == null) return;

                var revisedMessage = textString.substring(0, positionStart) + "<a target=\"_blank\" href=\"" + linkHref + "\">" + linkText + "</a>" +  textString.substring(positionEnd, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(positionStart, positionStart + linkHref.length + linkText.length + 12);
                editBox.scrollTop = scrollTop;
        }
        else {
		var strHref = prompt(invite,"http://")
		if (strHref == null) return
		var currentMessage = document.updaterss.description.value
		var revisedMessage = currentMessage + "<a target=\"_blank\" href=\"" + strHref + "\"></a>"
		document.updaterss.description.value=revisedMessage
		document.updaterss.description.focus()
	}
}


function picture(from) {
	document.updaterss.description.focus();
	var stPic = prompt("Image :","http://www.fallout3-france.fr/visuels/visuelS/visuel01.jpg");
	if (stPic == null) return;
        var picTag = "<img src=\"" + stPic + "\" alt=\"Fallout 3 France\" />";
	if (isIE()) {
		document.selection.createRange().text = picTag;
	}
	else if (isMozilla())
	{
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var position = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var revisedMessage = textString.substring(0, position) + picTag +  textString.substring(position, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(position, position);
                editBox.scrollTop = scrollTop;
        }
	else {
		var currentMessage = document.updaterss.description.value;
		var revisedMessage = currentMessage + picTag;
		document.updaterss.description.value=revisedMessage;
		document.updaterss.description.focus();
	}
}


function pictureLB(from) {
	document.updaterss.description.focus();
	var stPic = prompt("Petite image :","http://www.fallout3-france.fr/visuels/visuelS/visuel01.jpg");
	var bigPic = prompt("Grande image :","http://www.fallout3-france.fr/visuels/visuelB/visuel01.jpg");	if (stPic == null) return;
        var picTag = "<a rel=\"lightbox\" href=\"" + bigPic + "\"><img src=\"" + stPic + "\" alt=\"Fallout 3 France\" /></a>";
	if (isIE()) {
		document.selection.createRange().text = picTag;
	}
	else if (isMozilla())
	{
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var position = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var revisedMessage = textString.substring(0, position) + picTag +  textString.substring(position, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(position, position);
                editBox.scrollTop = scrollTop;
        }
	else {
		var currentMessage = document.updaterss.description.value;
		var revisedMessage = currentMessage + picTag;
		document.updaterss.description.value=revisedMessage;
		document.updaterss.description.focus();
	}
}


function imgFloat(from) {
	document.updaterss.description.focus();
	var stPic = prompt("Image :","http://www.fallout3-france.fr/visuels/divers/");
	if (stPic == null) return;
        var picTag = "<img style=\"float:left; padding:0 10px 5px 0\" src=\"" + stPic + "\" alt=\"Fallout 3 France\" />";
	if (isIE()) {
		document.selection.createRange().text = picTag;
	}
	else if (isMozilla())
	{
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var position = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var revisedMessage = textString.substring(0, position) + picTag +  textString.substring(position, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(position, position);
                editBox.scrollTop = scrollTop;
        }
	else {
		var currentMessage = document.updaterss.description.value;
		var revisedMessage = currentMessage + picTag;
		document.updaterss.description.value=revisedMessage;
		document.updaterss.description.focus();
	}
}


function imgFloatLB(from) {
	document.updaterss.description.focus();
	var stPic = prompt("Petite image :","http://www.fallout3-france.fr/visuels/divers/");
	var bigPic = prompt("Grande image :","http://www.fallout3-france.fr/visuels/divers/");
	if (stPic == null) return;
        var picTag = "<a rel=\"lightbox\" href=\"" + bigPic + "\"><img style=\"float:left; padding-right:10px\" src=\"" + stPic + "\" alt=\"Fallout 3 France\" /></a>";
	if (isIE()) {
		document.selection.createRange().text = picTag;
	}
	else if (isMozilla())
	{
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var position = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var revisedMessage = textString.substring(0, position) + picTag +  textString.substring(position, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(position, position);
                editBox.scrollTop = scrollTop;
        }
	else {
		var currentMessage = document.updaterss.description.value;
		var revisedMessage = currentMessage + picTag;
		document.updaterss.description.value=revisedMessage;
		document.updaterss.description.focus();
	}
}


function boldThis(from) {
	var invite="Entrez ici le texte à mettre en gras :"
	if (isIE()) {
		var strSelection = document.selection.createRange().text
		if (strSelection == "") {
			document.updaterss.description.focus()
			strSelection = prompt(invite,"")
			if (strSelection == null) return
		}
		document.selection.createRange().text = "<b>" + strSelection + "</b>"
	}
        else if (isMozilla())
        {
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var positionStart = editBox.selectionStart;
		var scrollTop = editBox.scrollTop;
                var positionEnd = editBox.selectionEnd;
                var boldText;
                if (positionEnd != positionStart)
                {
                        boldText = textString.substring(positionStart, positionEnd);
                }
                else
                {
                        boldText = prompt(invite,"");
                        if (boldText == null) return;
                }
                var revisedMessage = textString.substring(0, positionStart) + "<b>" + boldText + "</b>" +  textString.substring(positionEnd, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(positionStart, positionStart + boldText.length + 7);
                editBox.scrollTop = scrollTop;
        }
	else {
		var strSelection = prompt(invite,"")
		var currentMessage = document.updaterss.description.value
		var revisedMessage = currentMessage + "<b>" + strSelection + "</b>"
		document.updaterss.description.value=revisedMessage
		document.updaterss.description.focus()
	}
}


function bigThis(from) {
	var invite="Entrez ici le texte à mettre en grand :"
	if (isIE()) {
		var strSelection = document.selection.createRange().text
		if (strSelection == "") {
			document.updaterss.description.focus()
			strSelection = prompt(invite,"")
			if (strSelection == null) return
		}
		document.selection.createRange().text = "<big>" + strSelection + "</big>"
	}
        else if (isMozilla())
        {
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var positionStart = editBox.selectionStart;
		var scrollTop = editBox.scrollTop;
                var positionEnd = editBox.selectionEnd;
                var boldText;
                if (positionEnd != positionStart)
                {
                        boldText = textString.substring(positionStart, positionEnd);
                }
                else
                {
                        boldText = prompt(invite,"");
                        if (boldText == null) return;
                }
                var revisedMessage = textString.substring(0, positionStart) + "<big>" + boldText + "</big>" +  textString.substring(positionEnd, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(positionStart, positionStart + boldText.length + 7);
                editBox.scrollTop = scrollTop;
        }
	else {
		var strSelection = prompt(invite,"")
		var currentMessage = document.updaterss.description.value
		var revisedMessage = currentMessage + "<big>" + strSelection + "</big>"
		document.updaterss.description.value=revisedMessage
		document.updaterss.description.focus()
	}
}


function quoteThis(from) {
	var invite="Entrez ici le texte à mettre en citation :"
	if (isIE()) {
		var strSelection = document.selection.createRange().text
		if (strSelection == "") {
			document.updaterss.description.focus()
			strSelection = prompt(invite,"")
			if (strSelection == null) return
		}
		document.selection.createRange().text = "<blockquote>" + strSelection + "</blockquote>"
	}
        else if (isMozilla())
        {
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var positionStart = editBox.selectionStart;
		var scrollTop = editBox.scrollTop;
                var positionEnd = editBox.selectionEnd;
                var boldText;
                if (positionEnd != positionStart)
                {
                        boldText = textString.substring(positionStart, positionEnd);
                }
                else
                {
                        boldText = prompt(invite,"");
                        if (boldText == null) return;
                }
                var revisedMessage = textString.substring(0, positionStart) + "<blockquote>" + boldText + "</blockquote>" +  textString.substring(positionEnd, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(positionStart, positionStart + boldText.length + 7);
                editBox.scrollTop = scrollTop;
        }
	else {
		var strSelection = prompt(invite,"")
		var currentMessage = document.updaterss.description.value
		var revisedMessage = currentMessage + "<blockquote>" + strSelection + "</blockquote>"
		document.updaterss.description.value=revisedMessage
		document.updaterss.description.focus()
	}
}


function italicThis(from) {
	var invite="Entrez ici le texte à mettre en italique :"
	if (isIE()) {
		var strSelection = document.selection.createRange().text
		if (strSelection == "") {
			document.updaterss.description.focus()
			strSelection = prompt(invite,"")
			if (strSelection == null) return
		}
		document.selection.createRange().text = "<i>" + strSelection + "</i>"
	}
        else if (isMozilla())
        {
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var positionStart = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
		var positionEnd = editBox.selectionEnd;
                var italicText;
                if (positionEnd != positionStart)
                {
                        italicText = textString.substring(positionStart, positionEnd);
                }
                else
                {
                        italicText = prompt(invite,"");
                        if (italicText == null) return;
                }
                var revisedMessage = textString.substring(0, positionStart) + "<i>" + italicText + "</i>" +  textString.substring(positionEnd, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(positionStart, positionStart + italicText.length + 7);
                editBox.scrollTop = scrollTop;
        }
	else {
		var strSelection = prompt(invite,"")
		var currentMessage = document.updaterss.description.value
		var revisedMessage = currentMessage + "<i>" + strSelection + "</i>"
		document.updaterss.description.value=revisedMessage
		document.updaterss.description.focus()
	}
}


function underlineThis(from) {
	var invite="Entrez ici le texte à souligner :"
	if (isIE()) {
		var strSelection = document.selection.createRange().text
		if (strSelection == "") {
			document.updaterss.description.focus()
			strSelection = prompt(invite,"")
			if (strSelection == null) return
		}
		document.selection.createRange().text = "<u>" + strSelection + "</u>"
	}
        else if (isMozilla())
        {
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var positionStart = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var positionEnd = editBox.selectionEnd;
                var underlineText;
                if (positionEnd != positionStart)
                {
                        underlineText = textString.substring(positionStart, positionEnd);
                }
                else
                {
                        underlineText = prompt(invite,"");
                        if (underlineText == null) return;
                }
                var revisedMessage = textString.substring(0, positionStart) + "<u>" + underlineText + "</u>" +  textString.substring(positionEnd, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(positionStart, positionStart + underlineText.length + 7);
                editBox.scrollTop = scrollTop;
        }
	else {
		var strSelection = prompt(invite,"")
		var currentMessage = document.updaterss.description.value
		var revisedMessage = currentMessage + "<u>" + strSelection + "</u>"
		document.updaterss.description.value=revisedMessage
		document.updaterss.description.focus()
	}
}

function youtube(from) {
	var invite="Entrez ici l'identifiant de la video (ex : 5LeLAELIxKY) :"
	if (isIE()) {
		var strSelection = document.selection.createRange().text
		if (strSelection == "") {
			document.updaterss.description.focus()
			strSelection = prompt(invite,"")
			if (strSelection == null) return
		}
		document.selection.createRange().text = "<div align=center><object width=\"637\" height=\"525\"><param name=\"movie\" value=\"http://www.youtube.com/v/" + strSelection + "\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/" + strSelection + "\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"637\" height=\"525\"></embed></object></div>"
	}
        else if (isMozilla())
        {
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var positionStart = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var positionEnd = editBox.selectionEnd;
                var underlineText;
                if (positionEnd != positionStart)
                {
                        underlineText = textString.substring(positionStart, positionEnd);
                }
                else
                {
                        underlineText = prompt(invite,"");
                        if (underlineText == null) return;
                }
                var revisedMessage = textString.substring(0, positionStart) + "<br/><div align=center><object width=\"460\" height=\"379\"><param name=\"movie\" value=\"http://www.youtube.com/v/" + strSelection + "\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/" + underlineText + "\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"460\" height=\"379\"></embed></object></div>" +  textString.substring(positionEnd, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(positionStart, positionStart + underlineText.length + 7);
                editBox.scrollTop = scrollTop;
        }
	else {
		var strSelection = prompt(invite,"")
		var currentMessage = document.updaterss.description.value
		var revisedMessage = currentMessage + "<u>" + strSelection + "</u>"
		document.updaterss.description.value=revisedMessage
		document.updaterss.description.focus()
	}
}


function dailymotion(from) {
	var invite="Entrez ici l'identifiant de la video (ex : 2IaALMICTx98WaU27) :"
	if (isIE()) {
		var strSelection = document.selection.createRange().text
		if (strSelection == "") {
			document.updaterss.description.focus()
			strSelection = prompt(invite,"")
			if (strSelection == null) return
		}
		document.selection.createRange().text = "<br/><div align=center><object width=\"460\" height=\"379\"><param name=\"movie\" value=\"http://www.dailymotion.com/swf/" + strSelection + "\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.dailymotion.com/swf/" + strSelection + "\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"460\" height=\"379\"></embed></object></div>"
	}
        else if (isMozilla())
        {
                var editBox = document.updaterss.description;
                var textString = editBox.value;
                var positionStart = editBox.selectionStart;
                var scrollTop = editBox.scrollTop;
                var positionEnd = editBox.selectionEnd;
                var underlineText;
                if (positionEnd != positionStart)
                {
                        underlineText = textString.substring(positionStart, positionEnd);
                }
                else
                {
                        underlineText = prompt(invite,"");
                        if (underlineText == null) return;
                }
                var revisedMessage = textString.substring(0, positionStart) + "<div align=center><object width=\"637\" height=\"525\"><param name=\"movie\" value=\"http://www.dailymotion.com/swf/" + strSelection + "\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.dailymotion.com/swf/" + underlineText + "\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"637\" height=\"525\"></embed></object></div>" +  textString.substring(positionEnd, textString.length);
                editBox.value = revisedMessage;
                editBox.focus();
                editBox.setSelectionRange(positionStart, positionStart + underlineText.length + 7);
                editBox.scrollTop = scrollTop;
        }
	else {
		var strSelection = prompt(invite,"")
		var currentMessage = document.updaterss.description.value
		var revisedMessage = currentMessage + "<u>" + strSelection + "</u>"
		document.updaterss.description.value=revisedMessage
		document.updaterss.description.focus()
	}
}

function sousMenu(lien){
	document.getElementById('sous-menu-droite').innerHTML = lien;
}
function sousMenuRAZ(){
	document.getElementById('sous-menu-droite').innerHTML = "&nbsp;";
}

function mefRSS($id_dest, $id_exp){
	$result = document.getElementById($id_exp).value;
	$result = $result.replace("<br/>", " ");
	$result = $result.replace(/<[^>]*>/g, "");
	$result = $result.replace(/&(.*);/g, "");
	$result = $result.replace(/\n/g, "");
	$result = $result.substr(0, 225)+"[...]";
	document.getElementById($id_dest).innerHTML  = $result;
}