var resolution_h = screen.height; var openHeight = resolution_h - 100; function openBbsWrite(link_idx){ if(GetCookie('grade') < 1){ alert('"µî·ÏÇϱâ"´Â ÆǸÅÀÚ·Î µî·ÏµÈ ȸ¿ø¸¸ °¡´ÉÇÕ´Ï´Ù. \r\n\r\nÆǸÅÀÚ½ÅûÀº ³»Á¤º¸°ü¸® > ȸ¿ø¸Þ´º > ÆǸÅÀÚ½ÅûÀ» ÀÌ¿ëÇØÁֽñ⠹ٶø´Ï´Ù. '); }else{ //alert('½Ã½ºÅÛ ¾÷µ¥ÀÌÆ®¸¦ À§ÇØ 22:00ºÎÅÍ 23:00±îÁö ¾÷·Îµå°¡ Áߴܵ˴ϴÙ. \r\nºÒÆíÀ» µå·Á Á˼ÛÇÕ´Ï´Ù. Àá½ÃÈÄ¿¡ ´Ù½Ã ÀÌ¿ëÇØÁֽʽÿä. '); //alert('ÆÄÀÏ ¼­¹ö Á¡°ËÀ» À§ÇØ ¾÷·Îµå ¼­ºñ½º°¡ Áߴܵ˴ϴÙ. \r\n ºÒÆíÀ» µå·Á Á˼ÛÇÕ´Ï´Ù. Á¡°ËÈÄ ´Ù½Ã ÀÌ¿ëÇØÁֽʽÿä. '); //return; var code_cate = storage_frm.section.value; var code = storage_frm.sub_sec.value; //if(openHeight > 768) openHeight = 730; var openHeight = 770; if(link_idx) { openWin('https://uimg.todisk.com/main/editor/upload.php?link_idx='+link_idx+'&code_cate='+code_cate+'&code='+code, 'bbs_write', '842', openHeight, 'yes'); } else{ openWin('https://uimg.todisk.com/main/editor/upload.php?code_cate='+code_cate+'&code='+code, 'bbs_write', '842', openHeight, 'yes'); } } } function openBbsWrite_new(link_idx){ if(GetCookie('grade') < 1){ if(GetCookie('is_ctrl')=="Y"){ if(confirm('"µî·ÏÇϱâ"´Â ÆǸÅÀÚ·Î µî·ÏµÈ ȸ¿ø¸¸ °¡´ÉÇÕ´Ï´Ù. \r\n\r\nÆǸÅÀÚ½Åû È­¸éÀ¸·Î À̵¿ÇϽðڽÀ´Ï±î? ')){ location.href='./mypage.php?doc=seller_req'; } }else{ alert('"µî·ÏÇϱâ"´Â Àڳຸȣ°èÁ¤À¸·Î ÀÌ¿ëÇϽǼö ¾ø´Â ¸Þ´º ÀÔ´Ï´Ù. \r\n\r\nº» °èÁ¤À¸·Î Á¢¼Ó ÈÄ ÀÌ¿ë¹Ù¶ø´Ï´Ù. '); } }else{ //alert('½Ã½ºÅÛ ¾÷µ¥ÀÌÆ®¸¦ À§ÇØ 22:00ºÎÅÍ 23:00±îÁö ¾÷·Îµå°¡ Áߴܵ˴ϴÙ. \r\nºÒÆíÀ» µå·Á Á˼ÛÇÕ´Ï´Ù. Àá½ÃÈÄ¿¡ ´Ù½Ã ÀÌ¿ëÇØÁֽʽÿä. '); //alert('ÆÄÀÏ ¼­¹ö Á¡°ËÀ» À§ÇØ ¾÷·Îµå ¼­ºñ½º°¡ Áߴܵ˴ϴÙ. \r\n ºÒÆíÀ» µå·Á Á˼ÛÇÕ´Ï´Ù. Á¡°ËÈÄ ´Ù½Ã ÀÌ¿ëÇØÁֽʽÿä. '); //return; var code_cate = storage_frm.section.value; var code = storage_frm.sub_sec.value; //if(openHeight > 768) openHeight = 730; var openHeight = 836; if(link_idx) { openWin('https://uimg.todisk.com/main/editor/upload_new.php?link_idx='+link_idx+'&code_cate='+code_cate+'&code='+code, 'bbs_write', '842', openHeight, 'yes'); } else { openWin('https://uimg.todisk.com/main/editor/upload_new.php?code_cate='+code_cate+'&code='+code, 'bbs_write', '842', openHeight, 'yes'); } } } function openBbsWrite1(link_idx){ var passid= GetCookie('mid'); if(GetCookie('grade') < 1){ alert('"µî·ÏÇϱâ"´Â ÆǸÅÀÚ·Î µî·ÏµÈ ȸ¿ø¸¸ °¡´ÉÇÕ´Ï´Ù. \r\n\r\nÆǸÅÀÚ½ÅûÀº ³»Á¤º¸°ü¸® > ȸ¿ø¸Þ´º > ÆǸÅÀÚ½ÅûÀ» ÀÌ¿ëÇØÁֽñ⠹ٶø´Ï´Ù. '); }else{ //alert('½Ã½ºÅÛ ¾÷µ¥ÀÌÆ®¸¦ À§ÇØ 22:00ºÎÅÍ 23:00±îÁö ¾÷·Îµå°¡ Áߴܵ˴ϴÙ. \r\nºÒÆíÀ» µå·Á Á˼ÛÇÕ´Ï´Ù. Àá½ÃÈÄ¿¡ ´Ù½Ã ÀÌ¿ëÇØÁֽʽÿä. '); //alert('ÆÄÀÏ ¼­¹ö Á¡°ËÀ» À§ÇØ ¾÷·Îµå ¼­ºñ½º°¡ Áߴܵ˴ϴÙ. \r\n ºÒÆíÀ» µå·Á Á˼ÛÇÕ´Ï´Ù. Á¡°ËÈÄ ´Ù½Ã ÀÌ¿ëÇØÁֽʽÿä. '); //return; var code_cate = storage_frm.section.value; var code = storage_frm.sub_sec.value; if(openHeight > 768) openHeight = 730; if(link_idx) { openWin('https://uimg.todisk.com/main/editor/upload.php?link_idx='+link_idx+'&code_cate='+code_cate+'&code='+code+'&user_id='+passid, 'bbs_write', '842', openHeight, 'yes'); } else{ openWin('https://uimg.todisk.com/main/editor/upload.php?code_cate='+code_cate+'&code='+code+'&user_id='+passid, 'bbs_write', '842', openHeight, 'yes'); } } } function openBbsInfo(n){ //openWin('', 'bbs_info', 812, 845, 'no'); //makeForm('/_main/popup/bbs_info4.php','bbs_info','idx¡ë'+n); openWin('', 'bbs_info4', 1016, 845, 'no'); makeForm('/_main/popup/bbs_info4.php','bbs_info4','idx¡ë'+n); } function openBbsInfo4(n){ openWin('/_main/popup.php?doc=bbsInfo&idx='+n+'&eidx='+php_urlencode(php_base64_encode(n)), 'bbs_info4', 1066, 1000, 'yes'); return; openWin('', 'bbs_info4', 1016, 845, 'no'); makeForm('/_main/popup/bbs_info4.php','bbs_info4','idx¡ë'+n); } function php_base64_encode(stringToEncode) { if(typeof window !== 'undefined') { if(typeof window.btoa !== 'undefined') { return window.btoa(unescape(encodeURIComponent(stringToEncode))) } } else { return new Buffer(stringToEncode).toString('base64') } var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' var o1 var o2 var o3 var h1 var h2 var h3 var h4 var bits var i = 0 var ac = 0 var enc = '' var tmpArr = [] if(!stringToEncode) { return stringToEncode } stringToEncode = unescape(encodeURIComponent(stringToEncode)) do { // pack three octets into four hexets o1 = stringToEncode.charCodeAt(i++) o2 = stringToEncode.charCodeAt(i++) o3 = stringToEncode.charCodeAt(i++) bits = o1 << 16 | o2 << 8 | o3 h1 = bits >> 18 & 0x3f h2 = bits >> 12 & 0x3f h3 = bits >> 6 & 0x3f h4 = bits & 0x3f // use hexets to index into b64, and append result to encoded string tmpArr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4) } while (i < stringToEncode.length) enc = tmpArr.join('') var r = stringToEncode.length % 3 return (r ? enc.slice(0, r - 3) : enc) + '==='.slice(r || 3) } function php_urlencode(str) { str = (str + '') return encodeURIComponent(str) .replace(/!/g, '%21') .replace(/'/g, '%27') .replace(/\(/g, '%28') .replace(/\)/g, '%29') .replace(/\*/g, '%2A') .replace(/%20/g, '+') } function illusion_openBbsInfo(n){ openWin('', 'illusionBBS_view', 1014, 797, 'no'); makeForm('/_main/popup/illusionbbs_View.html','illusionBBS_view','idx¡ë'+n); } function openBbsInfo_sh(n){ //openWin('', 'bbs_info', 812, 845, 'no'); //makeForm('/_main/popup/bbs_info4.php','bbs_info','idx¡ë'+n); openWin('', 'bbs_info_sh', 1016, 843, 'no'); makeForm('/_main/popup/bbs_info_sh.php','bbs_info_sh','idx¡ë'+n); } function openBbsInfo_a(n){ openWin('', 'bbs_info_a', 1016, 843, 'no'); makeForm('/_main/popup/bbs_info_a.php','bbs_info_a','idx¡ë'+n); } function CopyInfo(n,a){ alert('3»ç ¹æ¼Û»ç Á¦ÈÞ ÄÁÅÙÃ÷´Â ¹«·á´Ù¿î·Îµå Ƚ¼ö°¡ 3ȸ·Î Á¦ÇѵǾîÀÖ½À´Ï´Ù. '); winBbsInfo(n,a); } function winBbsInfo(n,a){ if(is_dokr=="Y"){ if(!GetCookie('mid')){ alert('°£´ÜÇÑ ¹«·á°¡ÀÔ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù'); //location.href='/_main/doc.php?doc=join'; return false; } } //2015.08.14 ÆÄÆ®³ÊÄÚµåÀÖÀ»¶§ Start if(GetCookie('pt_id') && GetCookie('pt_pop')=="M"){ if(!GetCookie('mid')){ alert('°£´ÜÇÑ ¹«·á°¡ÀÔ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù'); location.href='/_main/doc.php?doc=join_regist'; return false; } } //2015.08.14 ÆÄÆ®³ÊÄÚµåÀÖÀ»¶§ End if(a == '1' && flag_authentic!='1'){ if(GetCookie('mid')){ alert('¼ºÀÎÀÎÁõ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); if(jQuery("#refurl")){ if(1) { adult_layer(jQuery("#refurl").val()); //jQuery('#iframe_zzim_layer').css({'width':'550px','height':'282px'}).attr('src','/_main/js/adult_layer.php?mode='+jQuery("#refurl").val()); //maskLayer(jQuery('#iframe_zzim_layer')); } else { location.href="/_main/popup/adult.php?mode="+jQuery("#refurl").val(); } }else{ adult_layer('ADT'); location.href="/_main/popup/adult.php"; } //openWin('/_main/popup/adult.php', 'adultCheck', '330','230', 'no'); }else{ alert('°£´ÜÇÑ ¹«·á°¡ÀÔ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù'); //openWin('/_main/popup/login_pop.php', 'loginchk', '330','230', 'no'); location.href='/_main/doc.php?doc=join'; } }else{ openBbsInfo4(n); } } function openSanction(n){ openWin2('/_main/popup/sanction.php?idx='+n,'sanc','335','320','no'); } function checkYN(obj){ var f=document.frm; if(f.chkConfirm.value=='y'){ unChkAll(obj); f.chkConfirm.value='n'; }else{ chkAll(obj); f.chkConfirm.value='y'; } } function purchaseChkDelete(obj){ ajaxSend(obj , './module/purchaseDownDel.php' , 'delete' , 'retrunPurchaseDel','»èÁ¦ÇϽðڽÀ´Ï±î?','»èÁ¦ÇÒ ±¸¸Å¸ñ·Ï¿¡ üũ¸¦ ÇØÁֽñ⠹ٶø´Ï´Ù. '); } function registChkDelete(obj){ ajaxSend(obj , './module/registDel.php' , 'delete' , 'retrunRegistDel','Á¤¸» »èÁ¦ÇϽðڽÀ´Ï±î? \r\n»èÁ¦ÇϽŠ°Ô½Ã¹°Àº º¹±¸ ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.','»èÁ¦ÇÒ ¸ñ·Ï¿¡ üũ¸¦ ÇØÁֽñ⠹ٶø´Ï´Ù. '); } function reqCmtCheck(idx) { var frm = document.cmt_frm; var contents = frm.cmt_content.value; if(contents.length < 10) { alert('10±ÛÀÚ ÀÌ»ó ÀÔ·ÂÇØÁÖ¼¼¿ä.'); frm.cmt_content.focus(); return; } sendRequest(reqCmtSendReturn,'&act=ok&idx='+idx+'&contents='+contents,'POST','/_main/module/reqCmtWrite.php',true,true); } function reqCmtSendReturn(oj){ var res = decodeURIComponent(oj.responseText); window.location.reload(); } function reqCmtDelete(n){ if(confirm('ÄÚ¸àÆ®¸¦ »èÁ¦ÇϽðڽÀ´Ï±î? ')){ sendRequest(reqCmtDeleteReturn,'&act=ok&idx='+n,'POST','./module/reqCmtDelete.php',true,true); } } function reqCmtDeleteReturn(oj){ var res = decodeURIComponent(oj.responseText); if(res=='_ok'){ window.location.reload(); }else{ alert('»èÁ¦±ÇÇÑÀÌ ¾ø½À´Ï´Ù. '); } } function adultContents(){ alert("¼ºÀÎÀÎÁõ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. "); if(jQuery("#refurl")){ location.href="/_main/popup/adult.php?mode="+jQuery("#refurl").val(); }else{ location.href="/_main/popup/adult.php"; } // openWin('./popup/adult.php', 'adultCheck', '330', '230', 'no'); } function sellerPermCheck(url){ //alert('½Ã½ºÅÛ Á¡°ËÁßÀÔ´Ï´Ù. ¾÷·Îµå ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.'); //return; if(GetCookie('mid')){ openBbsWrite(); }else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); } } function sellerPermCheck_new(url){ //alert('½Ã½ºÅÛ Á¡°ËÁßÀÔ´Ï´Ù. ¾÷·Îµå ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.'); //return; if(GetCookie('mid')){ openBbsWrite_new(); }else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); } } function sellerPermCheck1(url){ //alert('½Ã½ºÅÛ Á¡°ËÁßÀÔ´Ï´Ù. ¾÷·Îµå ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.'); //return; //alert(GetCookie('mid')); if(GetCookie('mid')){ openBbsWrite1(); }else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); } } function ChkZzim(obj){ if(GetCookie('mid')){ ajaxSend(obj , '/_main/module/zzim_data.php' , 'regist' , 'retrunZzimin','¼±ÅÃÇÑ °Ô½Ã¹°À» ÂòÇϽðڽÀ´Ï±î?','ÂòÇÒ ¸ñ·Ï¿¡ üũ¸¦ ÇØÁֽñ⠹ٶø´Ï´Ù.'); }else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); return; } } function ChkZzimOne(obj){ if(GetCookie('mid')){ if(confirm('°Ô½Ã¹°À» ÂòÇϽðڽÀ´Ï±î?')){ sendRequest(retrunZziminOne,'&act=re_One&chkvalue='+obj,'POST','/_main/module/zzim_data.php',true,true); } //ajaxSend(obj , '/_main/module/zzim_data.php' , 're_One' , 'retrunZziminOne','¼±ÅÃÇÑ °Ô½Ã¹°À» ÂòÇϽðڽÀ´Ï±î?','ÂòÇÒ ¸ñ·Ï¿¡ üũ¸¦ ÇØÁֽñ⠹ٶø´Ï´Ù.'); }else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); return; } } function retrunZzimin(oj){ var res = decodeURIComponent(oj.responseText); var split_res = res.split('|'); //alert(split_res); if(split_res[0]=='_ok'){ if (split_res[2]==0){ alert( split_res[1]+'°³ÀÇ °Ô½Ã¹°ÀÌ ÂòÇϱⰡ µÇ¾ú½À´Ï´Ù. \n [³»°¡ ÂòÇÑ ÀÚ·á] ¿¡¼­ È®ÀÎ °¡´ÉÇÕ´Ï´Ù.'); }else{ alert( split_res[1]+'°³ÀÇ °Ô½Ã¹°ÀÌ ÂòÇϱⰡ µÇ¾ú½À´Ï´Ù. \n\n³ª¸ÓÁö '+split_res[2]+'°³ÀÇ °Ô½Ã¹°Àº ÀÌ¹Ì ÂòÇϱⰡ µÇ¾îÀÖ½À´Ï´Ù. '); } //location.href='/_main/mypage.php?doc=zzim'; }else if(split_res[0]=='_over'){ alert(' ȸ¿ø´ç ÂòÇÒ¼ö Àִ°¹¼ö´Â 100°³±îÁöÀÔ´Ï´Ù. \n\n ÇöÀç '+split_res[1]+'°³ÀÇ °Ô½Ã¹°ÀÌ ÂòÇϱⰡ µÇ¾îÀÖ½À´Ï´Ù. '); window.location.reload(); }else if(split_res[0]=='_chk'){ alert(' ¼±ÅÃÇϽŠ°Ô½Ã¹°Àº ÀÌ¹Ì ÂòÇϱ⠸ñ·Ï¿¡ Æ÷ÇԵǾîÀÖ½À´Ï´Ù. '); window.location.reload(); }else{ alert('µ¥ÀÌÅÍ º£À̽ºÀÇ ¿À·ù·Î ÀÎÇØ ÂòÇϱ⿡ ½ÇÆÐÇÏ¿´½À´Ï´Ù. '); window.location.reload(); } } function retrunZziminOne(oj){ var res = decodeURIComponent(oj.responseText); var split_res = res.split('|'); if(split_res[0]=='_ok'){ alert( '°Ô½Ã¹°ÀÌ ÂòÇϱⰡ µÇ¾ú½À´Ï´Ù. '); window.location.reload(); }else if(split_res[0]=='_over'){ alert(' ȸ¿ø´ç ÂòÇÒ¼ö Àִ°¹¼ö´Â 100°³±îÁöÀÔ´Ï´Ù. \n\n ÇöÀç '+split_res[1]+'°³ÀÇ °Ô½Ã¹°ÀÌ ÂòÇϱⰡ µÇ¾îÀÖ½À´Ï´Ù. '); }else if(split_res[0]=='_chk'){ alert(' ¼±ÅÃÇϽŠ°Ô½Ã¹°Àº ÀÌ¹Ì ÂòÇϱ⠸ñ·Ï¿¡ Æ÷ÇԵǾîÀÖ½À´Ï´Ù. '); }else{ alert('µ¥ÀÌÅÍ º£À̽ºÀÇ ¿À·ù·Î ÀÎÇØ ÂòÇϱ⿡ ½ÇÆÐÇÏ¿´½À´Ï´Ù. '); window.location.reload(); } } function ZzimDel(obj){ ajaxSend(obj , '/_main/module/zzim_data.php' , 'delete' , 'retrunZziminDel','¼±ÅÃÇÑ Âò °Ô½Ã¹°À» »èÁ¦ÇϽðڽÀ´Ï±î?','»èÁ¦ÇÒ ¸ñ·Ï¿¡ üũ¸¦ ÇØÁֽñ⠹ٶø´Ï´Ù.'); } function retrunZziminDel(oj){ var res = decodeURIComponent(oj.responseText); var split_res = res.split('|'); if(split_res[0]=='_ok'){ alert( 'ÂòÇÑ °Ô½Ã¹°ÀÌ »èÁ¦µÇ¾ú½À´Ï´Ù. '); window.location.reload(); }else{ alert('µ¥ÀÌÅÍ º£À̽ºÀÇ ¿À·ù·Î ÀÎÇØ ÂòÇÑ °Ô½Ã¹° »èÁ¦¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù. '); window.location.reload(); } } // 2010.12.17ºÎÅÍ 21ÀϱîÁö 5ÀÏ°£ ¹«·á 10±â°¡ ´Ù¿î ÄíÆù Áö±Þ function freeCPdownload() { sendRequest(retrunFreeCPdownload,'&act=ok','POST','/_main/module/freeCPdownload.php',true,true); } function retrunFreeCPdownload(oj) { var res = decodeURIComponent(oj.responseText); var split_res = res.split('|'); if(split_res[0]=='_ok') { alert( '¹«·á ÄíÆù 1¸Å°¡ ¹ß±Þ µÇ¾ú½À´Ï´Ù.'); window.location.reload(); } else if(split_res[0]=='_complete') { alert( '¿À´Ã ¹«·á ÄíÆù 1¸Å°¡ ÀÌ¹Ì ¹ß±ÞµÇ¾ú½À´Ï´Ù. '); window.location.reload(); } else if(split_res[0]=='_end') { alert( '¹«·á 10GB ´Ù¿î°¡´ÉÇÑ ÄíÆùÁö±Þ ±â°£ÀÌ Á¾·áµÇ¾ú½À´Ï´Ù. '); window.location.reload(); } else if(split_res[0]=='_nologin') { alert( '·Î±×ÀÎ ÈÄ ÀÌ¿ëÇϼ¼¿ä. '); return false; } else { //alert('µ¥ÀÌÅÍ º£À̽ºÀÇ ¿À·ù·Î ÀÎÇØ ¹«·á´Ù¿î ÄíÆù¹ß±Þ¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù. '); return false; } } function Selectdown(){ var tmpBrowser = "none"; var userAgent = navigator.userAgent; userAgent = userAgent.toLowerCase(); if (userAgent.indexOf("macintosh") > -1 || userAgent.indexOf("mac os") > -1){tmpBrowser = "MAC";} //Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; IPMS/A640400A-14D460801A1-000000426571; TCO_20110131100426; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0) else if (userAgent.indexOf("msie") > -1){tmpBrowser = "ie";} //Mozilla/5.0 (Windows; U; Windows NT 6.1; ko; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 IPMS/A640400A-14D460801A1-000000426571 else if (navigator.appName == 'Netscape' && userAgent.indexOf("trident") > -1){tmpBrowser = "ie";} else if(userAgent.indexOf("firefox") > -1){tmpBrowser = "firefox";} //Opera/9.80 (Windows NT 6.1; U; ko) Presto/2.6.30 Version/10.62 else if(userAgent.indexOf("opera") > -1){tmpBrowser = "opera";} //Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 else if(userAgent.indexOf("chrome") > -1){tmpBrowser = "chrome";} //Mozilla/5.0 (Windows; U; Windows NT 6.1; ko-KR) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5 else if(userAgent.indexOf("safari") > -1){tmpBrowser = "safari";} if(is_service_chk=="Y"){ if(!g_run && jQuery("#pop_install_guide_area").length>0){ showLayerById('pop_install_guide_area_mask','pop_install_guide_area'); return; } } var url = "/_main/module/bbsDownTry_class.php"; var params = "act=selectdown"; var chknum = 0; jQuery("input[name='multy[]']:checkbox").each(function() { if (jQuery(this).is(":checked")) { chknum += 1; params += "&chkvalue[]="+jQuery(this).val(); } }); if(chknum > 5) { alert('ÃÖ´ë5°³ ±îÁö ¼±Åôٿî·Îµå °¡´ÉÇÕ´Ï´Ù. \r\r¼±ÅÃÇϽŠ°Ô½Ã¹° °¹¼ö¸¦ È®ÀÎÇØ ÁÖ¼¼¿ä. '); return false; } if(chknum == 0) { alert('´Ù¿î·Îµå ÇÏ½Ç ÄÁÅÙÃ÷¸¦ ¼±Åà Çϼ¼¿ä.'); return false; } (function($){ $.ajax({ url: url, type: 'POST', data: params, dataType: 'xml', success: function(xml){ if($(xml).find('data').find('result').text()>0){ if(confirm('°Ô½Ã¹° : '+$(xml).find('data').find('result').text()+'°Ç \n\nÆ÷ÀÎÆ® Â÷°¨ : '+$(xml).find('data').find('pointcash').text()+' P \n\nº¸³Ê½º Â÷°¨ : '+$(xml).find('data').find('pointbonus').text()+' P \n\n¼±ÅÃÇϽŠÀڷḦ ´Ù¿î·ÎµåÇϽðڽÀ´Ï±î? ')){ //var params2 = "act=selectCheckDown2&bbs_no="+$(xml).find('data').find('num').text()+"&type="+$(xml).find('data').find('sPayType').text(); var params2 = "act=selectCheckDown2&bbs_no="+$(xml).find('data').find('num').text()+"&pur_idx="+$(xml).find('data').find('p_num').text()+"&no_multy_chk="+$(xml).find('data').find('no_multy_chk').text()+"&type="+$(xml).find('data').find('sPayType').text(); if(tmpBrowser == 'MAC') { var bbsno=''; var uid=''; $.ajax({ url: url, type: 'POST', data: params2, dataType: 'xml', success: function(xml){ $(xml).find('data').find('result').each(function(i){ if($(xml).find('data').find('num_'+i).find('result').text()=="YES") { if(bbsno==""){ bbsno=$(xml).find('data').find('num_'+i).find('app').find('idx').text(); }else{ bbsno+= "|"+$(xml).find('data').find('num_'+i).find('app').find('idx').text(); } if(uid=="") uid = $(xml).find('data').find('num_'+i).find('app').find('userid').text(); } var code = $(xml).find('data').find('num_'+i).find('code').text(); var message = $(xml).find('data').find('num_'+i).find('message').text(); if(message.length>0) { alert(message); } }); mac_download(uid,bbsno); }, error: function() { alert('ÄÁÅÙÃ÷ ±¸¸Å¸¦ ½ÇÆÐÇÏ¿´½À´Ï´Ù.'); } }); } else if(tmpBrowser == 'ie' && !$(xml).find('data').find('tsv_chk').text()) { (function($){ $.ajax({ url: url, type: 'POST', data: params2, dataType: 'xml', success: function(xml){ $(xml).find('data').find('result').each(function(i){ if($(xml).find('data').find('num_'+i).find('result').text()=="YES") { mmsv_download( $(xml).find('data').find('num_'+i).find('app').find('userid').text() , $(xml).find('data').find('num_'+i).find('app').find('hash').text() , $(xml).find('data').find('num_'+i).find('app').find('file_type').text() , $(xml).find('data').find('num_'+i).find('app').find('idx').text() , $(xml).find('data').find('num_'+i).find('app').find('pur_idx').text() , $(xml).find('data').find('num_'+i).find('app').find('free').text() , $(xml).find('data').find('num_'+i).find('app').find('div').text() , $(xml).find('data').find('num_'+i).find('app').find('flag').text() ); return; } var code = $(xml).find('data').find('num_'+i).find('code').text(); var message = $(xml).find('data').find('num_'+i).find('message').text(); if(message.length>0) { alert(message); } }); }, error: function() { alert('ÄÁÅÙÃ÷ ±¸¸Å¸¦ ½ÇÆÐÇÏ¿´½À´Ï´Ù.'); } }); })(jQuery); } else { var param = ''; (function($){ $.ajax({ url: url, type: 'POST', data: params2, dataType: 'xml', success: function(xml){ $(xml).find('data').find('result').each(function(i){ if($(xml).find('data').find('num_'+i).find('result').text()=="YES") { param += "@@"+$(xml).find('data').find('num_'+i).find('app').find('userid').text() +"||"+$(xml).find('data').find('num_'+i).find('app').find('hash').text() +"||"+$(xml).find('data').find('num_'+i).find('app').find('file_type').text() +"||"+$(xml).find('data').find('num_'+i).find('app').find('pur_idx').text() +"||"+$(xml).find('data').find('num_'+i).find('app').find('idx').text() +"||"+$(xml).find('data').find('num_'+i).find('app').find('free').text() +"||"+$(xml).find('data').find('num_'+i).find('app').find('flag').text(); } var code = $(xml).find('data').find('num_'+i).find('code').text(); var message = $(xml).find('data').find('num_'+i).find('message').text(); if(message.length>0) { alert(message); } }); bbsifr = ""; jQuery(".sub_box").append(bbsifr); eval("ifrmHidden_").location.href = "/_main/down.run.php?param="+param.substring(2); }, error: function() { alert('ÄÁÅÙÃ÷ ±¸¸Å¸¦ ½ÇÆÐÇÏ¿´½À´Ï´Ù.'); } }); })(jQuery); } } } var code = $(xml).find('data').find('code').text(); var message = $(xml).find('data').find('message').text(); var codemsg = $(xml).find('data').find('codemsg').text(); if(message.length>0) { if(codemsg=="lack_point"){ var is_autocharge = chkAutoChargeMem_storage(); if(!is_autocharge.succ){ alert(message); }else{ //if(confirm(' ÇöÀç Æ÷ÀÎÆ®°¡ ºÎÁ·ÇÕ´Ï´Ù. \n\n ȸ¿ø´ÔÀº [ÀÚµ¿ ÃæÀü ¼­ºñ½º]¸¦ ÀÌ¿ë ÁßÀÔ´Ï´Ù.\n\n Æ÷ÀÎÆ® ÀÚµ¿ ÃæÀüÇϽðڽÀ´Ï±î? ')){ exeAutoCharge_storage(); //} } }else{ alert(message); } } }, error: function() { alert('ÄÁÅÙÃ÷ ±¸¸Å¸¦ ½ÇÆÐÇÏ¿´½À´Ï´Ù.'); } }); })(jQuery); } function chkAutoChargeMem_storage() { var returnData = null; jQuery.support.cors = true; jQuery.ajax({ type : 'POST', url : '/ajax.proc.php', data : 'mode=auto_charge_check', dataType : 'json', crossDomain: true, async:false, xhrFields: { withCredentials: true }, error: function(xhr, status, error){ //alert(error+"!"); alert("¼­¹öÅë½Å¿¡ ¹®Á¦°¡ ÀÖ½À´Ï´Ù. Àá½ÃÈÄ ´Ù½Ã ½ÃµµÇØ ÁÖ¼¼¿ä."); }, success : function(strt){ returnData = strt; } }); return returnData; } function exeAutoCharge_storage() { var returnData = null; jQuery.support.cors = true; jQuery.ajax({ type : 'POST', url : '/ajax.proc.php', data : 'mode=exe_auto_charge', dataType : 'json', crossDomain: true, async:false, xhrFields: { withCredentials: true }, error: function(xhr, status, error){ //alert(error+"!"); alert("¼­¹öÅë½Å¿¡ ¹®Á¦°¡ ÀÖ½À´Ï´Ù. Àá½ÃÈÄ ´Ù½Ã ½ÃµµÇØ ÁÖ¼¼¿ä."); }, success : function(strt){ returnData = strt; } }); if(returnData.succ){ //alert(returnData.msg); location.reload(); }else{ alert(returnData.msg); } }