// JavaScript Document

function OtextCoder() {
	var code = '<p style=\"line-height:' + document.frmOtxt.lineHeight.value + '; text-align:' + document.frmOtxt.otxtAlign.value + '\">\n';
	
	code += '<span style=\"';
	if (document.frmOtxt.otxt1Font.value != "") code += "font-family: " + document.frmOtxt.otxt1Font.value + "; ";
	if (document.frmOtxt.otxt1Size.value != "") code += "font-size: " + document.frmOtxt.otxt1Size.value + "; ";
	if (document.frmOtxt.otxt1Color.value != "") code += "color: " + document.frmOtxt.otxt1Color.value + "; ";
	if (document.frmOtxt.otxt1Bold.checked) code += "font-weight: bold; ";
	if (document.frmOtxt.otxt1Italic.checked) code += "font-style: italic; ";
	code += "\">" + document.frmOtxt.otxt1.value + "</span><br/>\n";
	
	code += '<span style=\"';
	if (document.frmOtxt.otxt2Font.value != "") code += "font-family: " + document.frmOtxt.otxt2Font.value + "; ";
	if (document.frmOtxt.otxt2Size.value != "") code += "font-size: " + document.frmOtxt.otxt2Size.value + "; ";
	if (document.frmOtxt.otxt2Color.value != "") code += "color: " + document.frmOtxt.otxt2Color.value + "; ";
	if (document.frmOtxt.otxt2Bold.checked) code += "font-weight: bold; ";
	if (document.frmOtxt.otxt2Italic.checked) code += "font-style: italic; ";
	code += "\">" + document.frmOtxt.otxt2.value + "</span>\n";
	code += '</p>';

	document.frmOtxt.otxtcode.value = code;
}//EOF OtextCoder()

