function swapInput() {
var different;
var newFeed;

if (document.forum.whichone.value == "plain") {different = "plain";}
else if (document.forum.whichone.value == "MAIN") {different = "GALiRe";}
else {different = "formatted";}


if (different == "plain") {
document.text_html.feedback.value = document.forum.feedback.value+"";

document.getElementById("secondaryBody").innerHTML="<br><iframe name='HTMLFeedback' width='700' height='475' frameborder='0' cellspacing='0' cellpadding='0' scrolling='no'></iframe><br><br>";

document.text_html.text_html.disabled=true;
document.format_html.format_html.disabled=false;
document.GALiRe.GALiRe.disabled=false;
document.forum.undo.disabled=true;

newFeed = "<div style='margin:0px;height:0px;width:0px;overflow:hidden;display:none;padding:0px;'><br><textarea name='feedback' wrap='off' style='color:#FFFFFF;visibility:hidden;border:none;scrollbar-Track-Color:#6699FF;overflow:scroll;background:#6699FF;font-family:verdana;font-size:11px;'>"+escape(document.forum.feedback.value)+"</textarea></div>";
document.getElementById("mainBody").innerHTML=newFeed;

document.forum.feedback.value = document.text_html.feedback.value+"";
}


/////////////////////////////////////////////////////////////////


else if (different == "formatted") {
document.format_html.feedback.value = document.forum.feedback.value+"";

document.getElementById("secondaryBody").innerHTML="<br><iframe name='prevFeedback' width='700' height='475' frameborder='0' cellspacing='0' cellpadding='0' scrolling='auto'></iframe><br><br>";

document.text_html.text_html.disabled=false;
document.format_html.format_html.disabled=true;
document.GALiRe.GALiRe.disabled=false;
document.forum.undo.disabled=true;

newFeed = "<div style='margin:0px;height:0px;width:0px;overflow:hidden;display:none;padding:0px;'><br><textarea name='feedback' wrap='off' style='color:#FFFFFF;visibility:hidden;border:none;scrollbar-Track-Color:#6699FF;overflow:scroll;background:#6699FF;font-family:verdana;font-size:11px;'>"+escape(document.forum.feedback.value)+"</textarea></div>";
document.getElementById("mainBody").innerHTML=newFeed;

document.forum.feedback.value = document.format_html.feedback.value+"";
}


/////////////////////////////////////////////////////////////////


else if (different == "GALiRe") {
document.getElementById("secondaryBody").innerHTML="";

newFeed = "<br><textarea name='feedback' wrap='off' rows='35' onkeyup='updateSize(),changeUndo()' cols='114' style='color:#FFFFFF;border:none;scrollbar-Track-Color:#6699FF;overflow:scroll;background:#6699FF;font-family:verdana;font-size:11px;'>"+escape(document.forum.feedback.value)+"</textarea>";
document.getElementById("mainBody").innerHTML=newFeed;

document.text_html.text_html.disabled=false;
document.format_html.format_html.disabled=false;
document.GALiRe.GALiRe.disabled=true;
document.forum.undo.disabled=false;

document.forum.feedback.value = unescape(document.forum.feedback.value)+"";
}


/////////////////////////////////////////////////////////////////
else {}
document.all.footer.innerHTML=document.all.footer.innerHTML;
document.getElementById("footer").innerHTML=document.getElementById("footer").innerHTML;
}


function ouvreFerme(title){
if (document.getElementById(""+title+"Closed").style.display == "none") {document.getElementById(""+title+"Closed").style.display = "block";document.getElementById(""+title+"Open").style.display = "none";}
else {document.getElementById(""+title+"Closed").style.display = "none";document.getElementById(""+title+"Open").style.display = "block";}
}
