|
||||
·Î±×ÀΠȸ¿ø°¡ÀÔ Àå¹Ù±¸´Ï ÁÖ¹®³»¿ª ¸¶ÀÌÆäÀÌÁö |
|
");
}
/********************************************************************************************************** ±Û¾²±â */
//µ¥ÀÌÅ͵î·Ïüũ
function WriteCheck()
{
var f = document.WriteForm;
if (f.isRoot.value == "0" && f.mbid.value == "" && f.BB_NAME.value == "")
{
alert('\nÀ̸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä. \n');
f.BB_NAME.focus();
return false;
}
if (f.BB_EMAIL.value)
{
if ( f.BB_EMAIL.value.length <= 6 || f.BB_EMAIL.value.indexOf ('@', 0) == -1 || f.BB_EMAIL.value.indexOf ('.', 0) == -1)
{
alert('À̸ÞÀÏÁÖ¼Ò°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù. \n');
f.BB_EMAIL.value = "";
f.BB_EMAIL.focus();
return false;
}
}
if (f.BB_SUBJECT.value == "")
{
alert('\nÁ¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä. \n');
f.BB_SUBJECT.focus();
return false;
}
if (f.is_category.value)
{
if (!f.BB_CATEGORY.value)
{
alert('\n' + f.BB_CATEGORY.options[0].text + 'À»(¸¦) ¼±ÅÃÇØ ÁÖ¼¼¿ä. \n');
f.BB_CATEGORY.focus(); //ÀϹݼ¿·ºÆ®»ç¿ë½Ã
return false;
}
}
if(getEditCheck(f)) return false; //¿¡µðÅͺ»¹®Ã¼Å©
if (CheckWords(f.BB_SUBJECT.value) != '' || CheckWords(f.BB_CONTENT.value) != '')
{
alert('\n°ü¸®ÀÚ¿¡ ÀÇÇØ Á¦ÇÑµÈ ´Ü¾î°¡ »ç¿ëµÇ¾ú½À´Ï´Ù. \n');
return false;
}
if (f.BB_SECRET.checked == true)
{
if (f.BB_PASS.value == "")
{
alert('\nºñ°ø°³±Û·Î µî·ÏÇÒ °æ¿ì¿¡´Â ¹Ýµå½Ã ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼Å¾ß ÇÕ´Ï´Ù. \n');
f.BB_PASS.focus();
return false;
}
}
f.Nparam.value = NparamSetting();
}
//¿É¼ÇÃâ·Âüũ
function OptionCheck()
{
var home = document.getElementById('Option_Url');
var prev = document.getElementById('Option_Preview');
var img = document.getElementById('Option_Img');
var f = document.WriteForm;
if(!f.mbid.value)
{
if (home.style.display == 'none') { home.style.display = 'block'; } else { home.style.display = 'none'; }
}
if (prev.style.display == 'none') { prev.style.display = 'block'; } else { prev.style.display = 'none'; }
if (img.src.indexOf('dot_option.gif') != -1)
{
img.src = img.src.replace('dot_option.gif','dot_option1.gif');
}
else {
img.src = img.src.replace('dot_option1.gif','dot_option.gif');
}
}
//À̵¿°æ·Îüũ
function NparamSetting()
{
var pam = getThisUrl();
pam += '&query=' + getUriString('query');
pam += '&write_type=' + getUriString('write_type');
pam += '&uid=' + getUriString('uid');
pam += '&p=' + getUriString('p');
return pam;
}
/********************************************************************************************************** ¸ÖƼüũ */
var Multi_Check_Uid = '';
function Multi_Check(obj,e,skindir,isRoot,isAdmin)
{
var ml = document.getElementById('MultiCheckLayer');
var tg = '';
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
x += 10; y -= 20;
if (obj.checked == true) Multi_Check_Uid += obj.value + ';';
else Multi_Check_Uid = Multi_Check_Uid.replace(obj.value + ';' , '');
if (Multi_Check_Uid)
{
var multiarr = Multi_Check_Uid.split(';');
tg += "");
document.write("[¿¡µðÅÍ]");
}
}
/********************************************************************************************************** ÷ºÎ,¸µÅ© ÆÄÀÏ */
//ÆÄÀÏ÷ºÎüũ
function getUpfileNumIcon(enable , files , num , down , table, uid, skin , link , where , cols)
{
if (num > 0)
{
var string = "";
string += "";
string += " ÷ºÎÀ̹ÌÁö " + num + "°³";
string += "(Á¶È¸ "+commaSplit(down)+"°Ç)";
string += "";
document.write(string);
}
}
//ÆÄÀÏ·¹À̾î show
function showLayerUpfile(enable , files , table , uid , where , cols , num , link , skin , down , e)
{
if (!enable)
{
alert('Á˼ÛÇÕ´Ï´Ù. ´Ù¿î·Îµå ±ÇÇÑÀÌ ¾ø½À´Ï´Ù. ');
return false;
}
var x = (e.pageX) ? e.pageX : document.body.scrollLeft+event.clientX;
var y = (e.pageY) ? e.pageY : document.body.scrollTop+event.clientY;
var to = "";
var tl = document.getElementById('tmp_Upfile_Show_Layer');
var ly = LayerUpfile(enable , files + link , table, uid , where , cols , 'return');
var wt = parseInt(num/cols) > 0 ? cols * 220 : (num%cols) * 220;
wt = num == 1 ? 270 : wt;
tl.style.position = 'absolute';
tl.style.left = x;
tl.style.top = y;
to += "
NOTICE»õ·Î¿î ¼Ò½ÄÀ» ÀüÇØ µå¸®´Â °øÁö»çÇ× °Ô½ÃÆÇ ÀÔ´Ï´Ù. Ç×»ó Áñ°Ì°í Æí¾ÈÇÑ ¼îÇÎÀÌ µÇ½Ç ¼ö ÀÖµµ·Ï ÃÖ¼±À» ´Ù ÇÏ°Ú½À´Ï´Ù.
|
|
|
|