");
}
function isMSIE()
{
return navigator.appName.indexOf('Explorer') != -1 ? true : false;
}
function insertDx(i,x,cont)
{
if (parent.frames.EditFrame.document.getElementById('Elay_CodingType').value == 'TEXT' || parent.frames.EditFrame.document.getElementById('Elay_Srcview').checked == true)
{
var g = parent.frames.EditFrame.document.getElementById('Elay_Content');
g.focus();
g.innerText = g.value + "
"+cont+"
\n";
}
else {
var g = parent.frames.EditFrame.frames.EditArea;
var WriteFrm = g.document;
g.focus();
if (isMSIE())
{
var sel = WriteFrm.selection.createRange();
sel.pasteHTML("
"+cont+"
");
}
else {
var nLoc = location.href.split("_system/module/");
var sel = WriteFrm.execCommand("inserthtml",false,"
"+cont+"
");
}
sel.select();
}
}
function insertDs(i,x,cont)
{
if (parent.frames.EditFrame.document.getElementById('Elay_CodingType').value == 'TEXT' || parent.frames.EditFrame.document.getElementById('Elay_Srcview').checked == true)
{
var g = parent.frames.EditFrame.document.getElementById('Elay_Content');
g.focus();
g.innerText = g.value + "
"+cont+"
\n";
}
else {
var g = parent.frames.EditFrame.frames.EditArea;
var WriteFrm = g.document;
g.focus();
if (isMSIE())
{
var sel = WriteFrm.selection.createRange();
sel.pasteHTML("
"+cont+"
");
}
else {
var nLoc = location.href.split("_system/module/");
var sel = WriteFrm.execCommand("inserthtml",false,"
"+cont+"
");
}
sel.select();
}
}
function insertDv(i,x,cont)
{
if (parent.frames.EditFrame.document.getElementById('Elay_CodingType').value == 'TEXT' || parent.frames.EditFrame.document.getElementById('Elay_Srcview').checked == true)
{
var g = parent.frames.EditFrame.document.getElementById('Elay_Content');
g.focus();
g.innerText = g.value + "
"+cont+"
\n";
}
else {
var g = parent.frames.EditFrame.frames.EditArea;
var WriteFrm = g.document;
g.focus();
var sel = WriteFrm.selection.createRange();
sel.pasteHTML("
"+cont+"
");
sel.select();
}
}
function insertDg(i,x,y,cont)
{
var nLoc = location.href.split("_system/module/");
x = isMSIE() ? nLoc[0]+x.replace('../../','') : x;
var xe=y.split('/');
var xg = "";
xg += "
";
xg += "
";
xg += "
";
xg += "
";
xg += "
";
xg += "
";
xg += "
";
xg += "
";
xg += "
";
xg += "
";
xg += "
";
xg += "
"+cont+"
";
xg += "\";
if (parent.frames.EditFrame.document.getElementById('Elay_CodingType').value == 'TEXT' || parent.frames.EditFrame.document.getElementById('Elay_Srcview').checked == true)
{
var g = parent.frames.EditFrame.document.getElementById('Elay_Content');
g.focus();
g.innerText = g.value + xg + "\n";
}
else {
var g = parent.frames.EditFrame.frames.EditArea;
var WriteFrm = g.document;
g.focus();
if (isMSIE())
{
var sel = WriteFrm.selection.createRange();
sel.pasteHTML(xg);
}
else {
var sel = WriteFrm.execCommand("inserthtml",false,xg);
}
sel.select();
}
alert('¼±ÅÃÇϽŠ»ç¿îµåÆÄÀÏÀÌ ¹è°æÀ½¾ÇÀ¸·Î ÷ºÎµÇ¾ú½À´Ï´Ù.');
}