function ViewEditor(_FolderName){
	document.write("\
		<OBJECT WIDTH=0 HEIGHT=0 CLASSID='clsid:5220CB21-C88D-11cf-B347-00AA00A28331'>\
			<PARAM NAME='LPKPath' VALUE='/Common/Js/CodiEditor/K2Web.lpk'>\
		</OBJECT>\
		<OBJECT ID='k2cody' WIDTH='100%' HEIGHT='400'  CLASSID= 'CLSID:3060FD15-F8EF-4954-81DF-140D88740199' CODEBASE='/Common/Js/CodiEditor/K2Web.cab#Version=4,0,2,204' VIEWASTEXT>\
			<PARAM NAME='URLPath' VALUE=''>\
			<PARAM NAME='HttpPath' VALUE=\"http://young.hyundai.com/common/dataupload/CodiEditor/" +_FolderName+"/" + "\">\
			<PARAM NAME='CodyType' VALUE='board'>\
			<PARAM NAME='TABCTRL' VALUE='true'>\
			<PARAM NAME='ToolBar' VALUE='NewDoc,Open,Save|Browse,Edit|Cut,Copy,Paste|Undo,Redo,LineHeight,Symbol,Image,Hyperlink|Line,Table,ShowBorder|Find,Replace,AScript-FontBlock,FontName,FontSize,Bold,Italic,Underline|FontColor,FontBgColor,PageBgColor|OrderList,UnorderList|Indent,Outdent|Left,Center,Right|Absolute,Lock,LayerMenu'>\
		</OBJECT>\
	");
}

function ResetEditor(_FolderName,_Content){
	document.write("\
		<OBJECT WIDTH=0 HEIGHT=0 CLASSID='clsid:5220CB21-C88D-11cf-B347-00AA00A28331'>\
			<PARAM NAME='LPKPath' VALUE='/Common/Js/CodiEditor/K2Web.lpk'>\
		</OBJECT>\
		<OBJECT ID='k2cody' WIDTH='100%' HEIGHT='400'  CLASSID= 'CLSID:3060FD15-F8EF-4954-81DF-140D88740199' CODEBASE='/Common/Js/CodiEditor/K2Web.cab#Version=4,0,2,204' VIEWASTEXT>\
			<PARAM NAME='URLPath' VALUE=''>\
			<PARAM NAME='HttpPath' VALUE=\"http://young.hyundai.com/common/dataupload/CodiEditor/" +_FolderName+"/" + "\">\
			<PARAM NAME='CodyType' VALUE='board'>\
			<PARAM NAME='TABCTRL' VALUE='true'>\
			<PARAM NAME='InitSource' VALUE=\"" + _Content + "\">\
			<PARAM NAME='ToolBar' VALUE='NewDoc,Open,Save|Browse,Edit|Cut,Copy,Paste|Undo,Redo,LineHeight,Symbol,Image,Hyperlink|Line,Table,ShowBorder|Find,Replace,AScript-FontBlock,FontName,FontSize,Bold,Italic,Underline|FontColor,FontBgColor,PageBgColor|OrderList,UnorderList|Indent,Outdent|Left,Center,Right|Absolute,Lock,LayerMenu'>\
		</OBJECT>\
	");
}

function ModifyEditor(_FolderName, _Content){
	document.write("\
		<OBJECT WIDTH=0 HEIGHT=0 CLASSID='clsid:5220CB21-C88D-11cf-B347-00AA00A28331'>\
			<PARAM NAME='LPKPath' VALUE='/Common/Js/CodiEditor/K2Web.lpk'>\
		</OBJECT>\
		<OBJECT ID='k2cody' WIDTH='100%' HEIGHT='400'  CLASSID= 'CLSID:3060FD15-F8EF-4954-81DF-140D88740199' CODEBASE='/Common/Js/CodiEditor/K2Web.cab#Version=4,0,2,204' VIEWASTEXT>\
			<PARAM NAME='URLPath' VALUE='young.hyundai.com'>\
			<PARAM NAME='HttpPath' VALUE=\"http://young.hyundai.com/common/dataupload/CodiEditor/" +_FolderName+"/" + "\">\
			<PARAM NAME='CodyType' VALUE='board'>\
			<PARAM NAME='TABCTRL' VALUE='true'>\
			<PARAM NAME='InitSource' VALUE=\"" + replaceChars3(replaceChars2(replaceChars4(replaceChars1(_Content)))) + "\">\
			<PARAM NAME='ToolBar' VALUE='NewDoc,Open,Save|Browse,Edit|Cut,Copy,Paste|Undo,Redo,LineHeight,Symbol,Image,Hyperlink|Line,Table,ShowBorder|Find,Replace,AScript-FontBlock,FontName,FontSize,Bold,Italic,Underline|FontColor,FontBgColor,PageBgColor|OrderList,UnorderList|Indent,Outdent|Left,Center,Right|Absolute,Lock,LayerMenu'>\
		</OBJECT>\
	");
}

function replaceChars1(entry) {
	out = "&quot;"; // Ä¡È¯µÉ ¹®ÀÚ
	add = ","; // Ä¡È¯ÇÒ ¹®ÀÚ
	temp = "" + entry;

	while (temp.indexOf(out)>-1) {
	pos= temp.indexOf(out);
	temp = "" + (temp.substring(0, pos) + add +
	temp.substring((pos + out.length), temp.length));
	}
	return temp;
}
function replaceChars2(entry) {
	out = "&#39;"; // Ä¡È¯µÉ ¹®ÀÚ
	add = "'"; // Ä¡È¯ÇÒ ¹®ÀÚ
	temp = "" + entry;

	while (temp.indexOf(out)>-1) {
	pos= temp.indexOf(out);
	temp = "" + (temp.substring(0, pos) + add +
	temp.substring((pos + out.length), temp.length));
	}
	return temp;
}
function replaceChars3(entry) {
	out = "<br>"; // Ä¡È¯µÉ ¹®ÀÚ
	add = "\r\n"; // Ä¡È¯ÇÒ ¹®ÀÚ
	temp = "" + entry;

	while (temp.indexOf(out)>-1) {
	pos= temp.indexOf(out);
	temp = "" + (temp.substring(0, pos) + add +
	temp.substring((pos + out.length), temp.length));
	}
	return temp;
}

function replaceChars4(entry) {
	out = "src=&#39;/common/dataupload"; // Ä¡È¯µÉ ¹®ÀÚ
	add = "src=&#39;http://young.hyundai.com/common/dataupload"; // Ä¡È¯ÇÒ ¹®ÀÚ
	temp = "" + entry;

	while (temp.indexOf(out)>-1) {
	pos= temp.indexOf(out);
	temp = "" + (temp.substring(0, pos) + add +
	temp.substring((pos + out.length), temp.length));
	}
	return temp;
}
