<!--

// editor command
function Toggle(){

	// get button label
	text = window.event.srcElement.innerText;

	if (text == "ContentEditable")
	{
		if (document.all("edit").contentEditable == "true")
		{
			document.all("edit").contentEditable = "false";
			window.event.srcElement.style.borderStyle = "outset";
		}
		else
		{
			document.all("edit").contentEditable = "true";
			window.event.srcElement.style.borderStyle = "inset";
		}

		return;
	}

	else if (text == "Bold")
		document.execCommand("Bold");

	else if (text == "Italic")
		document.execCommand("Italic");

	else if (text == "FontColor")
	{
		theColor = document.all.fontcolor.value;
		if (theColor != "")
			document.execCommand("ForeColor", false, theColor);
	}

	else if (text == "FontSize")
	{
		theSize = document.all.fontsize.value;
		if (theSize != "")
			document.execCommand("FontSize", false, theSize);
	}

	else if (text == "FontName")
	{
		theName = document.all.fontname.value;

		if (theName != "")
			document.execCommand("FontName", false, theName);
	}

	else if (text == "Insert Image")
	{
		theImg = document.all.imagepath.value;
		if (theImg != "")
			document.execCommand("InsertImage", false, theImg);
	}

	else if (text == "Insert Link")
	{
		theLink = document.all.linkpath.value;
		if (theLink != "")
			document.execCommand("CreateLink", false, theLink);
	}
	window.event.srcElement.style.borderStyle = "outset";
}

function textarea_refresh(){
		document.all.text.value = document.all.text_content.innerHTML;
}

//-->

