// JavaScript Document


function GlowValues() {
	ChangePropertyById('prevutext', 'style.fontWeight', document.frmGlow.txtbold.checked ? 'bold' : 'normal'); 
	ChangePropertyById('prevutext', 'style.fontStyle', document.frmGlow.txtitalic.checked ? 'italic' : 'normal'); 
	if (document.frmGlow.textfont.value != "") 	 ChangePropertyById('prevutext','style.fontFamily',document.frmGlow.textfont.value); 
	if (document.frmGlow.gtextcolor.value != "") ChangePropertyById('prevutext','style.color',document.frmGlow.gtextcolor.value);
	if (document.frmGlow.gtextsize.value != "")  ChangePropertyById('prevutext','style.fontSize',document.frmGlow.gtextsize.value); 
	if (document.frmGlow.glowcolor.value != "" && document.frmGlow.glowstrength.value != "") { 
		ChangePropertyById('prevutext', 'style.filter','Glow(Color=' + document.frmGlow.glowcolor.value + ', Strength=' + document.frmGlow.glowstrength.value + ')' ); 
	}//EOF if
}// EOF GlowValues()

function GlowCode() {
	var code = "<span style=\"width: 150px; height: 50px; ";		
	if (document.frmGlow.textfont.value != "")	code += "font-family: " + document.frmGlow.textfont.value + "; ";
	if (document.frmGlow.gtextcolor.value != "")code += "color: " + document.frmGlow.gtextcolor.value + "; ";
	if (document.frmGlow.gtextsize.value != "")	code += "font-size: " + document.frmGlow.gtextsize.value + "; ";
	if (document.frmGlow.glowcolor.value != "" && document.frmGlow.glowstrength.value != "") {
		code += "filter:glow(color=" + document.frmGlow.glowcolor.value + " , strength=" + document.frmGlow.glowstrength.value + "); ";
	}//EOF if
	if (document.frmGlow.txtbold.checked)	 code += "font-weight: bold; ";
	if (document.frmGlow.txtitalic.checked) code += "font-style: italic; ";

	code += "\">" + document.frmGlow.gtext.value + "</span>";

	document.frmGlow.gtxtcode.value = code;
}// EOF GlowCode()

//===================================================================================================

