function Toggle(text)
{

	if (text == "Gras")
		document.execCommand("Bold");

	else if (text == "Italic")
		document.execCommand("Italic");

	else if (text == "VertClair")
	{
		document.execCommand("ForeColor", false, "#759513");
	}
		
	else if (text == "Vert")
	{
		document.execCommand("ForeColor", false, "#606707");
	}
		
	else if (text == "VertFonce")
	{
		document.execCommand("ForeColor", false, "#444905");
	}
		
	else if (text == "Noir")
	{
		document.execCommand("ForeColor", false, "#000000");
	}
	else if (text == "Rouge")
	{
		document.execCommand("ForeColor", false, "#FF0000");
	}
	else if (text == "FontColor")
	{
		theColor = document.all.fontcolor.value;
		if (theColor != "")
			document.execCommand("ForeColor", false, theColor);
	}
	else if (text == "FontName")
	{
		theName = document.all.fontname.value;
		if (theName != "")
			document.execCommand("FontName", false, theName);
	}
	else if (text == "AlignGauche")
	{
		document.execCommand("JustifyLeft");
	}
	else if (text == "AlignCentre")
	{
		document.execCommand("JustifyCenter");
	}
	else if (text == "AlignDroite")
	{
		document.execCommand("justifyright");
	}
	else if (text == "AlignJustifi")
	{
		document.execCommand("JustifyFull");
	}
	else if (text == "RetraitGauche")
	{
		document.execCommand("Outdent");
	}
	else if (text == "RetraitDroite")
	{
		document.execCommand("Indent");
	}
	else if (text == "Puce")
	{
		document.execCommand("InsertUnorderedList");
	}
	else if (text == "Numero")
	{
		document.execCommand("InsertOrderedList");
	}
	else if (text == "InsertImage")
	{
		theImg = document.all.imagepath.value;
		if (theImg != "")
			document.execCommand("InsertImage", false, theImg);
	}
	else if (text == "InsertPictoRose")
	{
		theImg = "images/pictorose.jpg";
		if (theImg != "")
			document.execCommand("InsertImage", false, theImg);
	}
	
	else if (text != "")
	{
		theSize = document.all.taille.value;
		if (theSize != "")		
			document.execCommand("FontSize", false, theSize);
	}
};
