
var HE_nColorMode = 0;
var HE_sel;
var HE_nWidth;
var HE_rng;
var HE_nMode;
var HE_strCSS = "";
var HE_strDomain;
var HE_nFileCount;
var HE_isAdmin=0;

function GnxHEditor(nWidth, strDomain)
{
	HE_nWidth = nWidth;
	if (strDomain + "" == "")
	{
		HE_strDomain = "www.nexon.com"
	} else {
		HE_strDomain = strDomain;
	}
	HE_nFileCount = 0;
	
	this.Write = GnxHE_Write;
	this.GetContents = GnxHE_GetContents;
	this.GetTextContents = GnxHE_GetTextContent;
	this.SetContents = GnxHE_SetContents;
	this.SetFocus = GnxHE_SetFocus;
	this.SetCSS = GnxHE_SetCSS;
	this.GetOidFiles = Gnx_getOidFiles;
}

function GnxHE_Write()
{
	document.write("\
<table cellpadding='0' cellspacing='0' border='0' width='" + HE_nWidth + "'>\
<tr>\
	<td align='center'>\
		<table cellpadding='0' cellspacing='0' border='0' width='" + (HE_nWidth-20) + "'>\
		<tr>\
			<td height='35' width=210>&nbsp;</td>\
			<td>\
				<div id='colorPick' style='display:none'>\
					<table border='0' cellpadding='0' cellspacing='1' bgcolor='#333333'>\
					<tr>\
						<td align='center' bgcolor='#ffffff' width='10' height='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='ffffff'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#ffffff'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#FE9CF0' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='FE9CF0'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#FE9CF0'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#EE89B5' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='EE89B5'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#EE89B5'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#F69679' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='F69679'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#F69679'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#FEBF7A' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='FEBF7A'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#FEBF7A'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#FFF799' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='FFF799'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#FFF799'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#D7E36F' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='D7E36F'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#D7E36F'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#B1D56C' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='B1D56C'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#B1D56C'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#8DDCA0' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='8DDCA0'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#8DDCA0'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#70EFFA' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='70EFFA'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#70EFFA'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#70D4FE' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='70D4FE'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#70D4FE'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#6CA9FC' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='6CA9FC'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#6CA9FC'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#AB93FB' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='AB93FB'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#AB93FB'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#CA8EFB' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='CA8EFB'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#CA8EFB'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#CF8CC1' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='CF8CC1'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#CF8CC1'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#DFA2A2' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='DFA2A2'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#DFA2A2'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#CCADA2' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='CCADA2'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#CCADA2'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#D0B283' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='D0B283'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#D0B283'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#BBCEAE' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='BBCEAE'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#BBCEAE'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
					</tr>\
					<tr>\
						<td align='center' bgcolor='#808080' width='10' height='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='808080'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#808080'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#E122C5' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='E122C5'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#E122C5'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#C90C72' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='C90C72'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#C90C72'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#FF1100' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='FF1100'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#FF1100'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#FD8A02' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='FD8A02'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#FD8A02'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#FDD103' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='FDD103'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#FDD103'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#A0B301' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='A0B301'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#A0B301'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#699E01' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='699E01'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#699E01'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#0C952C' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='0C952C'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#0C952C'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#0CADC5' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='0CADC5'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#0CADC5'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#019CDD' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='019CDD'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#019CDD'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#086AEF' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='086AEF'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#086AEF'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#7A56EF' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='7A56EF'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#7A56EF'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#A037F4' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='A037F4'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#A037F4'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#A9328F' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='A9328F'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#A9328F'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#B85252' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='B85252'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#B85252'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#B36A4F' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='B36A4F'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#B36A4F'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#AC803A' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='AC803A'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#AC803A'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#7B916B' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='7B916B'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#7B916B'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
					</tr>\
					<tr>\
						<td align='center' bgcolor='#000000' width='10' height='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='000000'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#000000'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#93017E' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='93017E'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#93017E'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#740340' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='740340'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#740340'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#9F0C13' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='9F0C13'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#9F0C13'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#7D4800' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='7D4800'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#7D4800'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#AA8C00' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='AA8C00'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#AA8C00'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#6C7900' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='6C7900'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#6C7900'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#385500' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='385500'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#385500'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#016418' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='016418'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#016418'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#007283' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='007283'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#007283'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#004C81' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='004C81'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#004C81'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#052971' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='052971'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#052971'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#360FB4' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='360FB4'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#360FB4'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#530294' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='530294'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#530294'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#4E003D' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='4E003D'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#4E003D'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#800000' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='800000'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#800000'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#812F11' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='812F11'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#812F11'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#744B0A' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='744B0A'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#744B0A'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
						<td align='center' bgcolor='#334228' width='10' onclick='HE_setColor(this)' onMouseOver=\"this.style.backgroundColor='#ff00ff'\" onMouseOut=\"this.style.backgroundColor='334228'\">\
							<table width='8' height='8' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#334228'><img src='http://http://s.nx.com/S2/Nexon2006/image/global/bg_blank.gif'  width='8' height='8' border='0'></td></tr></table>\
						</td>\
					</tr>\
					</table>\
				</div>\
			</td>\
		</tr>\
		</table>\
		<table cellpadding='0' cellspacing='1' border='0' width='" + (HE_nWidth-20) + "' bgcolor='#CECFCE' id='mode_edit'>\
		<tr bgcolor='#ffffff'>\
			<td height='26' style='padding-left:6px;'>\
				<table cellpadding='0' cellspacing='0' border='0'>\
				<tr>\
					<td width='87'>\
						<select name='fontName' style='width:80px;' onchange='HE_fontNameChanged()'>\
							<option value='0'>±Û²Ã\
							<option value='µ¸¿ò'>µ¸¿ò\
							<option value='±¼¸²'>±¼¸²\
							<option value='±Ã¼­'>±Ã¼­\
							<option value='¹ÙÅÁ'>¹ÙÅÁ\
							<option value='Verdana'>Verdana\
							<option value='Helvetica'>Helvetica\
							<option value='Trebuchet'>Trebuchet\
							<option value='Arial'>Arial\
							<option value='Times'>Times\
							<option value='Courier'>Courier\
						</select>\
					</td>\
					<td width='45'>\
						<select name='fontSize' style='width:50px;' onchange='HE_fontSizeChanged()'>\
							<option value='0' selected>Å©±â\
							<option value='1'>8\
							<option value='2'>10\
							<option value='3'>12\
							<option value='4'>14\
							<option value='5'>18\
							<option value='6'>24\
							<option value='7'>36\
						</select>\
					</td>\
					<td width='63'>\
						<table cellpadding='0' cellspacing='0' border='0'>\
						<tr>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed101.gif' width='19' height='20' border='0'\
								id = 'ed_bold' onmouseover = \"document.all.ed_bold.src='http://file.nx.com/image/button/ed101_on.gif'\"\
								onmouseout = \"document.all.ed_bold.src='http://file.nx.com/image/button/ed101.gif'\"\
								onmousedown = \"document.all.ed_bold.src='http://file.nx.com/image/button/ed101_pr.gif'\"\
								onmouseup = \"document.all.ed_bold.src='http://file.nx.com/image/button/ed101_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='bold' alt='ÁøÇÏ°Ô'></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed102.gif' width='19' height='20' border='0'\
								id = 'ed_italic' onmouseover = \"document.all.ed_italic.src='http://file.nx.com/image/button/ed102_on.gif'\"\
								onmouseout = \"document.all.ed_italic.src='http://file.nx.com/image/button/ed102.gif'\"\
								onmousedown = \"document.all.ed_italic.src='http://file.nx.com/image/button/ed102_pr.gif'\"\
								onmouseup = \"document.all.ed_italic.src='http://file.nx.com/image/button/ed102_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='italic' alt='±â¿ïÀÓ'></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed103.gif' width='20' height='20' border='0'\
								id = 'ed_underline' onmouseover = \"document.all.ed_underline.src='http://file.nx.com/image/button/ed103_on.gif'\"\
								onmouseout = \"document.all.ed_underline.src='http://file.nx.com/image/button/ed103.gif'\"\
								onmousedown = \"document.all.ed_underline.src='http://file.nx.com/image/button/ed103_pr.gif'\"\
								onmouseup = \"document.all.ed_underline.src='http://file.nx.com/image/button/ed103_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='underline' alt='¹ØÁÙ'></td>\
						</tr>\
						</table>\
					</td>\
					<td width='63'>\
						<table cellpadding='0' cellspacing='0' border='0'>\
						<tr>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed201.gif'  width='19' height='20' border='0'\
								id = 'ed_tcolor' onmouseover = \"document.all.ed_tcolor.src='http://file.nx.com/image/button/ed201_on.gif'\"\
								onmouseout = \"document.all.ed_tcolor.src='http://file.nx.com/image/button/ed201.gif'\"\
								onmousedown = \"document.all.ed_tcolor.src='http://file.nx.com/image/button/ed201_pr.gif'\"\
								onmouseup = \"document.all.ed_tcolor.src='http://file.nx.com/image/button/ed201_on.gif'\"\
								onclick = 'HE_showColor(0)' alt='±ÛÀÚ»ö'></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed202.gif'  width='19' height='20' border='0'\
								id = 'ed_tbcolor' onmouseover = \"document.all.ed_tbcolor.src='http://file.nx.com/image/button/ed202_on.gif'\"\
								onmouseout = \"document.all.ed_tbcolor.src='http://file.nx.com/image/button/ed202.gif'\"\
								onmousedown = \"document.all.ed_tbcolor.src='http://file.nx.com/image/button/ed202_pr.gif'\"\
								onmouseup = \"document.all.ed_tbcolor.src='http://file.nx.com/image/button/ed202_on.gif'\"\
								onclick = 'HE_showColor(1)' alt='±ÛÀÚ¹è°æ»ö'></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed203.gif'  width='20' height='20' border='0'\
								id = 'ed_bcolor' onmouseover = \"document.all.ed_bcolor.src='http://file.nx.com/image/button/ed203_on.gif'\"\
								onmouseout = \"document.all.ed_bcolor.src='http://file.nx.com/image/button/ed203.gif'\"\
								onmousedown = \"document.all.ed_bcolor.src='http://file.nx.com/image/button/ed203_pr.gif'\"\
								onmouseup = \"document.all.ed_bcolor.src='http://file.nx.com/image/button/ed203_on.gif'\"\
								onclick = 'HE_showColor(2)' alt='¹ÙÅÁ»ö'\
							></td>\
						</tr>\
						</table>\
					</td>\
					<td width='63'>\
						<table cellpadding='0' cellspacing='0' border='0'>\
						<tr>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed301.gif'  width='19' height='20' border='0'\
								id = 'ed_left' onmouseover = \"document.all.ed_left.src='http://file.nx.com/image/button/ed301_on.gif'\"\
								onmouseout = \"document.all.ed_left.src='http://file.nx.com/image/button/ed301.gif'\"\
								onmousedown = \"document.all.ed_left.src='http://file.nx.com/image/button/ed301_pr.gif'\"\
								onmouseup = \"document.all.ed_left.src='http://file.nx.com/image/button/ed301_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='JustifyLeft' alt='¿ÞÂÊ¸ÂÃã'\
							></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed302.gif'  width='19' height='20' border='0'\
								id = 'ed_center' onmouseover = \"document.all.ed_center.src='http://file.nx.com/image/button/ed302_on.gif'\"\
								onmouseout = \"document.all.ed_center.src='http://file.nx.com/image/button/ed302.gif'\"\
								onmousedown = \"document.all.ed_center.src='http://file.nx.com/image/button/ed302_pr.gif'\"\
								onmouseup = \"document.all.ed_center.src='http://file.nx.com/image/button/ed302_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='JustifyCenter' alt='°¡¿îµ¥¸ÂÃã'\
							></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed303.gif'  width='20' height='20' border='0'\
								id = 'ed_right' onmouseover = \"document.all.ed_right.src='http://file.nx.com/image/button/ed303_on.gif'\"\
								onmouseout = \"document.all.ed_right.src='http://file.nx.com/image/button/ed303.gif'\"\
								onmousedown = \"document.all.ed_right.src='http://file.nx.com/image/button/ed303_pr.gif'\"\
								onmouseup = \"document.all.ed_right.src='http://file.nx.com/image/button/ed303_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='JustifyRight' alt='¿À¸¥ÂÊ¸ÂÃã'\
							></td>\
						</tr>\
						</table>\
					</td>\
					<td width='82'>\
						<table cellpadding='0' cellspacing='0' border='0'>\
						<tr>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed401.gif'  width='19' height='20' border='0'\
								id = 'ed_order' onmouseover = \"document.all.ed_order.src='http://file.nx.com/image/button/ed401_on.gif'\"\
								onmouseout = \"document.all.ed_order.src='http://file.nx.com/image/button/ed401.gif'\"\
								onmousedown = \"document.all.ed_order.src='http://file.nx.com/image/button/ed401_pr.gif'\"\
								onmouseup = \"document.all.ed_order.src='http://file.nx.com/image/button/ed401_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='InsertOrderedList' alt='¹øÈ£¸Å±â±â'\
							></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed402.gif'  width='19' height='20' border='0'\
								id = 'ed_unorder' onmouseover = \"document.all.ed_unorder.src='http://file.nx.com/image/button/ed402_on.gif'\"\
								onmouseout = \"document.all.ed_unorder.src='http://file.nx.com/image/button/ed402.gif'\"\
								onmousedown = \"document.all.ed_unorder.src='http://file.nx.com/image/button/ed402_pr.gif'\"\
								onmouseup = \"document.all.ed_unorder.src='http://file.nx.com/image/button/ed402_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='InsertUnorderedList' alt='±Û¸Ó¸®±âÈ£'\
							></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed403.gif'  width='19' height='20' border='0'\
								id = 'ed_indent' onmouseover = \"document.all.ed_indent.src='http://file.nx.com/image/button/ed403_on.gif'\"\
								onmouseout = \"document.all.ed_indent.src='http://file.nx.com/image/button/ed403.gif'\"\
								onmousedown = \"document.all.ed_indent.src='http://file.nx.com/image/button/ed403_pr.gif'\"\
								onmouseup = \"document.all.ed_indent.src='http://file.nx.com/image/button/ed403_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='Indent' alt='µé¿©¾²±â'\
							></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed404.gif'  width='20' height='20' border='0'\
								id = 'ed_outdent' onmouseover = \"document.all.ed_outdent.src='http://file.nx.com/image/button/ed404_on.gif'\"\
								onmouseout = \"document.all.ed_outdent.src='http://file.nx.com/image/button/ed404.gif'\"\
								onmousedown = \"document.all.ed_outdent.src='http://file.nx.com/image/button/ed404_pr.gif'\"\
								onmouseup = \"document.all.ed_outdent.src='http://file.nx.com/image/button/ed404_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='Outdent' alt='³»¾î¾²±â'\
							></td>\
						</tr>\
						</table>\
					</td>\
					<td width='44'>\
						<table cellpadding='0' cellspacing='0' border='0'>\
						<tr>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed501.gif'  width='19' height='20' border='0'\
								id = 'ed_table' onmouseover = \"document.all.ed_table.src='http://file.nx.com/image/button/ed501_on.gif'\"\
								onmouseout = \"document.all.ed_table.src='http://file.nx.com/image/button/ed501.gif'\"\
								onmousedown = \"document.all.ed_table.src='http://file.nx.com/image/button/ed501_pr.gif'\"\
								onmouseup = \"document.all.ed_table.src='http://file.nx.com/image/button/ed501_on.gif'\"\
								onclick='HE_showLayer(0)' alt='Å×ÀÌºí»ðÀÔ'></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed502.gif'  width='20' height='20' border='0'\
								id = 'ed_emoti' onmouseover = \"document.all.ed_emoti.src='http://file.nx.com/image/button/ed502_on.gif'\"\
								onmouseout = \"document.all.ed_emoti.src='http://file.nx.com/image/button/ed502.gif'\"\
								onmousedown = \"document.all.ed_emoti.src='http://file.nx.com/image/button/ed502_pr.gif'\"\
								onmouseup = \"document.all.ed_emoti.src='http://file.nx.com/image/button/ed502_on.gif'\"\
								onclick='HE_showLayer(1)' alt='ÀÌ¸ðÆ¼ÄÜ'></td>\
						</tr>\
						</table>\
					</td>\
					<td width='63'>\
						<table cellpadding='0' cellspacing='0' border='0'>\
						<tr>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed601.gif'  width='19' height='20' border='0'\
								id = 'ed_pic' onmouseover = \"document.all.ed_pic.src='http://file.nx.com/image/button/ed601_on.gif'\"\
								onmouseout = \"document.all.ed_pic.src='http://file.nx.com/image/button/ed601.gif'\"\
								onmousedown = \"document.all.ed_pic.src='http://file.nx.com/image/button/ed601_pr.gif'\"\
								onmouseup = \"document.all.ed_pic.src='http://file.nx.com/image/button/ed601_on.gif'\"\
								onclick='HE_showLayer(2)' alt='±×¸²»ðÀÔ'></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed602.gif'  width='19' height='20' border='0'\
								id = 'ed_bgpic' onmouseover = \"document.all.ed_bgpic.src='http://file.nx.com/image/button/ed602_on.gif'\"\
								onmouseout = \"document.all.ed_bgpic.src='http://file.nx.com/image/button/ed602.gif'\"\
								onmousedown = \"document.all.ed_bgpic.src='http://file.nx.com/image/button/ed602_pr.gif'\"\
								onmouseup = \"document.all.ed_bgpic.src='http://file.nx.com/image/button/ed602_on.gif'\"\
								onclick='HE_showLayer(3)' alt='¹è°æ±×¸²»ðÀÔ'></td>\
							<td><img style='cursor:hand' src='http://file.nx.com/image/button/ed603.gif'  width='20' height='20' border='0'\
								id = 'ed_link' onmouseover = \"document.all.ed_link.src='http://file.nx.com/image/button/ed603_on.gif'\"\
								onmouseout = \"document.all.ed_link.src='http://file.nx.com/image/button/ed603.gif'\"\
								onmousedown = \"document.all.ed_link.src='http://file.nx.com/image/button/ed603_pr.gif'\"\
								onmouseup = \"document.all.ed_link.src='http://file.nx.com/image/button/ed603_on.gif'\"\
								onclick='HE_showLayer(4)' alt='¸µÅ©¸¸µé±â'></td>\
						</tr>\
						</table>\
					</td>\
					<td>\
						<table cellpadding='0' cellspacing='0' border='0'>\
						<tr>\
							<td><img src='http://file.nx.com/image/button/ed701.gif' width='19' height='20' border='0'\
								id = 'ed_undo' onmouseover = \"document.all.ed_undo.src='http://file.nx.com/image/button/ed701_on.gif'\"\
								onmouseout = \"document.all.ed_undo.src='http://file.nx.com/image/button/ed701.gif'\"\
								onmousedown = \"document.all.ed_undo.src='http://file.nx.com/image/button/ed701_pr.gif'\"\
								onmouseup = \"document.all.ed_undo.src='http://file.nx.com/image/button/ed701_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='Undo' alt='Undo'\
							></td>\
							<td><img src='http://file.nx.com/image/button/ed702.gif' width='20' height='20' border='0'\
								id = 'ed_redo' onmouseover = \"document.all.ed_redo.src='http://file.nx.com/image/button/ed702_on.gif'\"\
								onmouseout = \"document.all.ed_redo.src='http://file.nx.com/image/button/ed702.gif'\"\
								onmousedown = \"document.all.ed_redo.src='http://file.nx.com/image/button/ed702_pr.gif'\"\
								onmouseup = \"document.all.ed_redo.src='http://file.nx.com/image/button/ed702_on.gif'\"\
								onclick='HE_clickCmd(this)' cmd='Redo' alt='Redo'\
							></td>\
						</tr>\
						</table>\
					</td>\
				</tr>\
				<tr>\
					<td colspan=9>\
						<table cellpadding='0' cellspacing='0' border='0' height=0>\
						<tr>\
							<td id='t_space'></td>\
							<td>\
								<div id='popTable' style='display:none;width:260px;height:137px;position:absolute;'>\
									<iframe id='i_popTable' frameborder=0 marginheight=0 marginwidth=0 scrolling=no width=260 height=137></iframe>\
								</div>\
								<div id='popPic' style='display:none;width:310px;height:192px;position:absolute;'>\
									<iframe id='i_popPic' frameborder=0 marginheight=0 marginwidth=0 scrolling=no width=310 height=192></iframe>\
								</div>\
								<div id='popBgPic' style='display:none;width:490px;height:488px;position:absolute;'>\
									<iframe id='i_popBgPic' frameborder=0 marginheight=0 marginwidth=0 scrolling=no width=490 height=488></iframe>\
								</div>\
								<div id='popLink' style='display:none;width:310px;height:109px;position:absolute;'>\
									<iframe id='i_popLink' frameborder=0 marginheight=0 marginwidth=0 scrolling=no width=310 height=109></iframe>\
								</div>\
								<div id='emoti' style='width:280;height:404;position:absolute;display:none;'>\
									<iframe id='i_popEmoti' frameborder=0 marginheight=0 marginwidth=0 scrolling=no width=280 height=404></iframe>\
								</div>\
							</td>\
						</tr>\
						</table>\
					</td>\
				</tr>\
				</table>\
			</td>\
		</tr>\
		</table>\
		<table cellpadding='0' cellspacing='0' border='0' width='" + (HE_nWidth-20) + "' id='mode_edit2'>\
		<tr>\
			<td style='padding:5 0 10 0;'>\
			<iframe id='html_edit' frameborder='0' scrolling='yes' marginheight='0' marginwidth='0' style='width:" + (HE_nWidth-20) + "px;height:366px;border:1px solid #CECFCE;'></iframe>\
			</td>\
		</tr>\
		</table>\
		<table cellpadding='0' cellspacing='0' border='0' width='" + (HE_nWidth-20) + "' id='mode_html' style='display:none'>\
		<tr>\
			<td style='padding:5 0 10 0;'>\
				<textarea name='strContents' scrolling='yes' marginheight='0' marginwidth='0' style='width:" + (HE_nWidth-20) + "px;height:394px;border:1px solid #CECFCE;'></textarea>\
			</td>\
		</tr>\
		</table>\
	</td>\
</tr>\
</table>");

    var source = "<html><head>";
    if (HE_strCSS.length > 0)
    {
		source += "<link rel='stylesheet' href='" + HE_strCSS + "' type='text/css'>";
	}
	source += "</head><body style='background-color:#ffffff;padding:10 10 10 10;line-height:normal;word-break:break-all'></body></html>";
    html_edit.document.designMode="On";
    html_edit.document.open("text/html");
    html_edit.document.write(source);
    html_edit.document.close();
    html_edit.document.body.style.fontSize = "10pt";
    html_edit.document.body.style.fontFamily = "±¼¸²";
    html_edit.document.body.innerHTML = document.all['strContents'].value;
    HE_nMode = 0;
	HE_buildPopTable();
	HE_buildPopPic();
	HE_buildPopBgPic()
	HE_buildPopLink();
	HE_buildPopEmoti();
}

function GnxHE_SetFocus()
{
	html_edit.document.body.focus();
}

function GnxHE_SetCSS(strCSS)
{
	HE_strCSS = strCSS;
}

function GnxHE_GetContents()
{
	if ( HE_nMode == 1 )
		HE_changeMode(0);
	var strRet = "<div stynx=\"";
	strRet += "background-image:url('" + html_edit.document.body.background + "');";
	strRet += "background-color:" + html_edit.document.body.style.backgroundColor;
	strRet += ";height:100%;width:100%;padding:0 0 0 0;word-break:break-all\">";

	for( var i = html_edit.document.body.all.length - 1 ; i >= 0  ; i-- )
	{
		if( html_edit.document.body.all[i].tagName == "A"  && HE_isAdmin == 0 )
		{
			 html_edit.document.body.all[i].target = "_blank";
		}
		if( html_edit.document.body.all[i].tagName == "IMG" )
		{
			if (html_edit.document.body.all[i].width > HE_nWidth - 20)
			{
				html_edit.document.body.all[i].height = (HE_nWidth - 20) / html_edit.document.body.all[i].width * html_edit.document.body.all[i].height;
				html_edit.document.body.all[i].width = HE_nWidth - 20;
			}
		}
		
		if ( html_edit.document.body.all[i].tagName.toLowerCase() == "script"  && HE_isAdmin == 0 )
		{
			html_edit.document.body.all[i].outerHTML = "";
			continue;
		}

		if ( html_edit.document.body.all[i].tagName.toLowerCase() == "object"  && HE_isAdmin == 0 )
		{
			html_edit.document.body.all[i].outerHTML = "";
			continue;
		}
		
		if ( html_edit.document.body.all[i].tagName.toLowerCase() == "embed"  && HE_isAdmin == 0 )
		{
			html_edit.document.body.all[i].outerHTML = "";
			continue;
		}
	
		if ( html_edit.document.body.all[i].tagName.toLowerCase() == "iframe")
		{
			document.body.all[i].src="about:blank";
			document.body.all[i].outerHTML = "";
			continue;
		}
/*
		if (document.body.all[i].onclick != "undefined")
		{
			document.body.all[i].onclick = "";
		}

		if (document.body.all[i].onmouseover != "undefined")
		{
			document.body.all[i].onmouseover = "";
		}

		if (document.body.all[i].onmouseout != "undefined")
		{
			document.body.all[i].onmouseout = "";
		}

		if (document.body.all[i].onkeydown != "undefined")
		{
			document.body.all[i].onkeydown = null;
		}

		if (document.body.all[i].onkeyup != "undefined")
		{
			document.body.all[i].onkeyup = null;
		}

		if (document.body.all[i].onkeypress != "undefined")
		{
			document.body.all[i].onkeypress = null;
		}

		if (document.body.all[i].onfocus != "undefined")
		{
			document.body.all[i].onfocus = null;
		}

		if (document.body.all[i].onblur != "undefined")
		{
			document.body.all[i].onblur =null;
		}
		*/
	}
	strRet += html_edit.document.body.innerHTML;
	
	strRet += "</div>";
	return strRet;
}

function GnxHE_GetTextContent()
{
	strRet = html_edit.document.body.innerText;

	return strRet;
}

function GnxHE_SetContents(strHTML)
{
	var strHTML_Temp = strHTML.toLowerCase();

	var nStart = strHTML_Temp.indexOf("<div");
	var nEnd = strHTML_Temp.indexOf(">");

	strDivTag = strHTML.substr(nStart, nEnd - nStart+1);
	var objDiv = document.createElement(strDivTag);

	var strBgColor = objDiv.style.backgroundColor;
	var strBgImage = objDiv.style.backgroundImage;
	strBgImage = strBgImage.substr(4, strBgImage.length-5);

	var strCons = strHTML.substr(nEnd+1, strHTML.length - nEnd - 7);

	html_edit.document.body.innerHTML = strCons;


	html_edit.document.body.bgColor = strBgColor;
	html_edit.document.body.background = strBgImage;

	html_edit.focus();
}

function HE_showLayer(nMode)
{
	HE_closeAllLayer();
	html_edit.focus();
	HE_sel = html_edit.document.selection;
	if (HE_sel != null && HE_sel.type.toLowerCase() != "control") 
	{	
		HE_rng = HE_sel.createRange();
	}
	if (nMode == 0)
	{
		document.all.t_space.style.width = (HE_nWidth - 285) + "px";
		document.all.popTable.style.display="";
		document.all.popTable.style.zIndex = 100;
		i_popTable.document.body.focus();
	}
	else if (nMode == 1)
	{
		document.all.t_space.style.width = (HE_nWidth - 305) + "px";
		document.all.emoti.style.display = "";
		document.all.emoti.style.zIndex = 100;
	}
	else if (nMode == 2)
	{
		HE_nFileCount ++;
		if (HE_nFileCount > 5)
		{
			alert("ÆÄÀÏÀ» 5°³±îÁö ¿Ã¸±¼ö ÀÖ½À´Ï´Ù.");
			return false;
		}
		/*document.all.t_space.style.width = (HE_nWidth - 335) + "px";
		document.all.popPic.style.display = "";
		document.all.popPic.style.zIndex = 100;
		HE_insertImage(PopImage)
		*/
		window.open('../../Common/ImageEditor/ImageEditor_popup_remote.html?CallBackOnSketchComplete=Gnx_CallBack_oidFile', 'drawing', 'width=900, height=590');
		//i_popPic.document.body.focus();
	}
	else if (nMode == 3)
	{
		document.all.t_space.style.width = (HE_nWidth - 515) + "px";
		document.all.popBgPic.style.display = "";
		document.all.popBgPic.style.zIndex = 100;
	}
	else if (nMode == 4)
	{
		document.all.t_space.style.width = (HE_nWidth - 335) + "px";
		document.all.popLink.style.display = "";
		document.all.popLink.style.zIndex = 100;
	}
}

function HE_showColor(nMode)
{
	HE_sel = html_edit.document.selection;
	if (HE_sel != null && HE_sel.type.toLowerCase() != "control") 
	{	
		HE_rng = HE_sel.createRange();
	}
	document.all.colorPick.style.display = "";
	HE_nColorMode = nMode;
}

function HE_closeAllLayer()
{
	popTable.style.display = "none";
	popTable.style.zIndex = 0;
	emoti.style.display = "none";
	emoti.style.zIndex = 0;
	popPic.style.display = "none";
	popPic.style.zIndex = 0;
	popBgPic.style.display = "none";
	popBgPic.style.zIndex = 0;
	popLink.style.display = "none";
	popLink.style.zIndex = 0;
}

function HE_changeMode(nMode)
{
	HE_nMode = nMode;
	if (nMode == 0)
	{
		document.all.mode_edit.style.display = "";
		document.all.mode_edit2.style.display = "";
		document.all.mode_html.style.display = "none";
	    html_edit.document.body.innerHTML = document.all['strContents'].value;
	}
}

function HE_clickCmd(obj)
{
	html_edit.document.execCommand(obj.cmd, null, obj.arg);
	html_edit.focus();
	return false;
}

function HE_fontNameChanged()
{
	var fN = document.all.fontName;
	if (fN.selectedIndex==0)
		return;
	html_edit.focus();
	html_edit.document.execCommand("FontName", null, fN[fN.selectedIndex].value);;
}

function HE_fontSizeChanged()
{
	var fS = document.all.fontSize;
	if (fS.selectedIndex==0)
		return;
	html_edit.focus();
	html_edit.document.execCommand("FontSize",null, fS[fS.selectedIndex].value);
}

function HE_insertTable()
{
	HE_rng.select();
	
	for (i=0; i<i_popTable.document.all.t_align.length; i++)
	{
		if (i_popTable.document.all.t_align[i].checked)
			strAlign = i_popTable.document.all.t_align[i].value;
	}
	var strTable = "<table border=" + i_popTable.document.all.t_border.value + " width=" + i_popTable.document.all.t_width.value + "%>";
	for (i=0; i<i_popTable.document.all.t_rows.value; i++)
	{
		strTable += "<tr>";
		for (j=0; j<i_popTable.document.all.t_cols.value; j++)
		{
			strTable += "<td align=" + strAlign + "></td>";
		}
		strTable += "</tr>";
	}
	strTable += "</table>";
	
	if (HE_rng != null) 
	{
		HE_rng.pasteHTML(strTable);
	}
	HE_rng.move("character", 0);
	HE_rng.select();
	
	HE_closeAllLayer();
}

function HE_insertImage()
{
	HE_rng.select();
	var strImage = "<img src='" + i_popPic.document.all.p_url.value + "' border=" + i_popPic.document.all.p_border.value;
	strImage += " hspace=" + i_popPic.document.all.p_hspace.value + " vspace=" + i_popPic.document.all.p_vspace.value;
	for (i=0; i<i_popPic.document.all.p_align.length; i++)
	{
		if (i_popPic.document.all.p_align[i].checked)
			strAlign = i_popPic.document.all.p_align[i].value;
	}
	if (strAlign != "none")
		strImage += " align='" + strAlign + "'";
	strImage += " iswantpopup='1'>";
	
	if (HE_rng != null) 
	{
		HE_rng.pasteHTML(strImage);
	}
	HE_rng.move("character", 0);
	HE_rng.select();
	
	HE_closeAllLayer();
}

function HE_insertImage(PopImage)
{
	HE_rng.select();
	var strImage = "<img src='" + PopImage + "' border=0";
	strImage += " hspace=0 vspace=0";
	strImage += " iswantpopup='1'>";
	
	if (HE_rng != null) 
	{
		HE_rng.pasteHTML(strImage);
	}
	HE_rng.move("character", 0);
	HE_rng.select();
	
	HE_closeAllLayer();
}

function HE_insertLink()
{
	HE_rng.select();
	html_edit.document.execCommand("CreateLink",null, i_popLink.document.all.l_url.value);
	
	HE_closeAllLayer();
}

function HE_setColor(obj)
{
	rgbColor = obj.bgColor;
	html_edit.focus();
	HE_rng.select();
	if (HE_nColorMode == 0)
	{
		html_edit.document.execCommand("ForeColor",null, rgbColor);
	}
	else if (HE_nColorMode == 1)
	{
		html_edit.document.execCommand("BackColor",null, rgbColor);
	}
	else
	{
		html_edit.document.body.style.backgroundColor = rgbColor;
	}
	document.all.colorPick.style.display = "none";
	return false;
}

function HE_setBgImage()
{
	for (i=0; i<i_popBgPic.document.all.p_bgImage.length; i++)
	{
		if (i_popBgPic.document.all.p_bgImage[i].checked)
			html_edit.document.body.background = i_popBgPic.document.all.p_bgImage[i].value;
	}
	HE_closeAllLayer();
}

function HE_setBgImageNull()
{
	html_edit.document.body.background = '';
	
	HE_closeAllLayer();
}

function HE_setRange()
{
	HE_sel = html_edit.document.selection;
	if (HE_sel != null && HE_sel.type.toLowerCase() != "control") 
	{	
		HE_rng = HE_sel.createRange();
	}
}

function HE_buildPopTable()
{
	var source = "<head>\
	<link rel='stylesheet' href='http://file.nx.com/css/nx_style.css' type='text/css'>\
</head>\
<body style='top-margin:0px' onfocus='document.all.t_cols.focus();'>\
	<table border='0' cellpadding='0' cellspacing='1' width='260' bgcolor='#808080' ID='Table1'>\
	<tr>\
		<td bgcolor='#F2F2F2' align='center'>\
			<table border='0' cellpadding='0' cellspacing='0' width='234' ID='Table2'>\
			<tr>\
				<td height='32' align='right' style='padding-right:5px;;'><b>¿­</b></td>\
				<td><input type='text' class='tform' style='width:45px;' name='t_cols' value=2 ID='Text1'></td>\
				<td align='right' style='padding-right:5px;;'><b>Çà</b></td>\
				<td><input type='text' class='tform' style='width:45px;' name='t_rows' value=2 ID='Text2'></td>\
			</tr>\
			<tr>\
				<td height='1' bgcolor='#D9D9D9' colspan='4'></td>\
			</tr>\
			<tr>\
				<td height='32' align='right' style='padding-right:5px;;'><b>Á¤·Ä</b></td>\
				<td colspan='3'><input type='radio' value='right' name='t_align' checked ID='Radio1'>¿À¸¥ÂÊ&nbsp;&nbsp;<input type='radio' name='t_align' value='center' ID='Radio2'>°¡¿îµ¥&nbsp;&nbsp;<input type='radio' name='t_align' value='left' ID='Radio3'>¿ÞÂÊ</td>\
			</tr>\
			<tr>\
				<td height='1' bgcolor='#D9D9D9' colspan='4'></td>\
			</tr>\
			<tr>\
				<td height='32' align='right' style='padding-right:5px;;'><b>Å×µÎ¸®</b></td>\
				<td><input type='text' class='tform' style='width:45px;' name='t_border' value=1 ID='Text3'></td>\
				<td align='right' style='padding-right:5px;;'><b>Æø</b></td>\
				<td><input type='text' class='tform' style='width:45px;' name='t_width' value=100 ID='Text4'> %</td>\
			</tr>\
			</table>\
			<table border='0' cellpadding='0' cellspacing='0' width='258' bgcolor='#ffffff' ID='Table3'>\
			<tr>\
				<td height='1' bgcolor='#cccccc' colspan='2'></td>\
			</tr>\
			<tr>\
				<td height='36' style='padding-left:107px;'><img style='cursor:hand' src='http://file.nx.com/image/button/btn_cfm01.gif' width='43' height='20' border='0' onclick='parent.HE_insertTable()'></td>\
				<td align='right' style='padding-right:5px;' valign='bottom'><img style='cursor:hand' src='http://file.nx.com/image/button/btn_close_pop.gif' width='52' height='16' border='0' onclick='parent.HE_closeAllLayer()'></td>\
			</tr>\
			</table>\
		</td>\
	</tr>\
	</table>\
</body>";
    i_popTable.document.open("text/html");
    i_popTable.document.write(source);
    i_popTable.document.close();
}

function HE_buildPopPic()
{
	var source = "<head>\
	<link rel='stylesheet' href='http://file.nx.com/css/nx_style.css' type='text/css'>\
</head>\
<body style='top-margin:0px' onfocus='document.all.p_url.focus();'>\
<table border='0' cellpadding='0' cellspacing='1' width='310' bgcolor='#808080'>\
	<tr>\
		<td bgcolor='#F2F2F2' align='center'>\
			<table border='0' cellpadding='0' cellspacing='0' width='308'>\
			<tr>\
				<td style='padding:10 0 10 10;' bgcolor='#ffffff'>ÀÎÅÍ³Ý¿¡ ¿Ã·ÁÁø ÀÌ¹ÌÁö¸¸ ³ÖÀ» ¼ö ÀÖ½À´Ï´Ù.<br>'http://'·Î ½ÃÀÛµÇ´Â ÀÌ¹ÌÁöÁÖ¼Ò(URL)¸¦ ³Ö¾îÁÖ¼¼¿ä.</td>\
			</tr>\
			<tr>\
				<td height='1' bgcolor='#cccccc'></td>\
			</tr>\
			</table>\
			<table border='0' cellpadding='0' cellspacing='0' width='280'>\
			<tr>\
				<td height='32' align='right' style='padding-right:5px;'><b>URL</b></td>\
				<td colspan='3'><input type='text' class='tform' style='width:180px;' name='p_url' value='http://'> \
					<a href='#' onClick='window.open(\"../../Isolation/File/Page/Gnx.aspx?url=Upload/Append_File&CallBackOnFileUploadStart=parent.Gnx_onUploadStart&CallBackOnFileUploadComplete=parent.Gnx_onUploadCompleted\", \"Upload\", \"width=360,height=250,scrollbars=no\"); return false;'>¾÷·Îµå</a> \
				</td>\
			</tr>\
			<tr>\
				<td height='1' bgcolor='#D9D9D9' colspan='4'></td>\
			</tr>\
			<tr>\
				<td height='32' align='right' style='padding-right:5px;'><b>Á¤·Ä</b></td>\
				<td colspan='3'><input type='radio' name='p_align' value='none' checked>¾øÀ½&nbsp;<input type='radio' name='p_align' value='left'>¿ÞÂÊ&nbsp;<input type='radio' name='p_align' value='center'>°¡¿îµ¥&nbsp;<input type='radio' name='p_align' value='right'>¿À¸¥ÂÊ</td>\
			</tr>\
			<tr>\
				<td height='1' bgcolor='#D9D9D9' colspan='4'></td>\
			</tr>\
			<tr>\
				<td height='32' align='right' style='padding-right:5px;'><b>Å×µÎ¸®</b></td>\
				<td><input type='text' class='tform' style='width:45px;' name='p_border' value=0>&nbsp;&nbsp;</td>\
				<td align='right' style='padding-right:5px;'><b>¿©¹é</b></td>\
				<td>°¡·Î <input type='text' class='tform' style='width:25px;' name='p_hspace' value=0>&nbsp;&nbsp;¼¼·Î <input type='text' class='tform' style='width:25px;' name='p_vspace' value=0></td>\
			</tr>\
			</table>\
			<table border='0' cellpadding='0' cellspacing='0' width='308' bgcolor='#ffffff'>\
			<tr>\
				<td height='1' bgcolor='#cccccc' colspan='2'></td>\
			</tr>\
			<tr>\
				<td height='36' style='padding-left:132px;'><img style='cursor:hand' src='http://file.nx.com/image/button/btn_cfm01.gif' width='43' height='20' border='0' onclick='parent.HE_insertImage()'></td>\
				<td align='right' style='padding-right:5px;' valign='bottom'><img style='cursor:hand' src='http://file.nx.com/image/button/btn_close_pop.gif' width='52' height='16' border='0' onclick='parent.HE_closeAllLayer()'></td>\
			</tr>\
			</table>\
		</td>\
	</tr>\
</table>\
</body>";
    i_popPic.document.open("text/html");
    i_popPic.document.write(source);
    i_popPic.document.close();
}

function HE_buildPopBgPic()
{
	var source = "<head>\
	<link rel='stylesheet' href='http://file.nx.com/css/nx_style.css' type='text/css'>\
</head>\
<body style='top-margin:0px'>\
	<table border='0' cellpadding='0' cellspacing='1' width='490' bgcolor='#808080'>\
	<tr>\
		<td bgcolor='#F2F2F2' align='center'>\
			<table border='0' cellpadding='0' cellspacing='0' width='488'>\
			<tr>\
				<td style='padding:10 0 5 10;'>¿øÇÏ´Â ±×¸²À» Å¬¸¯ÇÏ½Ã¸é ¼±ÅÃµË´Ï´Ù.</td>\
			</tr>\
			</table>\
			<table border='0' cellpadding='0' cellspacing='0' width='472'>\
			<tr valign='top'>\
				<td width='118'>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[0].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat01.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat01.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td width='118'>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[1].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat02.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat02.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td width='118'>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[2].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat03.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat03.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td width='118'>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[3].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat04.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat04.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
			</tr>\
			<tr valign='top'>\
				<td>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[4].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat05.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat05.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[5].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat06.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat06.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[6].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat07.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat07.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[7].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat08.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat08.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
			</tr>\
			<tr valign='top'>\
				<td>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[8].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat09.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat09.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[9].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat10.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat10.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[10].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat11.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat11.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
				<td>\
					<table border='0' cellpadding='0' cellspacing='0' width='118'>\
					<tr>\
						<td height='118' background='http://file.nx.com/image/club_h/clubh_pat.gif' align='center'><table border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'><tr><td><img style='cursor:hand' onclick='document.all.p_bgImage[11].checked = true;parent.HE_setBgImage();' src='http://file.nx.com/image/club_h/clubh_pat12.gif' width='100' height='100' border='0'></td></tr></table></td>\
					</tr>\
					<tr>\
						<td align='center' height='21'><input type='radio' value='http://file.nx.com/image/club_h/clubh_pat12.gif' name='p_bgImage'></td>\
					</tr>\
					</table>\
				</td>\
			</tr>\
			</table>\
			<table border='0' cellpadding='0' cellspacing='0' width='488' bgcolor='#ffffff'>\
			<tr>\
				<td height='1' bgcolor='#cccccc' colspan='2'></td>\
			</tr>\
			<tr>\
				<td height='36' style='padding-left:178px;'><img style='cursor:hand' src='http://file.nx.com/image/button/btn_cfm01.gif' width='43' height='20' border='0' onclick='parent.HE_setBgImage()' style='margin-right:5px;'>\
				<img style='cursor:hand' src='http://file.nx.com/image/button/btn_del_back.gif' width='83' height='20' border='0' onclick='parent.HE_setBgImageNull()'></td>\
				<td align='right' style='padding-right:10px;' valign='bottom'><img style='cursor:hand' src='http://file.nx.com/image/button/btn_close_pop.gif' width='52' height='16' border='0' onclick='parent.HE_closeAllLayer()'></td>\
			</tr>\
			</table>\
		</td>\
	</tr>\
	</table>\
</body>"
    i_popBgPic.document.open("text/html");
    i_popBgPic.document.write(source);
    i_popBgPic.document.close();

}

function HE_buildPopLink()
{
	var source = "<head>\
	<link rel='stylesheet' href='http://file.nx.com/css/nx_style.css' type='text/css'>\
</head>\
<body style='top-margin:0px' onfocus='document.all.l_url.focus()'>\
<table border='0' cellpadding='0' cellspacing='1' width='310' bgcolor='#808080'>\
<tr>\
	<td bgcolor='#F2F2F2' align='center'>\
		<table border='0' cellpadding='0' cellspacing='0' width='308'>\
		<tr>\
			<td style='padding:10 0 10 10;' bgcolor='#ffffff'>'http://'·Î ½ÃÀÛµÇ´Â ¸µÅ©ÁÖ¼Ò(URL)¸¦ ³Ö¾îÁÖ¼¼¿ä.</td>\
		</tr>\
		<tr>\
			<td height='1' bgcolor='#cccccc'></td>\
		</tr>\
		<tr>\
			<td height='32' bgcolor='#F2F2F2' style='padding-left:18px;'><b>URL</b>&nbsp;&nbsp;&nbsp;<input type='text' class='tform' style='width:230px;' name='l_url' value='http://'></td>\
		</tr>\
		</table>\
		<table border='0' cellpadding='0' cellspacing='0' width='308' bgcolor='#ffffff'>\
		<tr>\
			<td height='1' bgcolor='#cccccc' colspan='2'></td>\
		</tr>\
		<tr>\
			<td height='36' style='padding-left:132px;'><img style='cursor:hand' src='http://file.nx.com/image/button/btn_cfm01.gif' width='43' height='20' border='0' onclick='parent.HE_insertLink()'></td>\
			<td align='right' style='padding-right:5px;' valign='bottom'><img style='cursor:hand' src='http://file.nx.com/image/button/btn_close_pop.gif' width='52' height='16' border='0' onclick='parent.HE_closeAllLayer()'></td>\
		</tr>\
		</table>\
	</td>\
</tr>\
</table>\
</body>";	

    i_popLink.document.open("text/html");
    i_popLink.document.write(source);
    i_popLink.document.close();
}

function HE_buildPopEmoti()
{
	var source = "<head>\
	<link rel='stylesheet' href='http://file.nx.com/css/nx_style.css' type='text/css'>\
<scr" + "ipt language='java" + "script'>\
	var HE_emotiName = new Array(	\"/ÇÏÇÏ\", \"/À®Å©\", \"/»Ç»Ç\", \"/»ç¶ûÇØ\", \"/ºÎ²ô\", \"/¤»¤»\", \"/¾ÆÇÏ\", \"/¸Þ·Õ\", \"/ÁÁ¾Æ\", \"/¹ö·°\", \
		\"/ºÎ±Û\", \"/¹ð±Û\", \"/¾û¾û\", \"/¿ì¾¾\", \"/¸ô¶ó\", \"/±Û½ê\", \"/½Ç¸Á\", \"/½È¾î\", \"/Ãß¿ö\", \"/¾ÆÆÛ\", \"/Á¹·Á\",\
		\"/±âÀý\", \"/±ôÂ¦\", \"/±Ã±Ý\", \"/¹¬ºñ±Ç\", \"/ÀÌÁßÀÎ°Ý\", \"\", \"/½Ä»çÁß\", \"/ÀÚ¸®ºñ¿ò\", \"/¾÷¹«Áß\", \"/°ÔÀÓÁß\", \"/°øºÎÁß\",\
		\"/²Þ³ª¶ó\", \"/Àá¼ö\", \"/È­Àå½Ç\", \"\", \"/ÀÎµð¾È\", \"/½Å¶û\", \"/½ÅºÎ\", \"/¹èÆ®¸Ç\", \"/½´ÆÛ¸Ç\", \"/Áß±¹ÀÎ\", \"/¹«»ç\",\
		\"/Ä®ÀÖ¾¥¸¶\", \"/¼±±Û¶ó½º\", \"/ÆÄÆ¼\", \"/À½¾Ç°¨»ó\", \"/¼ö¿µ\", \"/°È±â\", \"/¿ÀÅä¹ÙÀÌ\", \"/ÅÃ½Ã\", \"/ÀÚµ¿Â÷\", \"/¹ö½º\",\
		\"/ºñÇà±â\", \"/Áã\", \"/¼Ò\", \"/È£¶ûÀÌ\", \"/Åä³¢\", \"/¿ë\", \"/¹ì\", \"/¸»\", \"/¾ç\", \"/¿ø¼þÀÌ\",\
		\"/´ß\", \"/¹ÙµÏÀÌ\", \"/µÅÁö\", \"/º´¾Æ¸®\", \"/°³±¸¸®\", \"/¹°°í±â\", \"/°í¾çÀÌ\", \"/´ÞÆØÀÌ\", \"/Æë±Ï\", \"/Ä¿ÇÇ\",\
		\"/¿ìÀ¯\", \"/ÄÉÀÍ\", \"/ºØ¾î»§\", \"/½îÁÖ\", \"/¸ÆÁÖ\", \"/»ç°ú\", \"/´ç±Ù\", \"\", \"/ÇÇÀÚ\", \"/¹ä\", \"/ÇÜ¹ö°Å\",\
		\"/±è¹ä\", \"/¿À¹Ç¶óÀÌ½º\", \"/Ä¡Áî\", \"/»õ¿ì±ø\", \"/¾ÆÀÌ½ºÅ©¸²\", \"\", \"/ÆøÅº\", \"/ÈÞÁöÅë\", \"/¶Ë\", \"/Àü±¸\", \"/Æ®¸®\",\
		\"/²É\", \"/ÇÚµåÆù\", \"/¾Ë¾à\", \"/ÄÄÇ»ÅÍ\", \"/¼±¹°\", \"/Ä«¸Þ¶ó\", \"/µ·´Ù¹ß\", \"/¹ÝÁö\", \"/ÇÏÆ®\", \"/Ç³¼±\",\
		\"/Æ¼ºñ\", \"/´ã¹è\", \"/½Ã°è\", \"/ÇØ´Ô\", \"/´Þ´Ô\", \"/º°´Ô\", \"/±¸¸§\", \"/ºñ\", \"/¹ø°³\", \"/³«¿±\", \"/´«\", \"/¹«Áö°³\");\
	var HE_emotiUrl = new Array(\
		\"http://file.nx.com/ActiveX/Emoticon/a1-haha.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/a2-wink.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/a3-kiss.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/a4-loveyou.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/a5-shy.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/a6-kk.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/a7-aha.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/a8-joke.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/a9-good.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b1-angry.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b2-fire.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b3- turn.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b4-cry.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b5-burning.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b6-dontknow.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b7-well.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b8-disapair.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/b9-hate.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/c1-cold.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/c2-sick.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/c3-sleepy.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/c4-shock.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/c5-surprize.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/c6-wonder.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/c7-silent.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/c8-doubleface.gif\",\
		\"\",\
		\"http://file.nx.com/ActiveX/Emoticon/d1-meal.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/d2-away.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/d3-busy.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/d4-game.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/d5-study.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/d6-dream.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/d7-diving.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/d8-toilet.gif\",\
		\"\",\
		\"http://file.nx.com/ActiveX/Emoticon/e1-indian.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/e2-gloom.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/e3-bride.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/e4-betman.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/e5-superman.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/e6-chinese.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/e7-knight.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/e8-charisma.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/e9sunglass.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f1-party.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f2-music.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f3-swim.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f4-walk.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f5-bike.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f6-taxi.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f7-car.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f8-bus.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/f9-airplane.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g1-mouse.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g2-ox.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g3-tiger.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g4-rabbit.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g5-dragon.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g6-snake.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g7-horse.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g8-sheep.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/g9-monkey.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h1-chicken.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h2-dog.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h3-pig.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h4-chick.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h5-frog.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h6-fish.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h7-cat.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h8-snail.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/h9-penguin.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/i1-coffee.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/i2-milk.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/i3-cake.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/i4-crucianbread.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/i5-soju.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/i6-beer.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/i7-apple.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/i8-carrot.gif\",\
		\"\",\
		\"http://file.nx.com/ActiveX/Emoticon/j1-pizza.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/j2-rice.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/j3-hamburger.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/j4-kimbob.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/j5-omelet.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/j6-cheese.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/j7-shrimpkkang.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/j8-icecream.gif\",\
		\"\",\
		\"http://file.nx.com/ActiveX/Emoticon/k1-bomb.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/k2-trash.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/k3-shit.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/k4-light.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/k5-tree.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/k6-flower.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/k7-mobile.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/k8-pill.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/k9-notebook.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l1-present.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l2-camera.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l3-money.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l4-ring.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l5-heart.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l6-baloon.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l7-tv.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l8-cigar.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/l9-clock.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m1-sun.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m2-moon.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m3-star.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m4-cloud.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m5-rain.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m6-flash.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m7-leaf.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m8-snow.gif\",\
		\"http://file.nx.com/ActiveX/Emoticon/m9-rainbow.gif\"\
	);\
	function HE_initEmoti()\
	{\
		for (i=0; i< HE_emotiName.length; i++)\
		{\
			if (!( i==26 || i==35 || i==80 || i==89 ))\
			{\
				y = Math.floor(i / 9);\
				x = i - 9 * y;\
				x = x * 31 + 1;\
				y = y * 31 + 1;\
				strC = x + \",\" + y + \",\" + (x+30) + \",\" + (y+31);\
				var objArea = document.createElement(\"area\");\
				objArea.id = \"area\" + i;\
				objArea.coords = strC;\
				objArea.alt = HE_emotiName[i];\
				objArea.shape = \"rect\";\
				objArea.href = \"#\";\
				objArea.attachEvent( \"onclick\", HE_insertEmoti );\
				document.all.emoticonmap.appendChild(objArea);\
			}\
		}\
	}\
	function HE_insertEmoti()\
	{\
		parent.HE_rng.select();\
		var obj = event.srcElement;\
		nEmotiNum =  obj.id;\
		nEmotiNum = nEmotiNum.substr( 4, nEmotiNum.length - 4);\
		parent.html_edit.document.execCommand(\"InsertImage\", null, HE_emotiUrl[nEmotiNum]);\
		parent.HE_rng.move(\"character\", 1);\
		parent.HE_rng.select();\
		parent.HE_closeAllLayer();\
		return false;\
	}\
</sc" + "ript>\
</head>\
<body style='top-margin:0px'>\
	<img border=0 src='http://file.nx.com/ActiveX/Emoticon/emoticonlist.gif' usemap='#emoticonmap'>\
	<map name='emoticonmap' id='emoticonmap'>\
	</map>\
</body>";

    i_popEmoti.document.open("text/html");
    i_popEmoti.document.write(source);
    i_popEmoti.document.close();
	
	i_popEmoti.HE_initEmoti();
}


function Gnx_onUploadStart(bStart)
{
	
}

function Gnx_getOidFiles()
{
	var strImgURL = "";
	var strFileName = "";
	var strOidFiles = "";
	var oidFile = "";

	for (var i=0; i<html_edit.document.images.length; i++)
	{
		if (html_edit.document.images[i].iswantpopup == "1")
		{
			strImgURL = html_edit.document.images[i].src;
			if (strImgURL.toLowerCase().indexOf("http://storage.nx.com/") != -1)
			{
				strFileName = strImgURL.substr(strImgURL.lastIndexOf("/"), strImgURL.length - ( strImgURL.lastIndexOf("/") ) );
				oidFile  = strFileName.substr(1, strFileName.lastIndexOf(".") - 1);
				if ( strOidFiles.indexOf(oidFile) == -1 )
				{
					if (strOidFiles != "")
					{
						strOidFiles += ",";
					}
					strOidFiles = strOidFiles+oidFile;
				}
			}
		}
	}
	
	return strOidFiles;
}

function Gnx_onUploadCompleted(n1ErrorCode, oidFile, strFileName)
{
	if (n1ErrorCode == 0)
	{
		var GFM = new GnxFileManager(oidFile);

		var strFullPath = GFM.getURL() + "\\" + GFM.getFileName();

		if (typeof(i_popPic) != "undefined")
		{
			if (typeof(i_popPic.document.all.p_url) != "undefined")
			{
				i_popPic.document.all.p_url.value = strFullPath;

			}
		}
	}
}


function HE_addImageOnClickEvent(obj)
{
	obj.onclick = Function( "Gnx_ImageView(this.src); return false;");
	obj.onmouseover = Function( "this.style.cursor='hand'");
}

function Gnx_ImageView(strImage)
{
	var strPopURL = "../../Common/ImageEditor/ImageView.aspx?img=" + strImage;
	window.open(strPopURL, "imgView" , "width=100, height=100, scrollbars=1,location=0,status=1,resizable=1");
}

function Gnx_CallBack_oidFile(oidFile)
{
	var GFM = new GnxFileManager(oidFile);
	strFullFileName = GFM.getURLFileName();
	HE_insertImage(strFullFileName);
}

function Gnx_ViewContents(strContents, n4Width, n4Height)
{
	var sContents
	var sWidth = "", sHeight = "";
	var strSpan = "";
	var strXScroll = "overflow-x:hidden;";
	var strYScroll = "overflow-y:hidden;";
	
	if (n4Width != "undefined" && n4Width != "")
	{
		sWidth = " width:" + n4Width + "px; ";
		strXScroll = "overflow-x:auto;";
	}
	if (n4Height != "undefined")
	{
		if (n4Height != "")
		{
			sHeight = " height:auto;";
			strYScroll = "overflow-y:auto;";
		}
	}

	
	strSpan = "<span id=spViewContents style='" + strXScroll + strYScroll + "padding:0px;border:0 solid; " + sWidth + sHeight + " word-break:break-all; padding:0 0 0 0;margin-bottom:30px'>";
	sContents = strSpan + strContents.replace(/iframe/gi,"xiframe").replace(/object/gi,"xobject") + "</span>"

	setTimeout("tmr_Resize(" + n4Width + ")", 1000);
	document.write(sContents);
}

function Gnx_ViewContents_4Event(strContents, n4Width, n4Height)
{
	var sContents
	var sWidth = "", sHeight = "";
	var strSpan = "";
	var strXScroll = "overflow-x:hidden;";
	var strYScroll = "overflow-y:hidden;";
	
	if (n4Width != "undefined" && n4Width != "")
	{
		sWidth = " width:" + n4Width + "px; ";
		strXScroll = "overflow-x:auto;";
	}
	if (n4Height != "undefined")
	{
		if (n4Height != "")
		{
			sHeight = " height:auto;";
			strYScroll = "overflow-y:auto;";
		}
	}

	
	strSpan = "<span id=spViewContents style='" + strXScroll + strYScroll + "padding:0px;border:0 solid; " + sWidth + sHeight + " word-break:break-all; padding:0 0 0 0;margin-bottom:30px'>";
	sContents = strSpan + strContents.replace(/iframe/gi,"iframe").replace(/object/gi,"object") + "</span>"

	setTimeout("tmr_Resize(" + n4Width + ")", 1000);
	document.write(sContents);
}

function Gnx_ViewContents_Admin(strContents, n4Width, n4Height)
{
	var sContents
	var sWidth = "", sHeight = "";
	var strSpan = "";
	var strXScroll = "overflow-x:hidden;";
	var strYScroll = "overflow-y:hidden;";
	
	if (n4Width != "undefined" && n4Width != "")
	{
		sWidth = " width:" + n4Width + "px; ";
		strXScroll = "overflow-x:auto;";
	}
	if (n4Height != "undefined")
	{
		if (n4Height != "")
		{
			sHeight = " height:" + n4Height + "px; "
			strYScroll = "overflow-y:auto;";
		}
	}

	
	strSpan = "<span id=spViewContents style='" + strXScroll + strYScroll + "padding:0px;border:0 solid; " + sWidth + sHeight + " word-break:break-all; padding:0 0 0 0'>";
	
	sContents = strSpan + strContents.replace(/iframe/gi,"xiframe").replace(/form/gi,"xform") + "</span>";

	setTimeout("tmr_Resize(" + n4Width + ")", 1000);
	document.write(sContents);
}

function tmr_Resize(n4Width)
{
	for (var i=0; i<document.images.length; i++)
	{
		if (document.images[i].iswantpopup == "1")
		{
			HE_addImageOnClickEvent(document.images[i]);
			
			if (n4Width != "undefined")
			{
				if (document.images[i].clientWidth > ( n4Width) )
				{
					document.images[i].width = ( n4Width);
				}
			}
		}
	}
}
