﻿if (!listEmoticon) {
var listEmoticon = new Array();        
    listEmoticon[listEmoticon.length] = new Array("Chesse","http://storage.canalblog.com/08/57/255038/15624232.gif");
    listEmoticon[listEmoticon.length] = new Array("Oh","http://storage.canalblog.com/44/17/255038/15623616.gif"); 
    listEmoticon[listEmoticon.length] = new Array("Moqueur","http://storage.canalblog.com/82/81/255038/15623628.gif"); 
    listEmoticon[listEmoticon.length] = new Array("Cool","http://storage.canalblog.com/37/58/255038/15623843.gif"); 
    listEmoticon[listEmoticon.length] = new Array("Pfff","http://storage.canalblog.com/17/32/255038/15624220.gif");  
    listEmoticon[listEmoticon.length] = new Array("Filp","http://storage.canalblog.com/10/67/255038/15624249.gif");
    listEmoticon[listEmoticon.length] = new Array("Bravo","http://storage.canalblog.com/02/03/255038/15797278.gif"); 
    listEmoticon[listEmoticon.length] = new Array("Coeur","http://storage.canalblog.com/14/72/255038/15797293.gif");  
    listEmoticon[listEmoticon.length] = new Array("Fleur","http://storage.canalblog.com/82/37/255038/15797266.gif");
    listEmoticon[listEmoticon.length] = new Array("Heu...","http://storage.canalblog.com/88/91/255038/15797307.gif");
    listEmoticon[listEmoticon.length] = new Array("Nul","http://storage.canalblog.com/89/29/255038/15797352.gif"); 
    listEmoticon[listEmoticon.length] = new Array("Super","http://storage.canalblog.com/83/40/255038/15797671.gif"); 
    listEmoticon[listEmoticon.length] = new Array("Salut","http://storage.canalblog.com/98/60/255038/15797256.gif"); 
    listEmoticon[listEmoticon.length] = new Array("j attends","http://storage.canalblog.com/51/41/255038/15797366.gif");
    listEmoticon[listEmoticon.length] = new Array("je cherche","http://storage.canalblog.com/95/92/255038/15797274.gif"); 
    listEmoticon[listEmoticon.length] = new Array("sos","http://storage.canalblog.com/67/10/255038/15797344.gif");
	}
    var emcomcblt="ok";
	var BOutils = new Array();    
    BOutils[BOutils.length] = new Array("URL","http://storage.canalblog.com/27/41/493778/30667758.gif","Ins&egrave;re un lien","[URL]","[/URL]","<a href=\'","\' target='_blank'>Aller là</a>");
    BOutils[BOutils.length] = new Array("Img","http://storage.canalblog.com/39/41/251752/21145008.jpg","Ins&egrave;re une image","[Img]","[/Img]","<br /><img src=\'","\' /><br />");
    BOutils[BOutils.length] = new Array("I","http://storage.canalblog.com/68/72/251752/19262598.gif","Texte Italic","[I]","[/I]","<I>","</I>");
    BOutils[BOutils.length] = new Array("G","http://storage.canalblog.com/62/42/251752/19262592.gif","Texte Gras","[G]","[/G]","<B>","</B>");
    BOutils[BOutils.length] = new Array("S","http://storage.canalblog.com/11/85/251752/19262621.gif","Texte Soulign&eacute;","[U]","[/U]","<U>","</U>");
    BOutils[BOutils.length] = new Array("B","http://storage.canalblog.com/73/65/251752/19262584.gif","Texte Barr&eacute;","[S]","[/S]","<STRIKE>","</STRIKE>");



    var att = " style='vertical-align:middle; border:0;margin-left: 2px;'";
	var listActionOutils = new Array();    
    listActionOutils[listActionOutils.length] = new Array("[Img]","<br /><img src=\'");
    listActionOutils[listActionOutils.length] = new Array("[/Img]","\' /><br />");
    listActionOutils[listActionOutils.length] = new Array("[I]","<I>");
    listActionOutils[listActionOutils.length] = new Array("[/I]","</I>");
    listActionOutils[listActionOutils.length] = new Array("[U]","<U>");
    listActionOutils[listActionOutils.length] = new Array("[/U]","</U>");
    listActionOutils[listActionOutils.length] = new Array("[G]","<B>");
    listActionOutils[listActionOutils.length] = new Array("[/G]","</B>");
    listActionOutils[listActionOutils.length] = new Array("[S]","<STRIKE>");
    listActionOutils[listActionOutils.length] = new Array("[/S]","</STRIKE>");
    listActionOutils[listActionOutils.length] = new Array(":url:","http://");
    listActionOutils[listActionOutils.length] = new Array("[URL]","<a href=\'");
    listActionOutils[listActionOutils.length] = new Array("[NAME]","\' target='_blank'>");
    listActionOutils[listActionOutils.length] = new Array("[/URL]","</a>");
    listActionOutils[listActionOutils.length] = new Array("[Sur]","<span style='background-color : #3EE735'>");
    listActionOutils[listActionOutils.length] = new Array("[/Sur]","</span>");
    listActionOutils[listActionOutils.length] = new Array("[Sur col=\'","<span style=\'background-color : ");
    listActionOutils[listActionOutils.length] = new Array("[Font col=\'","<font color=\'");
    listActionOutils[listActionOutils.length] = new Array("[Size=\'","<span style=\'font-size: ");
    listActionOutils[listActionOutils.length] = new Array("[/Size]","</span>");
    listActionOutils[listActionOutils.length] = new Array("[/Font]","</font>");
    listActionOutils[listActionOutils.length] = new Array(":]:",">");




function addEvent(ou, eventName, quoi) {
if (ou.addEventListener)
ou.addEventListener(eventName, quoi, false);
else if (ou.attachEvent)
ou.attachEvent('on'+eventName, quoi);
}
	
function RemplacerTagEmoticon(ObjetComs) {
var speEmoticon = new Array();        
    speEmoticon[speEmoticon.length] = new Array(" :)","http://storage.canalblog.com/36/45/251752/20785488.jpg");
    speEmoticon[speEmoticon.length] = new Array(" :(","http://storage.canalblog.com/02/75/251752/20785497.jpg");
    speEmoticon[speEmoticon.length] = new Array(" :s","http://storage.canalblog.com/52/46/251752/20785485.jpg");
    speEmoticon[speEmoticon.length] = new Array(" :D","http://storage.canalblog.com/52/46/251752/20785485.jpg");
    speEmoticon[speEmoticon.length] = new Array(" ;)","http://storage.canalblog.com/91/06/251752/20785501.jpg");

    for (var i = 0; i < listEmoticon.length; i++) {
        ObjetComs = ObjetComs.split('[' + listEmoticon[i][0] + ']').join('<img src="' + listEmoticon[i][1] + '"' + att + ' alt="' + listEmoticon[i][0] + '" />');
    }
    for (var i = 0; i < speEmoticon.length; i++) {
        ObjetComs = ObjetComs.split(speEmoticon[i][0]).join('<img src="' + speEmoticon[i][1] + '"' + att + ' alt="' + speEmoticon[i][0] + '" />');
    }
    
    return ObjetComs;
}

function RemplacerCodeStyle(ObjetComs) {
    for (var i = 0; i < listActionOutils.length; i++) {
        ObjetComs = ObjetComs.split(listActionOutils[i][0]).join(listActionOutils[i][1]);
    }
    return ObjetComs;
}
function SupprimerCodeStyle(ObjetComs) {
    for (var i = 0; i < listActionOutils.length; i++) {
        ObjetComs = ObjetComs.split(listActionOutils[i][0]).join("");
    }
    return ObjetComs;
}



function SwapCodeStyle1(namediv,nameclass) {

    var objComArea;
    var classComArea;
    var objComBody = new Array();
    if (namediv != '') {
        objComArea = document.getElementById(namediv);
        if (!objComArea || !objComArea.innerHTML) return;
        classComArea = objComArea.getElementsByTagName("div");
    } else {
        classComArea = document.getElementsByTagName("*");
    }
    for (var i = 0; i < classComArea.length; i++) {
        if (classComArea[i].className == nameclass) objComBody[objComBody.length] = classComArea[i];
    }
    for (var i = 0; i < objComBody.length; i++) {


        objComBody[i].innerHTML = RemplacerCodeStyle(objComBody[i].innerHTML);
    }
}
function SwapCodeStyle2(namediv,nameclass) {

    var objComArea;
    var classComArea;
    var objComBody = new Array();
    if (namediv != '') {
        objComArea = document.getElementById(namediv);
        if (!objComArea || !objComArea.innerHTML) return;
        classComArea = objComArea.getElementsByTagName("div");
    } else {
        classComArea = document.getElementsByTagName("*");
    }
    for (var i = 0; i < classComArea.length; i++) {
        if (classComArea[i].className == nameclass) objComBody[objComBody.length] = classComArea[i];
    }
    for (var i = 0; i < objComBody.length; i++) {


        objComBody[i].innerHTML = SupprimerCodeStyle(objComBody[i].innerHTML);
    }
}

function SwapCodeMenu(nameMenu) {

    if (document.getElementById(nameMenu)) {
    var objComArea = document.getElementById(nameMenu);
        objComArea.innerHTML = SupprimerCodeStyle(objComArea.innerHTML);
        objComArea.innerHTML = RemplacerTagEmoticon(objComArea.innerHTML);
    }
}

function SwapCodeEmoticon(namediv,nameclass) {

if (nameclass != "navlinks") { SwapCodeStyle1(namediv,nameclass); }
else { SwapCodeStyle2(namediv,nameclass); }

    var objComArea;
    var classComArea;
    var objComBody = new Array();
    if (namediv != '') {
        objComArea = document.getElementById(namediv);
        if (!objComArea || !objComArea.innerHTML) return;
        classComArea = objComArea.getElementsByTagName("div");
    } else {
        classComArea = document.getElementsByTagName("*");
    }
    for (var i = 0; i < classComArea.length; i++) {
        if (classComArea[i].className == nameclass) objComBody[objComBody.length] = classComArea[i];
    }
    for (var i = 0; i < objComBody.length; i++) {
        objComBody[i].innerHTML = RemplacerTagEmoticon(objComBody[i].innerHTML);
    }
}

 if (document.forms.frmComment) {
 
function openPopupSmilleys() {
 var wpops = window.open("","PopSmileys","width=350, height=250, toolbars=no, scrollbars=yes");
 wpops.document.write('<');
 wpops.document.write('head><');
 wpops.document.write('title>Plus de smileys<');
 wpops.document.write('/title><');
 wpops.document.write('/head><');
 wpops.document.write('body>');
 wpops.document.write('<');
 wpops.document.write('p>Cliquez une seule fois sur le smiley pour l\'ajouter au commentaire.<');
 wpops.document.write('/p><');
 wpops.document.write('hr />');
	    for (var i = 6; i < listEmoticon.length; i++) {
        wpops.document.write('<a onClick="window.opener.InsererEmoticon(\'' + listEmoticon[i][0] + '\');window.opener.visionner()"><img src="' + listEmoticon[i][1] + '"' + att + ' alt="' + listEmoticon[i][0] + '" title="' + listEmoticon[i][0] + '"  /></a>');
        }
 wpops.document.write('<');
 wpops.document.write('br /><');
 wpops.document.write('hr /><');
 wpops.document.write('input type="button" value="Retour au commentaire" onclick="window.close();"/>');
 wpops.document.write('<');
 wpops.document.write('/body>');

	
 wpops.focus();
}

function remplacerducode(dici) {
  var objtextcom = dici.commentBody;
  var textcom = objtextcom.value;
  textcom = textcom.split("<").join("&lt;");
  textcom = textcom.split(">").join("&gt;");
  textcom = textcom.split("http://").join(":url:");
  objtextcom.value = textcom;
handleSubmit(dici);
}
function InsererEmoticon(tag) {
    var item = '[' + tag + ']';
    var obj = document.frmComment.commentBody;	
    if (document.selection) {
        obj.focus();
        sel = document.selection.createRange();
        sel.text = item;
    } else if (obj.selectionStart || obj.selectionStart == '0') {
        var startPos = obj.selectionStart;
        var endPos = obj.selectionEnd;
        obj.value = obj.value.substring(0, startPos) + item + obj.value.substring(endPos, obj.value.length);
    } else {
        obj.value += item;
    }
}

function getNbSaut(elementTxt){
  var Nbrsaut = 0;
  var PosCn = elementTxt.indexOf("\r\n");
  while( PosCn > -1){
    PosCn = elementTxt.indexOf("\r\n", PosCn+2);
    Nbrsaut ++;
  }
  return( Nbrsaut);
}
function collerTags(tagDeb, tagFin) {
  var Obj = document.frmComment.commentBody;
    Obj.focus();
    if (typeof Obj.selectionStart != 'undefined') {
      var PosDeb = Obj.selectionStart;
      var PosFin = Obj.selectionEnd;
      var Chaine  = Obj.value;
      var szAvant = Chaine.substring( 0 , PosDeb);
      var szApres = Chaine.substring( PosFin, Obj.textLength );
      var szSelect = Chaine.substring( PosDeb, PosFin);
      Obj.value = szAvant + tagDeb + szSelect + tagFin + szApres;
      PosDeb = szAvant.length + tagDeb.length +szSelect.length;
      PosFin = PosDeb;
      Obj.setSelectionRange( PosDeb, PosFin);
      Obj.focus();
    }
    else { 
      var Decal;
      var Chaine   = document.selection.createRange();
      var szSelect = Chaine.text;
      Chaine.text  = tagDeb + szSelect + tagFin;
      Chaine = document.selection.createRange();
      if ( szSelect.length > 0) {
        Decal = tagDeb.length + szSelect.length;
        Decal -= getNbSaut( szSelect);
      }
      else {
        Decal = -tagFin.length;
      }
      Chaine.move('character', Decal);
      Chaine.collapse();
      Chaine.select();
    }
}

function SurlignInText() {
           var  objcolorsel=document.getElementById("selectbkCol");
           var couleursurlignage = objcolorsel.options[objcolorsel.selectedIndex].value;
           var entetesurlignage ="[Sur col=\'" + couleursurlignage + "\':]:"; 
           var finsurlignage ="[/Sur]";
           collerTags(entetesurlignage,finsurlignage);
 }
 
function colorInText() {
           var  objcolorsel=document.getElementById("selectfontCol");
           var couleursurlignage = objcolorsel.options[objcolorsel.selectedIndex].value;
           var entetesurlignage ="[Font col=\'" + couleursurlignage + "\':]:"; 
           var finsurlignage ="[/Font]";
           collerTags(entetesurlignage,finsurlignage);
 }

function sizeInText() {

var obj = document.frmComment.commentBody;
           var  objcolorsel=document.getElementById("selectsizefont");
           var couleursurlignage = objcolorsel.options[objcolorsel.selectedIndex].value;
           var entetesurlignage ="[Size=\'" + couleursurlignage + "\':]:"; 
           var finsurlignage ="[/Size]";
           collerTags(entetesurlignage,finsurlignage);
 }


function insertURLInText() {
var obj = document.frmComment.commentBody;
           var  itemaddr = "";
           itemaddr = prompt("Entrer l'adresse http du lien", "http://");
		   itemaddr = itemaddr.split("http://").join(":url:");
    	   var 	itemname = "";
           itemname = prompt("Entrer le nom du lien", itemaddr);
           if (!itemaddr) itemname=itemaddr;
           itemaddr =  itemaddr.split("http://").join(":url:");
		   var item = "[URL]" + itemaddr + "[NAME]" + itemname + "[/URL]";
        if (document.selection) {
           obj.focus();
           sel = document.selection.createRange();
           sel.text = item;

      } else if (obj.selectionStart || obj.selectionStart == '0') {
            var startPos = obj.selectionStart;
            var endPos = obj.selectionEnd;
            obj.value = obj.value.substring(0, startPos) + item + obj.value.substring(endPos, obj.value.length);
            } else {
            obj.value += item;
      }
}
function inserImgInText() {
    var obj = document.frmComment.commentBody;
    var item = prompt("Entrer l'adresse http de l'image", "http://");
        item =  item.split("http://").join(":url:");
        item = BOutils[1][3] + item + BOutils[1][4]; 
	if (document.selection) {
      obj.focus();
      sel = document.selection.createRange();
      sel.text = item;
    } else if (obj.selectionStart || obj.selectionStart == '0') {
      var startPos = obj.selectionStart;
      var endPos = obj.selectionEnd;
      obj.value = obj.value.substring(0, startPos) + item + obj.value.substring(endPos, obj.value.length);
    } else {
      obj.value += item;
    }
 }

function inserTagInText(outil) {

           for (var i = 2; i < BOutils.length; i++) { 
              if (outil == BOutils[i][0]) {  collerTags(BOutils[i][3], BOutils[i][4]); }
           }
 }

function visionner() {
  var titrecom = document.frmComment.commentTitle.value;

  titrecom = RemplacerCodeStyle(titrecom);
  titrecom = RemplacerTagEmoticon(titrecom);
  titrecom = "<h6>" + titrecom + "</h6><p>";

  var textcom = document.frmComment.commentBody.value;
  textcom = textcom.split("<").join("&lt;");
  textcom = textcom.split(">").join("&gt;");
  textcom = textcom.split("\n").join("<br />");
  textcom = RemplacerCodeStyle(textcom);
  textcom = RemplacerTagEmoticon(textcom);

  var apercucom = titrecom + textcom +"</p>";
  var objvisu =  document.getElementById("visu");
  objvisu.innerHTML = apercucom;
}   	
}	
function modifierformulaire() {
 if (document.forms.frmComment) {
 var objselectfont = "<select name='selectfontCol' id='selectfontCol'  style='width: 50px; height:25px;padding: 0;margin: 0'> title='Couleur de texte'";
	objselectfont += "<option value='#000000' style='background-color: #000000;'></option>";
	objselectfont += "<option value='#910000' style='background-color: #910000;'></option>";
	objselectfont += "<option value='#F0F0F0' style='background-color: #F0F0F0;'></option>";
	objselectfont += "<option value='#F00000' style='background-color: #F00000;'></option>";
	objselectfont += "<option value='#F07070' style='background-color: #F07070;'></option>";
	objselectfont += "<option value='#F0D0D0' style='background-color: #F0D0D0;'></option>";
	objselectfont += "<option value='#F05030' style='background-color: #F05030;'></option>";
	objselectfont += "<option value='#F06040' style='background-color: #F06040;'></option>";
	objselectfont += "<option value='#F08060' style='background-color: #F08060;'></option>";
	objselectfont += "<option value='#F000F0' style='background-color: #F000F0;'></option>";
	objselectfont += "<option value='#F070F0' style='background-color: #F070F0;'></option>";
	objselectfont += "<option value='#F0D0F0' style='background-color: #F0D0F0;'></option>";
	objselectfont += "<option value='#0000F0' style='background-color: #0000F0;'></option>";
	objselectfont += "<option value='#7070F0' style='background-color: #7070F0;'></option>";
	objselectfont += "<option value='#D0D0F0' style='background-color: #D0D0F0;'></option>";
	objselectfont += "<option value='#00F0F0' style='background-color: #00F0F0;'></option>";
	objselectfont += "<option value='#70F0F0' style='background-color: #70F0F0;'></option>";
	objselectfont += "<option value='#D0F0F0' style='background-color: #D0F0F0;'></option>";
	objselectfont += "<option value='#00F000' style='background-color: #00F000;'></option>";
	objselectfont += "<option value='#70F070' style='background-color: #70F070;'></option>";
	objselectfont += "<option value='#D0F0D0' style='background-color: #D0F0D0;'></option>";
	objselectfont += "<option value='#F0F000' style='background-color: #F0F000;'></option>";
	objselectfont += "<option value='#F0F070' style='background-color: #F0F070;'></option>";
	objselectfont += "<option value='#F0F0D0' style='background-color: #F0F0D0;'></option>";
	objselectfont += "</select>";

var objselectbkcol = "<select name='selectbkCol' id='selectbkCol'  style='width: 50px; height:25px;padding: 0;margin: 0'> title='Couleur du surlignage'";
	objselectbkcol += "<option value='#910000' style='background-color: #910000; '></option>";
	objselectbkcol += "<option value='#FFFFFF' style='background-color: #FFFFFF; '></option>";
	objselectbkcol += "<option value='#FF0000' style='background-color: #FF0000; '></option>";
	objselectbkcol += "<option value='#FF6699' style='background-color: #FF6699; '></option>";
	objselectbkcol += "<option value='#404040' style='background-color: #404040; '></option>";
	objselectbkcol += "<option value='#CC0000' style='background-color: #CC0000; '></option>";
	objselectbkcol += "<option value='#000000' style='background-color: #000000; '></option>";
	objselectbkcol += "</select>";

var objselectsizefont ="<select name='selectsizefont' id='selectsizefont'  style='width: 50px; height:25px; padding: 0;margin: 0'> title='Taille du texte'";
	objselectsizefont += "<option value='6pt' >06pt</option>";
	objselectsizefont += "<option value='8pt' >08pt</option>";
	objselectsizefont += "<option value='10pt' >10pt</option>";
	objselectsizefont += "<option value='12pt' >12pt</option>";
	objselectsizefont += "<option value='14pt' >14pt</option>";
	objselectsizefont += "<option value='16pt' >16pt</option>";
	objselectsizefont += "<option value='18pt' >18pt</option>";
	objselectsizefont += "<option value='20pt' >20pt</option>";
	objselectsizefont += "<option value='22pt' >22pt</option>";
	objselectsizefont += "</select>";
	
	
 var formulaire = document.forms.frmComment;
   var valeurS=formulaire.elements.s.value;
    var valeurAuthorNickName= (formulaire.elements.authorNickName.value !=undefined ||formulaire.elements.authorNickName.value !="") ? (formulaire.elements.authorNickName.value) : "Visiteur";
    var valeurAuthorEmail= (formulaire.elements.authorEmail.value != undefined || formulaire.elements.authorEmail.value !="") ? (formulaire.elements.authorEmail.value) : ("visiteur@canalblog.com");
    var valeurAuthorWebsiteUrl= (formulaire.elements.authorWebsiteUrl.value != undefined || formulaire.elements.authorWebsiteUrl.value != "") ? (formulaire.elements.authorWebsiteUrl.value) : "";
    var valeurRememberInfo= formulaire.elements.rememberInfo.value ;
    var listeEmoticon = '';
	var textarea = 'document.frmComment.commentBody';
     for (var i = 0; i < 6; i++) {
     listeEmoticon +='<a href="javascript:;" onClick="InsererEmoticon(\'' + listEmoticon[i][0] + '\');visionner()"><img src="' + listEmoticon[i][1] + '"' + att + ' alt="' + listEmoticon[i][0] + '" title="' + listEmoticon[i][0] + '"  /></a>';
     }

    var outilPlusEmoticon = '<a onClick="openPopupSmilleys()"><img src="http://storage.canalblog.com/36/22/493778/30723013.gif" alt="Plus de smilleys" title="Plus de Smileys" border="0" style="vertical-align: middle; margin-left: 10px;"  /></a>';
    var outilSurlign = '<a onClick="SurlignInText();visionner()"><img src="http://storage.canalblog.com/01/18/493778/30710175.gif" alt="Surligner" title="Surligner le texte" border="0" style="vertical-align: middle; margin-left: 10px;"  /> </a>';
    var outilColorText = '<a onClick="colorInText();visionner()"><img src="http://storage.canalblog.com/84/19/493778/30710169.gif" alt="Couleur" title="Couleur du texte" border="0" style="vertical-align: middle; margin-left: 0px;"  /> </a>';
    var outilSizeText = '<a onClick="sizeInText();visionner()"><img src="http://storage.canalblog.com/46/05/493778/30710183.gif" alt="Taille" title="Taille du texte" border="0" style="vertical-align: middle; margin-left: 10px;"  /> </a>';
    var listeBOutils ='<a  onClick="insertURLInText();visionner()"><img src="' + BOutils[0][1] + '"  alt="' + BOutils[0][2] + '" title="' + BOutils[0][2] + '" border="0" style="vertical-align: middle;margin-left: 0px;" /></a>';
     listeBOutils += '<a  onClick="inserImgInText();visionner()"><img src="' + BOutils[1][1] + '"  alt="' + BOutils[1][2] + '" title="' + BOutils[1][2] + '" border="0" style="vertical-align: middle;margin-left: 0px;" /></a>';
     for (var i = 2; i < BOutils.length; i++) {
     listeBOutils += '<a  onClick="inserTagInText( \'' + BOutils[i][0] + '\');visionner()"><img src="' + BOutils[i][1] + '"  alt="' + BOutils[i][2] + '" title="' + BOutils[i][2] + '" border="0" style="vertical-align: middle;margin-left: 2px;" /></a>';
     }


  var nodeformulairesup = document.getElementById("frmComment");
  var feuillecontent = nodeformulairesup.parentNode;
  feuillecontent.removeChild(nodeformulairesup);
	
var newformulaire = "<hr /><p>Aper&ccedil;u :<a onClick='visionner();'> <img src='http://storage.canalblog.com/28/69/251752/19262613.gif' alt='Aper&ccedil;u du commentaire' title='Aper&ccedil;u du commentaire' border='0' style='vertical-align:middle' /></a><br /> </p> <p> ";
    newformulaire += "<div id='visu' style='width: 100%; border: solid 1px; padding: 3px'></div></p><form action='' method='post' name='frmComment' id='frmComment' onsubmit='remplacerducode(this)'>";
    newformulaire += "<input type='hidden' id='s' name='s' value='" + valeurS + "' /> <p> ";
    newformulaire += "<label for='authorNickName'>Ton Pseudo : </label> ";
    newformulaire += "<input id='authorNickName' name='authorNickName' value='" + valeurAuthorNickName + "' maxlength='64' style='width:250px' onchange='handleChange(this)' /> <br /> </p> <p> ";
    newformulaire += "<label for='authorEmail'>Adresse email : </label> ";
    newformulaire += "<input id='authorEmail' name='authorEmail' value='" + valeurAuthorEmail + "' maxlength='64' style='width:255px' onchange='handleChange(this)' /> <br /> </p> <p> ";
    newformulaire += "<label for='authorWebsiteUrl'>L'adresse de ton blog : </label> ";
    newformulaire += "<input id='authorWebsiteUrl' name='authorWebsiteUrl' value='" + valeurAuthorWebsiteUrl + "' maxlength='128' style='width:240px' onchange='handleChange(this)' /> </p> <p> ";
    

        
        newformulaire += outilColorText + objselectfont;
	newformulaire += outilSizeText + objselectsizefont;
	newformulaire += outilSurlign + objselectbkcol;
	newformulaire += " <br /> </p> <p> ";
	newformulaire += listeBOutils;

    newformulaire += " <br /> </p> <p> ";
    newformulaire += "<label for='commentTitle'>Titre du commentaire : </label> ";
    newformulaire += "<input id='commentTitle' name='commentTitle' value='' maxlength='128' style='width:255px' /> <br /> ";

	newformulaire += "<br /><textarea onKeydown='visionner()' onKeyup='visionner()' id='commentBody' name='commentBody' rows='12' cols='58'></textarea> </p> <p>";
	newformulaire += listeEmoticon + outilPlusEmoticon;
        newformulaire += "</p><p><input onclick='handleCheck(this)' type='checkbox' id='rememberInfo' name='rememberInfo' value='1' /><label> ";
        newformulaire += "Se souvenir de mes informations personnelles</label> </p> <input  type='submit' name='submit' value='Envoyer' /> <br /></form> ";



feuillecontent.innerHTML = feuillecontent.innerHTML.replace("Poster un commentaire","<hr />") + newformulaire;
if (valeurAuthorNickName) document.frmComment.rememberInfo.checked = 1;
}
}

function remplacerSmileys() {
SwapCodeEmoticon("leftbar","navlinks");
SwapCodeEmoticon("content","blogbody");
SwapCodeEmoticon("rightbar","navlinks");
SwapCodeMenu("menu3");
}

document.write('<a href="http://demolitetuto.canalblog.com/" alt="Ajout smileys" title="Ajout Smileys" target="_blank"><img src="http://storage.canalblog.com/08/57/255038/15624232.gif" /></a>');
addEvent(window, "load", remplacerSmileys);
addEvent(window, "load", modifierformulaire);
