document.write(""); document.write(""); document.write(""); var noUsingStr = new Array('»õ³¢','°³»õ³¢','¼Ò»õ³¢','º´½Å','Áö¶ö','¾¾ÆÈ','½ÊÆÈ','´Ï±â¹Ì','Âî¶ö','Áö¶ö','½Ö³â','½Ö³ð','ºù½Å','Á¿±î','´Ï±â¹Ì','Á¿°°Àº°Ô','Àâ³ð','º­¾û½Å','¹Ùº¸»õ³¢','¾Ã»õ³¢','¾¾¹ß','¾¾¹Ù','¾¾ÆÈ','½Ã¹ú','¾¾¹ú','¶°±×¶ö','Á¿¹ä','½¦ÀÌ','µî½Å','½Î°¡Áö','¹ÌÄ£³ð','¹ÌÄ£³Ñ','Âî¶ö','Á×½À´Ï´Ù','¾¾¹ë³Ñ','»ç±â','³ë¸ð','¾ßµ¿','°­°£','filenori','ÆÄÀϳ븮','ÆÄÀÏ ³ë¸®','mypot','¸¶ÀÌÆÌ','taboo','incest','90³â»ý','91³â»ý','92³â»ý','93³â»ý','94³â»ý','95³â»ý','96³â»ý','97³â»ý','98³â»ý','99³â»ý','00³â»ý','01³â»ý','02³â»ý','03³â»ý','04³â»ý','05³â»ý','06³â»ý','07³â»ý','08³â»ý','09³â»ý','10³â»ý','³â»ý','19»ì','18»ì','17»ì','16»ì','15»ì','14»ì','13»ì','12»ì','11»ì','10»ì','9»ì','8»ì','7»ì','6»ì','¿©»ó','À¯µù','À¯Ä¡¿ø','¼Òdz','ÀÔÇÐ','Á¹¾÷','±³½Ç','¹Ì¼º³â','û¼Ò³â','À¯Æ÷','¿©ÃÊ»ý','¿îµ¿Àå','â°í','±³»ý','³²°í»ý','³²Áß»ý','³²ÃÊ»ý','¿©Áß»ý','¿©°í»ý','¿©Çлý','³²Çлý','°íµîÇлý','ÁßÇлý','ÃʵîÇлý','±³º¹','À¯ÇÐ','¾î¸°ÀÌ','¾Æµ¿','·Î¸®Å¸','Á÷ÃÔ','ÃʵîÇб³','ÁßÇб³','°íµîÇб³','°íµù','Áßµù','Ãʵù','°­°£','rape','violate','lolita','elementary','middle school','high school','child','classroom','school uniform'); var noUsingStr2 = new Array('»õ³¢','°³»õ³¢','¼Ò»õ³¢','º´½Å','Áö¶ö','¾¾ÆÈ','½ÊÆÈ','´Ï±â¹Ì','Âî¶ö','Áö¶ö','½Ö³â','½Ö³ð','ºù½Å','Á¿±î','Á¿°°Àº°Ô','Àâ³ð','º­¾û½Å','¹Ùº¸»õ³¢','¾Ã»õ³¢','¾¾¹ß','¾¾¹Ù','¾¾ÆÈ','½Ã¹ú','¾¾¹ú','¶°±×¶ö','Á¿¹ä','½¦ÀÌ','µî½Å','½Î°¡Áö','¹ÌÄ£³ð','¹ÌÄ£³Ñ','Âî¶ö','Á×½À´Ï´Ù','¾¾¹ë³Ñ','Cbal','C_¹ß','C¹ß','¾²¹ú','C ¹ß','°³»õ','¾¾À̹ß','¹ÌÄ£³ë¸¶','°ÅÁö°°Àº','´×±â¹Ì','À°½Ã¶ö','½à³ð','½à³â','°³°°Àº','°³µµ¶õ½º','°³¶Ç¶óÀÌ','°³¶Ç¶õ½º','°³¶ó¼®','°³¶ó½»','°³»õ²¥','°³»õÀÌ','»õ½ÃÀÌ','°³¾²·¹±â','°³¾¾','°³ÀÚ½Ä','°³Á¿°°Àº','°³ÄÚ³ª','°Ô»õ','°Ô»õ³¢','°èÁý','°íÀÚ','²¨Á®','²¿Á®','´«±î¸®','´«¾Ë','´«±ò','´Ï¹Ì¶ö','´Ï¹Ì·²','´ÚÃÄ','´ÚÃÝ','´ë°¡¸®','µµ¶óÀÌ','µðÁå´Ù','µðÁø´Ù','µû¸Ô´Ù','¶Ç·¡ÀÌ','¸ÁÇÒ','¸é»ó','¸ð°¡Áö','¹Ù¸¥´Ù','¹ß¸ð°¡Áö','¹ð½®','º´½®','º¸Áö','”·½Å','”·½®','ºù½Å','ºü±¸¸®','»öÈ÷','½ÃÆÎ','½Ê»õ²¥','¾¾ ¹Ù','¾Ãµü','¾Ã½Ø²¥','¾Æ°¡¸®','¿³°¡Æ°','¿³¸Ô¾î','¿Ö³ð','Àâ°Í','ÁÒ³½','ÁֵվƸ®','ÁÖµùÀÌ','Â¥Á®','ÄÚÀïÀÌ','ÃÄÁ×Àϳð','Âðµû','ÂîÁú','ÂÉ´Ù','È£·Î','Èıî½Ã','ÈÄÀå','È£±¸','G¶ö','G ¶ö','°í¼Ò','°í¹ß','ó¹ú'); var _USE_; var n4 = (document.layers)?true:false; var e4 = (document.all)?true:false; function hidestatus(){ window.status=''; return true; } function returnEventFalse(){ event.returnValue = false; } if(_USE_!=1){ if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT); document.onmouseover=hidestatus; document.onmouseout=hidestatus; document.oncontextmenu = returnEventFalse; } function $(getid){return document.getElementById(getid);} function in_array(Val,Arr){ for(var i=0;iÀ̹ÌÁö ¹Ì¸®º¸±â"); imgWin.document.write(""); imgWin.document.write(""); imgWin.document.close(); } function isNum(e){ if ((event.keyCode >= 45 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8|| event.keyCode==13 || event.keyCode==9) return true; else return false; } function frmCheck(){ var frm = document.loginFrm; if(!frm.mb_id.value){ alert('¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_id.focus(); return false; } var filter = /[~!@\#$%<>^&*\()\-=+_\¡¯]/gi; if(filter.test(frm.mb_id.value)) { alert('Ư¼ö¹®ÀÚ¸¦ ÀÔ·ÂÇϽǼö ¾ø½À´Ï´Ù. '); frm.mb_id.value=''; frm.mb_pw.value=''; frm.mb_id.focus(); return false; } if(!frm.mb_pw.value){ alert('ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_pw.focus(); return false; } ajaSubmit(); } function onloadMenuDisplay(){ if(GetCookie('mid')){ $('purchase_list').style.display='block'; if(GetCookie('grade')) $('regist_list').style.display='block'; } } function ajaSubmit(){ var frm = document.loginFrm; var valId = frm.mb_id.value; var valPw = frm.mb_pw.value; if(frm.log_save.checked==true){ var log_save = frm.log_save.value; }else{ var log_save = ''; } frm.mb_id.disabled=true; frm.mb_pw.disabled=true; jq.ajax({ type: 'POST', url: 'https://www.gfile.co.kr/main/module/JsonLoginPrc.php', //url: '/main/module/JsonLoginPrc.php', data: {act:'ok',mb_id:valId,mb_pw:valPw,log_save:log_save}, dataType: 'jsonp', crossDomain:true, jsonp: 'callback', jsonpCallback: 'idCheck2', success: function(data){ var len = data.length; var temp = ""; if(len > 0){for(var i=0; i < len; i++) temp += data[i]+"|";} temp = temp.substring(0,(temp.length-1)); var obj = new Object(); obj.responseText = temp; idCheck2(obj); }, error: function(request, status, error){alert("code : " + request.status + "\r\nmessage : " + request.reponseText);} }); } function idCheck2(oj){ var frm = document.loginFrm; var res = decodeURIComponent(oj.responseText); var split_res = res.split('|'); switch(split_res[0]){ case 'noid': var text = 'ÀÏÄ¡ÇÏ´Â ¾ÆÀ̵𰡠¾ø½À´Ï´Ù.'; alert(text); frm.mb_id.disabled=false; frm.mb_pw.disabled=false; break; case 'nopass' : var text = 'ÆÐ½º¿öµå°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.'; alert(text); frm.mb_id.disabled=false; frm.mb_pw.disabled=false; break; case 'limit_site' : if(split_res[1]!=0 && split_res[2]!=0){ var text = 'ȸ¿ø´ÔÀº Á¦Àç·Î ÀÎÇØ ¾Æ·¡±â°£µ¿¾È GÆÄÀÏÀ» ÀÌ¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. \r\n\r\n- Á¦Àç»çÀ¯ : '+split_res[3]+' \r\n\r\n- Á¦Àç±â°£ : '+split_res[1]+'ºÎÅÍ '+split_res[2]+'±îÁö '; alert(text); frm.mb_id.disabled=false; frm.mb_pw.disabled=false; }else{ var text = 'ȸ¿ø´ÔÀÇ °èÁ¤Àº Á¦Àç·Î ÀÎÇØ »èÁ¦µÇ¾ú½À´Ï´Ù. \r\n\r\n- Á¦Àç»çÀ¯ : '+split_res[3]; alert(text); frm.mb_id.disabled=false; frm.mb_pw.disabled=false; } break; case 'logpass' : if(location.href.indexOf('adult_login')!=-1){ if(GetCookie('adult')=='1'){ location.href='./index_new.php'; }else{ location.href='./adult19.php?doc='+encodeURIComponent('adultConfirm'); } } sendRequest(resultValue,'','get','./module/login_ok_gs.php',true,true); //location.href='/main/mypage.php?doc=pass_edit2'; location.href='/main/index_new.php'; break; case 'limit_state' : alert('ȸ¿ø´ÔÀÇ °èÁ¤Àº ÈÞ¸é»óÅÂÀÔ´Ï´Ù.\r\n\r\nÈÞ¸é ÇØÁ¦ÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä.'); location.href='./doc.php?doc=dormancy'; break; case 'logok' : if(location.href.indexOf('adult_login')!=-1){ if(GetCookie('adult')=='1'){ location.href='./index_new.php'; }else{ location.href='./adult19.php?doc='+encodeURIComponent('adultConfirm'); } } sendRequest(resultValue,'','get','./module/login_ok_gs.php',true,true); if(GetCookie('EvtMsg') == '1'){ //if(confirm("Áö±Ý Àü¿ëÇÁ·Î±×·¥À» ÅëÇØ ·Î±×ÀÎÇϽøé 1,000 ÄÚÀÎÀ» Áï½Ã Áö±ÞÇØ µå¸³´Ï´Ù.")){ location.href='http://www.gfile.co.kr'; break; } } if(location.href.indexOf('storage.php')!=-1) location.reload(); //ÁöÆÄÀÏ ¸Þ´ºÀ϶§ if(location.href.indexOf('bbs.php')!=-1) location.reload(); //°Ô½ÃÆÇÀ϶§ ¸®ÇÁ·¹½¬ if(location.href.indexOf('mypage.php') != -1) location.reload(); if(location.href.indexOf('music.php') != -1) location.reload(); if(location.href.indexOf('naga.php') != -1) location.reload(); if(location.href.indexOf('green.php') != -1) location.reload(); if(location.href.indexOf('charge.php') != -1) location.reload(); if(location.href.indexOf('gsquare.php') != -1) location.reload(); if(location.href.indexOf('customer.php') != -1) location.reload(); if(location.href.indexOf('search.php') != -1) location.href='http://www.gfile.co.kr'; if(location.href.indexOf('index_new.php') != -1) location.reload(); if(location.href.indexOf('index_new2.php') != -1) location.reload(); if(location.href.indexOf('keyword.php') != -1) location.reload(); if(location.href.indexOf('theme.php') != -1) location.reload(); if(location.href.indexOf('event.php') != -1) location.reload(); if(location.href.indexOf('appage.php') != -1) location.reload(); if(location.href.indexOf('doc.php') != -1) location.href='http://www.gfile.co.kr'; if(location.href.indexOf('doc2.php') != -1) location.href=frm.prevPage.value; else location.href='http://www.gfile.co.kr' if(location.href.indexOf('game_login.php') != -1) {game_login_sucess();} if (GetCookie('lmt') > 2 && GetCookie('adid')=='power'){if(location.href.indexOf('index.php')!=-1) location.href='http://www.gfile.co.kr';} if($('bn_main')){showBanner($('bn_main'));} if($('itemIco')){ $('itemIco').innerHTML=" ¾ÆÀÌÅÛ  "; } break; } } function resultValue(oj){ var res = decodeURIComponent(oj.responseText); $('loginBox').innerHTML = res; sendRequest(resultValue2,'','get','./module/loginpop.php',true,true); } function resultValue2(oj){ var res = decodeURIComponent(oj.responseText); switch(res){ case '_true': if(GetCookie('Pop')!=1){ }else{ if(GetCookie('Pop')!=1){ }break; } case '_false': break; } } function resultValue3(oj){ var res = decodeURIComponent(oj.responseText); if(GetCookie("Pop") != "1") { $('Pop').innerHTML = res; } } function fireCookie( name, value, expiredays){ var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + parseInt(expiredays)); document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';' } function closePop(){ fireCookie( 'Pop', '1', '1'); location.href="/main/charge.php"; } function location_href(){ fireCookie( 'Pop', '1', '1'); location.href="/main/charge.php"; } function onkeyUpFunc(){ var keyValue = event.keyCode; if ( keyValue==13 ) { frmCheck(); }else{ return; } } function Keycode(e){ var result; if(window.event) result = window.event.keyCode; else if(e) result = e.which; return result; } function onkeyUpChk(funct){ if(window.event) var keyValue = event.keyCode; else var keyValue = ''; if ( keyValue==13 ) { var funcObj = eval(funct); funcObj(); return false; }else{ return; } } function onKeyEnter(){ var keyValue = event.keyCode; if ( keyValue==13 ) { document.frm.submit(); }else{ return; } } function searchFrmChk(){ var frm = document.searchFrm; var searchString = frm.search.value; if(frm.search_type.value==''){ alert('°Ë»öºÐ·ù¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä. '); frm.search_type.focus(); return false; } if(searchString.length < 2){ var b_keyword = frm.banner_keyword.value; if(b_keyword.length<1){ alert('°Ë»ö¾î´Â 2ÀÚÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. '); frm.search.value=''; frm.search.style.backgroundImage=''; frm.search.focus(); return false; }else{ frm.search.style.backgroundImage=''; frm.search.value=b_keyword; searchString = b_keyword; } } if(searchString.substr(0,2).indexOf(' ')!=-1){ alert('°Ë»ö¾î´Â 2ÀÚÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. '); frm.search.value=''; frm.search.focus(); return false; } sendRequest(returnSearchFrmChk,'&act=ok&type=0&str='+searchString+'&search_keyword='+frm.search_keyword.value+'&code_cate='+frm.search_type.value+'&b_keyword='+b_keyword,'POST','./module/searchChk.php',true,true); return false; } function returnSearchFrmChk(oj){ var res = decodeURIComponent(oj.responseText); var frm = document.searchFrm; if(res=='maxprc'){ alert('ÇöÀç »ç¿ëÀÚ°¡ ¸¹¾Æ °Ë»öÀÌ Áö¿¬µÇ°í ÀÖ½À´Ï´Ù \r\nÀá½ÃÈÄ¿¡ ´Ù½Ã ÀÌ¿ëÇØÁֽñ⠹ٶø´Ï´Ù. \r\n'); return false; }else if(res=='star'){ frmSearch('doc=nosearch&search_type=&search='+frm.search.value+'&stype=MVO&readsp=star'); }else if(res=='ok'){ frm.submit(); }else{ frmSearch('doc=nosearch&search_type='+frm.search_type.value+'&search='+frm.search.value+'&search_keyword='+frm.search_keyword.value+'&stype=ETC'); return false; } } function searchFrmChk1(){ var frm = document.searchFrm; var searchString = frm.search.value; if(frm.search_type.value==''){ alert('°Ë»öºÐ·ù¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä. '); frm.search_type.focus(); return false; } if(searchString.length < 2){ alert('°Ë»ö¾î´Â 2ÀÚÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. '); frm.search.value=''; frm.search.focus(); return false; } if(searchString.substr(0,2).indexOf(' ')!=-1){ alert('°Ë»ö¾î´Â 2ÀÚÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. '); frm.search.value=''; frm.search.focus(); return false; } sendRequest(returnSearchFrmChk1,'&act=ok&type=0&str='+searchString+'&code_cate='+frm.code_cate.value,'POST','/main/module/searchChk.php',true,true); return false; } function returnSearchFrmChk1(oj){ var res = decodeURIComponent(oj.responseText); var frm = document.searchFrm; if(res=='maxprc'){ alert('ÇöÀç »ç¿ëÀÚ°¡ ¸¹¾Æ °Ë»öÀÌ Áö¿¬µÇ°í ÀÖ½À´Ï´Ù \r\nÀá½ÃÈÄ¿¡ ´Ù½Ã ÀÌ¿ëÇØÁֽñ⠹ٶø´Ï´Ù. \r\n'); return false; }else if(res=='ok'){ frm.submit(); }else{ alert('¼­ºñ½º À̿뿡 ºÒÆíÀ» µå·Á Á˼ÛÇÕ´Ï´Ù. \r\n°Ë»öÇϽдܾî´Â ÀúÀÛ±ÇÀÚÀÇ ¿äû¿¡ µû¶ó °Ë»öÀÌ ±ÝÁöµÈ ´Ü¾îÀÔ´Ï´Ù. \r\n'); frm.search.value =''; return false; frm.submit(); } } function Round(Num, Position , Base) { if(Position == 0) return Math.round(Num); else if(Position > 0) { var cipher = '1'; for(var i=0; i < Position; i++ ) cipher = cipher + '0'; var no = Number(cipher); if(Base=="F") return Math.round(Num * no) / no; else return Math.round(Num / no) * no; } } function parseSize(val,Position){ var size = parseInt(val); if(size==0) return "0Bytes"; if(size < 1024) return size + "Bytes"; else if (size < Math.pow(1024,2)) return Round(size / 1024,Position,'F') + "KB"; else if (size < Math.pow(1024,3)) return Round(size / (1024*1024),Position,'F') + "MB"; else if (size < Math.pow(1024,4)) return Round(size / (1024*1024*1000),Position,'F') + "GB"; else return Round(size / Math.pow(1024,4),Position,'F') + "TB"; } function number_format(num){ var num_str = num.toString() var result = '' for(var i = 0; i minimumTime && nowTimestamp < maximumTime){ self.location.href=url; }else{ alert('"»ç¿ëÇϽô ÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾Ê½À´Ï´Ù." \r\n\r\nÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾ÊÀ» °æ¿ì »çÀÌÆ® À̿뿡 \r\nºÒÆíÇÔÀÌ ÀÖÀ» ¼ö ÀÖÀ¸¹Ç·Î ¿À¸¥ÂÊ ÇÏ´ÜÀÇ ½Ã°è¸¦ \r\n´õºíŬ¸¯ÇÏ¿© Á¤È®ÇÑ ³¯Â¥¿Í ½Ã°£À» ¸ÂÃß¾îÁֽñ⠹ٶø´Ï´Ù. '); location.href='http://gfile.co.kr'; return; } }else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä! '); } } function a_href2(url){ if(GetCookie('mid')){ var nowTimestamp = getTimestamp(); var minimumTime = "1569280211"; var maximumTime = "1569453011"; if(nowTimestamp > minimumTime && nowTimestamp < maximumTime){ self.location.href=url; }else{ alert('"»ç¿ëÇϽô ÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾Ê½À´Ï´Ù." \r\n\r\nÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾ÊÀ» °æ¿ì »çÀÌÆ® À̿뿡 \r\nºÒÆíÇÔÀÌ ÀÖÀ» ¼ö ÀÖÀ¸¹Ç·Î ¿À¸¥ÂÊ ÇÏ´ÜÀÇ ½Ã°è¸¦ \r\n´õºíŬ¸¯ÇÏ¿© Á¤È®ÇÑ ³¯Â¥¿Í ½Ã°£À» ¸ÂÃß¾îÁֽñ⠹ٶø´Ï´Ù. '); location.href='http://gfile.co.kr'; return; } }else{ self.location.href=url; } } function a_href_19(url,target){ if(GetCookie('mid')){ if (GetCookie('adult_chk')!=1){ openWindow('/main/popup/adult_chk.php', 'adult_chk', '400','200','300','410','no'); } if(GetCookie('adult')!='1'){ if(GetCookie('adult')=='1'){ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; } }else{ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; } if(GetCookie('adult')!='1'){ openWindow('http://web1.gfile.co.kr/main/popup/adult.php', 'adultCheck', '750','200','330','230', 'no'); } }else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); } } function a_href_19_adult(url,target){ if(GetCookie('mid')){ if(GetCookie('adult')!='1'){ openWindow('http://gfile.co.kr/main/popup/adult19.php', 'adultCheck', '750','200','130','230', 'no'); } if(GetCookie('adult')=='1'){ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; } }else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); } } function adult_chk(url,target){ if (!GetCookie('mid')) { alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); }else{ if (GetCookie('adult_chk')!=1){ openWindow('/main/popup/adult_chk.php', 'adult_chk', '400','200','100','410','no'); } a_href_19_adult('/main/storage.php?section=ADT',target); if(GetCookie('adult')=='1'){ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; } } } function adult_chk2(url,target){ if (!GetCookie('mid')){ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); }else{ if (GetCookie('adult_chk')!=1){ openWindow('/main/popup/adult_chk.php', 'adult_chk', '400','200','100','410','no'); } a_href_19_adult('/main/index_new.php?section=ADT'); if(GetCookie('adult')=='1'){ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; } } } function adult_chk3(url,target){ if (!GetCookie('mid')) { alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); }else{ if (GetCookie('adult_chk')!=1){ openWindow('/main/popup/adult_chk.php', 'adult_chk', '400','200','100','410','no'); } if(GetCookie('adult')!='1'){ openWindow('http://web1.gfile.co.kr/main/popup/adult.php', 'adultCheck', '750','200','130','230', 'no'); } } } function newAdultChk(){ if (!GetCookie('mid')) { if (GetCookie('adult_chk')!=1){ location.href = '/main/adult19.php?doc=adult_login'; } }else{ if(GetCookie('adult')!='1'){ /*2013-07-11 ¿©¼ººÎ*/ location.href = '/main/adult19.php?doc=adultConfirm'; } } } function adult_chk4(url,target){ if (!GetCookie('mid')) { alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); }else{ if (GetCookie('adult_chk')!=1){ openWindow('/main/popup/adult_chk.php', 'adult_chk', '400','200','100','410','no'); } if(GetCookie('adult')!='1'){ openWindow('http://web1.gfile.co.kr/main/popup/adult2.php', 'adultCheck', '750','200','130','230', 'no'); } } } function winResize(width,height){ if(!width) var Dwidth = parseInt(document.body.scrollWidth); if(!height) var Dheight = parseInt(document.body.scrollHeight); var divEl = document.createElement("div"); divEl.style.position = "absolute"; divEl.style.left = "0px"; divEl.style.top = "0px"; divEl.style.width = "100%"; divEl.style.height = "100%"; document.body.appendChild(divEl); window.resizeBy(Dwidth-divEl.offsetWidth, Dheight-divEl.offsetHeight); document.body.removeChild(divEl); } function a_href_mypage(url){ if(GetCookie('grade')){ self.location.href=url+'?doc=seller_index'; }else{ a_href(url+'?doc=index'); } } function seller_href(url){ if(GetCookie('grade') > 0){ self.location.href=url; }else{ alert('ÇØ´ç ¸Þ´º´Â ÆÇ¸ÅÀÚ ½Åû ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); } } function moveFileBoxNick(v){ var blogWin = window.open('/blog/index.html?blog='+v,'targetBlog','width=1017 , height=650 , top=10 , left=10 , status=no , scrollbars=yes'); } function openFilebox(v){ var fileBox = window.open('/blog/index.php?blog='+v,'targetBlog','width=1017 , height=650 , top=10 , left=10 , status=no , scrollbars=yes'); fileBox.focus(); } function reqFilebox(v){ var fileBox = window.open('/blog/make.php?blog='+v,'targetBlog','width=1017 , height=650 , top=10 , left=10 , status=no , scrollbars=yes'); fileBox.focus(); } function userinfo(nick){ if(nick=='GÆÄÀÏ' || nick=='¿î¿µÆÀ'){ return; } X = event.clientX + document.body.scrollLeft-50; Y = event.clientY + document.body.scrollTop+10; $('nick_info').style.zIndex='100'; $('nick_info').style.top=Y;$('nick_info').style.left=X; $('nick_info').style.width='120';$('nick_info').style.height='140'; var info_con = ""; info_con += ""; info_con += ""; info_con += ""; info_con += ""; info_con += ""; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += "
"+nick+"
"; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += "
ÂÊÁöº¸³»±â
Ä£±¸µî·Ï
"; $('nick_info').innerHTML = info_con; $('nick_info').style.display=''; } function userinfo3(nick){ if(nick=='GÆÄÀÏ' || nick=='¿î¿µÆÀ'){ return; } X = event.clientX + document.body.scrollLeft-50; Y = event.clientY + document.body.scrollTop+10; $('nick_info').style.zIndex='100'; $('nick_info').style.top=Y;$('nick_info').style.left=X; $('nick_info').style.width='120';$('nick_info').style.height='140'; var info_con = ""; info_con += ""; info_con += ""; info_con += ""; //info_con += ""; //info_con += ""; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += "
"+nick+"
ÀÚ·á ¿äû
Ä£±¸ Ãß°¡
ÂÊÁöº¸³»±â
"; $('nick_info').innerHTML = info_con; $('nick_info').style.display=''; } function bbspwCheck(arg){ //if(nick=='GÆÄÀÏ' || nick=='¿î¿µÆÀ'){ return; } X = event.clientX + document.body.scrollLeft-50; Y = event.clientY + document.body.scrollTop+10; $('bbs_info').style.zIndex='100'; $('bbs_info').style.top=Y;$('bbs_info').style.left=X; $('bbs_info').style.width='120';$('bbs_info').style.height='140'; var info_con = "
"; info_con +="
"; info_con +="
"; info_con +="
"; info_con +="
 
"; info_con +=""; info_con +="
ºñ¹Ð ±ÛÀÔ´Ï´Ù.
ºñ¹Ð¹øÈ£ ÀÔ·Â ÈÄ ÀÌ¿ë °¡´ÉÇÕ´Ï´Ù.
"; info_con +="
 
"; info_con +="
GÀÚ·á½Ç ÀÌ¿ë °ü·Ã ¹®Àǰ¡ ÀÖÀ¸½Ã¸é 1:1 ¹®ÀǸ¦ ÅëÇØ ¹®ÀÇ ÇØÁÖ¼¼¿ä
"; info_con +="
  
"; $('bbs_info').innerHTML = info_con; $('bbs_info').style.display=''; } function userinfo2(nick){ if(nick=='GÆÄÀÏ' || nick=='¿î¿µÆÀ'){ return; } X = event.clientX + document.body.scrollLeft-50; Y = event.clientY + document.body.scrollTop+10; $('nick_info').style.zIndex='100'; $('nick_info').style.top=Y;$('nick_info').style.left=X; $('nick_info').style.width='120';$('nick_info').style.height='140'; var info_con = ""; info_con += " "; info_con += " "; info_con += " "; info_con += "
"; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += " "; info_con += "
"+nick+"
ÀüüÀÚ·á
ÂÊÁöº¸³»±â
Ä£±¸µî·Ï
"; info_con += "
"; $('nick_info').innerHTML = info_con; $('nick_info').style.display=''; } function hideuserinfo(){ /* if($('nick_info').style.display==''){ $('nick_info').style.display='none'; } */ if(document.getElementById('nick_info').style.display==''){ document.getElementById('nick_info').style.display='none'; } return; } document.onmousedown = hideuserinfo; function ajaxSend(obj , acturl , act , func , msgTrue , msgFalse){ var frmValue =''; var j=0; if(obj==null){ }else if(obj.value==undefined){ for(var i=0;i"; j=j+1; } } frmValue += ""; document.getElementById(eval("space")).innerHTML = frmValue; window.open('','opentarget','width='+w+' , height='+h+' , left='+width+' , top='+height+' , scrollbars='+s); document.f.target='opentarget'; document.f.action=acturl; document.f.submit(); } }else{ alert(msgFalse); return; } }else{ if(obj.checked==true){ var j=0; if(confirm(msgTrue)){ var frmValue = ''; frmValue += "
"; frmValue += ""; frmValue += "
"; document.getElementById(eval("space")).innerHTML = frmValue; window.open('','opentarget','width='+w+' , height='+h+' , left='+width+' , top='+height); document.f.target='opentarget'; document.f.action=acturl; document.f.submit(); } }else{ alert(msgFalse); return false; } } } function chkAll(obj){ if(obj==null){ }else if(obj.value==undefined){ for(var i=0;i', '>'); } String.prototype.trim = function () { return this.replace(/(^\s*)|(s*$)/g, ""); } String.prototype.ltrim = function () { return this.replace(/^\s*/g, ""); } String.prototype.rtrim = function () { return this.replace(/s*$/g, ""); } String.prototype.removehtmlChars = function(){ var str = ((this.replace('&', '')).replace('"', '')).replace(''', ''); return (str.replace('<', '')).replace('>', ''); } function removeTag(str) { return str.replace(/(<([^>]+)>)/gi, ""); } function makeForm(url, target , param){ var text = ""; var temp = ""; var i = 0; var j = 0; text = "
"; var strPart = param.split("^"); for(i=0; i < strPart.length; i++){ var strPart2 = strPart[i].split("¡ë"); for(j=0; j < strPart2.length; j++){ if( j%2==0) { temp += ""; } } } text += temp; text += "
" document.getElementById("logInfo").innerHTML = text; document.PageForm.submit(); } function makePostSend(geturl){ var text = ""; var arUrl = geturl.split('?'); var strAction = arUrl[0]; var f = document.frm; var strPart = arUrl[1].split('&'); for(i=0; i < strPart.length; i++){ var strPart2 = strPart[i].split('='); var str = eval("f."+strPart2[0]+".value"); str = strPart2[1]; } f.submit(); } function viewFlash(sURL, sName, sFeatures){ var FLASHCAB = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"; var FLASHCID = "CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000"; var FLASHVER = "8,0,0,0"; var sFeature; var sWidth = "100%"; var sHeight = "100%"; var pmBoolean = "false"; var sTempArray; var sParamTag = ""; sFeature = sFeatures.split(/\s*,\s*/); for (var i=0; i< sFeature.length ; i++){ sTempArray = sFeature[i].split(/\s*=\s*/); if (sTempArray[0].toLowerCase() == "width"){ sWidth = sTempArray[1]; }else if (sTempArray[0].toLowerCase() == "height"){ sHeight = sTempArray[1]; }else{ if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true"){ pmBoolean = "true"; }else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false"){ pmBoolean = "false"; }else{ pmBoolean = sTempArray[1]; } sParamTag = "\n"+sParamTag; } } document.write(""); document.write(""); document.write(''); document.write(sParamTag); document.write(""); document.write(""); } function include_script(type, defer, src) { var script = document.createElement("script"); script.type = type, script.defer = defer; script.src = src; script.charset = 'euc-kr'; document.getElementsByTagName('head')[0].appendChild(script); return script; } function shortcutAdd(){ $('nick_info').innerHTML=""; } function chkDownApp(){ if(!GetCookie('mid')){ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁֽʽÿä. '); return false; } try{ WebCtrl.CheckInstall(); return true; }catch(e){ openWin('/main/popup/setup_1.php','setup','532','550','yes'); return false; } } function showBanner(ob){ if(ob.id=='bn_right' && screen.availwidth <= 1024){ return; } if(ob.id=='bn_main'){ catScroll = true; } var ads_info = result.adsData[0]; if((ads_info.ads_id==null && ads_info.ads_id=='') || ( ads_info.login=='2' && !GetCookie('mid'))) return; if(ob.id==GetCookie('bn')) return; var closeStr =''; var targetId=ob.id; if(ads_info.close=='true'){ if (ads_info.ads_id =='24' || ads_info.ads_id =='25' || ads_info.ads_id =='26'){ closeStr += "
"; }else{ closeStr += "
"; } var closeStr2= " onclick=\"$('"+ob.id+"').style.display='none';\" "; } if(ads_info.ads_id){ switch (ads_info.type) { case 'img': ob.innerHTML="
"+ads_info.alt+"
"+closeStr; break; case 'swf': var flaTong = ob.id+'_tong'; var flaLink = ob.id+'_link'; swf_str = ""; swf_str += " "; include_script('text/javascript',true,'http://gfile.co.kr/main/js/active_fla.js'); ob.innerHTML = "
"+swf_str+"
"+closeStr; break; } } ads_info=''; result.adsData[0]=''; } function open_ad(url,target,login,bn_close,bnid){ if(login==1 && !GetCookie('mid')){ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁֽʽÿä.. '); return; }else{ if(target=='_blank'){ window.open(url,'advertisement',''); if(bn_close=='true'){ $(bnid).style.display='none'; } }else if(target=='_self'){ self.location.href=url; }else if(target=='close'){ $(bnid).style.display='none'; }else{ var split_target = target.split(','); openWin(url,'advertisement',split_target[1],split_target[2],split_target[3]) if(bn_close=='true'){ $(bnid).style.display='none'; } } } } function getRealOffsetLeft(o){ return o ? o.offsetLeft + getRealOffsetLeft(o.offsetParent) : 0; } function getRealOffsetTop(o){ return o ? o.offsetTop + getRealOffsetTop(o.offsetParent) : 0; } function rePlace(targetId,bnId,setLeft,setTop){ try { tb_zone = getRealOffsetLeft($(targetId)); tb_top = $(targetId).offsetTop; $(bnId).style.left = tb_zone+setLeft; $(bnId).style.top = tb_top+setTop; }catch(e){} } function inits_layer(targetId,bnId,setLeft,setTop){ if(bnId=='bn_main'){ if(complete==true){ re_setTop = 270; if(GetCookie('adid')=="humoruniv") re_setTop = re_setTop+58; }else{ re_setTop = 188; if(GetCookie('adid')=="humoruniv") re_setTop = re_setTop+58; } if(setTop=='92') re_setTop = setTop; rePlace(targetId,bnId,setLeft,setTop); setTimeout("inits_layer('"+targetId+"','"+bnId+"',"+setLeft+","+re_setTop+")",200); }else{ rePlace(targetId,bnId,setLeft,setTop); setTimeout("inits_layer('"+targetId+"','"+bnId+"',"+setLeft+","+setTop+")",200); } } /* function fireCookie( name, value, expiredays){ var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays); document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';' } */ function hiddenBn(targetId){ if(document.all['today_no'].checked==true){ fireCookie('bn',targetId,86400); } $(targetId).style.display='none'; } function calcHeight(FrameName){ if(document.all) { var the_height = frames[FrameName].document.body.scrollHeight; } else { var the_height= document.getElementById(FrameName).contentWindow.document.body.offsetHeight; } document.getElementById(FrameName).height=the_height; } function loginFocus(v){ var inputId = v.id; if(inputId=='mb_id'){ $('mb_id').style.borderWidth=1; $('mb_pw').style.borderWidth=1; $('mb_id').style.backgroundImage=''; bgControl($('mb_pw'),'/main/template/image/login_10.gif'); }else{ $('mb_id').style.borderWidth=1; $('mb_pw').style.borderWidth=1; $('mb_pw').style.backgroundImage=''; bgControl($('mb_id'),'/main/template/image/login_09.gif'); } } function loginFocus2(v){ var inputId = v.id; if(inputId=='mb_id'){ document.getElementById('mb_id').style.borderWidth=1; document.getElementById('mb_pw').style.borderWidth=1; document.getElementById('mb_id').style.backgroundImage=''; bgControl2(document.getElementById('mb_pw'),'/main/img/common/login_pw.png'); }else{ document.getElementById('mb_id').style.borderWidth=1; document.getElementById('mb_pw').style.borderWidth=1; document.getElementById('mb_pw').style.backgroundImage=''; bgControl2(document.getElementById('mb_id'),'/main/img/common/login_id.png'); } } /* function loginFocus2(v){ var inputId = v.id; if(inputId=='mb_id'){ $('mb_id').style.borderWidth=1; $('mb_pw').style.borderWidth=1; $('mb_id').style.backgroundImage=''; bgControl2($('mb_pw'),'/main/img/new_common/pass_bg.gif'); }else{ $('mb_id').style.borderWidth=1; $('mb_pw').style.borderWidth=1; $('mb_pw').style.backgroundImage=''; bgControl2($('mb_id'),'/main/img/new_common/id_bg.gif'); } } */ function qFrmChk(){ var f = document.qfrm; if(!f.q_search.value){ alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä. '); return false; } if(f.q_search.value.length < 2){ alert('°Ë»ö¾î´Â 2ÀÚÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. '); return false; } var q_type = f.q_type.value; switch (q_type) { case 'gfile': sendRequest(returnQuickSearch,'&act=ok&type=0&str='+f.q_search.value,'POST','/main/module/searchChk.php',true,true); break; case 'necessary': location.href='/main/bbs.php?table=necessary&search='+f.q_search.value+'&schtype=title&order=&vi=&p=1'; break; case 'caption': location.href='/main/bbs.php?table=caption&search='+f.q_search.value+'&schtype=title&order=&vi=&p=1'; break; case 'faq': location.href='/main/customer.php?doc=index_&search='+f.q_search.value+'&type=title&p=1'; break; } } function returnQuickSearch(oj){ var res = decodeURIComponent(oj.responseText); var f = document.qfrm; if(res=='maxprc'){ alert('ÇöÀç »ç¿ëÀÚ°¡ ¸¹¾Æ °Ë»öÀÌ Áö¿¬µÇ°í ÀÖ½À´Ï´Ù \r\nÀá½ÃÈÄ¿¡ ´Ù½Ã ÀÌ¿ëÇØÁֽñ⠹ٶø´Ï´Ù. \r\n'); return false; }else if(res=='ok'){ makeForm('/main/storage.php', '', 'search¡ë'+f.q_search.value+'^search_keyword¡ëtitle^search_type=all'); }else{ frmSearch('doc=nosearch&search_type=all&search='+f.q_search.value+'&stype=ETC'); return false; } } function _resizeTo(w,h){ var w=parseInt(w);var h=parseInt(h); if(navigator.appName.indexOf("Microsoft") > -1){ if(navigator.appVersion.indexOf("MSIE 7") > -1){ resizeTo(w,h+23); }else{ resizeTo(w,h); } } } function frmSearch(param){ var targetUrl = '/main/storage.php'; var param_replace = param.replace(/=/g,'¡ë'); var param_replace = param_replace.replace(/&/g,'^'); makeForm(targetUrl, '_self', param_replace); } function BGcontrols(obj,obx){ var bgData =''; for(xi=0;xi/g,""); InStr = InStr.replace(/\"/g,""); InStr = InStr.replace(/\'/g,""); InStr = InStr.replace(/\%/g,""); InStr = InStr.replace(/\;/g,""); InStr = InStr.replace(/\(/g,""); InStr = InStr.replace(/\)/g,""); InStr = InStr.replace(/\&/g,""); InStr = InStr.replace(/\+/g,""); return InStr; } function WLKToServer(arg1,arg2){ /*iframe,form Çʼö*/ if(arg1 == null || arg2 == null){ return;} var params = ''; document.sndfrm.dk.value = trim(arg2); document.sndfrm.action = trim(arg1); var params = "dk="+encodeURIComponent(arg2); new ajax.xhr.Request("/main/module/sendData.php",params,WLKFromServer, "POST"); } function WLKFromServer(req){ if(req.readyState == 4){ if(req.status == 200){ var str = req.responseText; if(str == 9){ alert("ActiveX¸¦ ½ÇÇà½Ãų¼ö ¾ø½À´Ï´Ù."); } else if(str == 7){ document.sndfrm.dk.value = ""; document.sndfrm.vo.value = ""; document.sndfrm.target="glink"; document.sndfrm.submit(); }else{ document.sndfrm.dk.value = ""; document.sndfrm.vo.value = trim(str); document.sndfrm.target="glink"; document.sndfrm.submit(); } } } }