document.write(""); document.write(""); var _USE_; //ƯÁ¤ ½ºÅ©¸³Æ®¸¦ ±¸ºÐÇؼ­ ¾´´Ù //ºê¶ó¿ìÀú¸¦ È®ÀÎ var n4 = (document.layers)?true:false; var e4 = (document.all)?true:false; ////////////////////////////////////////////////// if (location.hostname != "write.mfile.co.kr") { var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37358983-2']); _gaq.push(['_setDomainName', window.location.hostname.replace(/([a-zA-Z0-9]+.)/,"")]); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); } //----------------------------------------------------------------------------// // ±ÝÄ¢¾î üũ var noUsingStr = new Array('»õ³¢','°³»õ³¢','¼Ò»õ³¢','º´½Å','Áö¶ö','¾¾ÆÈ','½ÊÆÈ','´Ï±â¹Ì','Âî¶ö','Áö¶ö','½Ö³â','½Ö³ð','ºù½Å','Á¿±î','´Ï±â¹Ì','Á¿°°Àº°Ô','Àâ³ð','º­¾û½Å','¹Ùº¸»õ³¢','¾Ã»õ³¢','¾¾¹ß','¾¾¹Ù','¾¾ÆÈ','½Ã¹ú','¾¾¹ú','¶°±×¶ö','Á¿¹ä','½¦ÀÌ','µî½Å','½Î°¡Áö','¹ÌÄ£³ð','¹ÌÄ£³Ñ','Âî¶ö','Á×½À´Ï´Ù','¾¾¹ë³Ñ','»ç±â','³ë¸ð','¾ßµ¿','°­°£','filenori','ÆÄÀϳ븮','ÆÄÀÏ ³ë¸®','mypot','¸¶ÀÌÆÌ','bigfile'); function basicFuncBanString(obj){ for(var i=0;i < noUsingStr.length;i++){ if(obj.value.indexOf(noUsingStr[i])!=-1){ alert('µî·Ï¿¡ Á¦ÇÑµÈ ´Ü¾î°¡ Æ÷ÇÔ µÇ¾î ÀÖ½À´Ï´Ù.'); //obj.focus(); return false; } } return true; } //----------------------------------------------------------------------------// 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; //document.ondragstart = returnEventFalse; //document.onselectstart = returnEventFalse; } //document.domain = "_CHILD_DOMAIN"; /* function keyDown(){ var keyValue = event.keyCode; var notKey = new Array('18','122','17'); //alt , F11 Ctrl if(keyValue=='17'){ alert('CtrlÅ°´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. '); return false; } if(in_array(keyValue,notKey)){ event.keyCode = ""; return false; } return true; } document.onkeydown= keyDown; */ function $(getid){ return document.getElementById(getid); } //¹è¿­¿¡ °ªÀÌ ÀÖ´ÂÁö °Ë»ç function in_array(Val,Arr){ for(var i=0;i<"; html += "/body><"; html += "/html>"; imgWin.document.write(html); imgWin.document.close(); } //¼ýÀÚ¸¸ function isNum(e){ var event = window.event || 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 onlyNumber(){ ¡¡¡¡if((event.keyCode<48)||(event.keyCode>57)) event.returnValue=false; } //·Î±äÆûüũ ÃÖÁ¾º»ÀÌ´Ù ¿©±â·Î ¿À°Ô µÇ ÀÖ´Ù. µ¿ÀÇ ¶§¹®¿¡ function frmCheckCom(){ var frm = document.loginFrm; if(!frm.mb_id.value){ alert('¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_id.focus(); return false; } if(!frm.mb_pw.value){ alert('ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_pw.focus(); return false; } if(frm.secure.value =="Y"){ //ajaSubmit(); document.loginFrm.submit(); } else{ //ajaSubmit(); document.loginFrm.submit(); } } function chkType(input,type){ switch (type){ case 0://¼ýÀÚ¸¸ var filter = /^[1-9][0-9]+$/; break; case 1://¿µ¹®,¼ýÀÚ¸¸ var filter = /^[0-9a-zA-Z]+$/; break; case 2://¿µ¹®,¼ýÀÚ¸¸(ùÀÚ´Â ¿µ¹®) var filter = /^[a-zA-Z][0-9a-zA-Z]+$/; break; case 3://¿µ¹®,¼ýÀÚ,_ var filter = /^\w+$/; break; case 4://¿µ¹®¸¸ var filter = /^[a-zA-Z]+$/; break; case 5://¼ýÀÚ¸¸ + - var filter = /^[1-9][0-9]+$/; break; case 6://¼Ò-¿µ¹®¸¸ var filter = /^[a-z]+$/; break; case 7://¼Ò-¿µ¹®,¼ýÀÚ¸¸ var filter = /^[0-9a-z]+$/; break; case 8://¸ÞÀÏ var filter =/^[a-zA-Z0-9\-\.\_]+\@[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4})$/; break; case 9://ÇѱۼýÀÚ¿µ¹® //var filter = /^[a-zA-Z0-9¤¡-ÆR ]+$/; var filter = /^[0-9|a-z|¤¡-¤¾|¤¿-¤Ó|°¡-Èþ]+$/; break; case 10://Null(»ç¿ë±ÝÁö) var filter =/^[a-zA-Z0-9\-\.\_]+\@[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4})$/; break; } if(!filter.test(input.value)) { var result='resultFalse'; input.value=''; return result; } else{ return true; } } //·Î±äÆûüũ function frmCheck(){ var frm = document.loginFrm; var beforeid = frm.mb_id.value; if(!frm.mb_id.value){ alert('¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_id.focus(); return false; } if(!frm.mb_pw.value){ alert('ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_pw.focus(); return false; } if (frm.mb_id.value.indexOf(" ") >=0) { alert('¾ÆÀ̵𿡠°ø¹éÀÌ µé¾î°¡ ÀÖ½À´Ï´Ù. \n'); frm.mb_id.focus(); return false; } var valId = frm.mb_id.value; var valPw = escape(frm.mb_pw.value); var sSiteNameLogin2 = frm.sSiteNameLogin.value; if(frm.log_save.checked==true){ var log_save = frm.log_save.value; } else{ var log_save = ''; } // ´Ù¸¥ °÷À¸·Î µé¾î °¡±â À§Çؼ­´Â µ¿ÀÇ ·¹ÀÌ¾î ¶ç¿ì±â //sendRequest(loginprocess,'&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+ sSiteNameLogin2,'POST','/models/common/main/login/checkagree.php',true,true); //return ; if(frm.secure.value =="Y"){ document.loginFrm.action = document.loginFrm.httpsurl.value; document.loginFrm.submit(); } else{ document.loginFrm.action = document.loginFrm.httpurl.value; document.loginFrm.submit(); } } function frmCheck2(){ var frm = document.loginFrm; var beforeid = frm.mb_id.value; if(!frm.mb_id.value){ alert('¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_id.focus(); return ; } if(!frm.mb_pw.value){ alert('ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_pw.focus(); return; } if (frm.mb_id.value.indexOf(" ") >=0) { alert('¾ÆÀ̵𿡠°ø¹éÀÌ µé¾î°¡ ÀÖ½À´Ï´Ù. \n'); frm.mb_id.focus(); return; } var valId = frm.mb_id.value; var valPw = escape(frm.mb_pw.value); var sSiteNameLogin2 = frm.sSiteNameLogin.value; if(frm.log_save.checked==true){ var log_save = frm.log_save.value; } else{ var log_save = ''; } // ´Ù¸¥ °÷À¸·Î µé¾î °¡±â À§Çؼ­´Â µ¿ÀÇ ·¹ÀÌ¾î ¶ç¿ì±â //sendRequest(loginprocess,'&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+ sSiteNameLogin2,'POST','/models/common/main/login/checkagree.php',true,true); //return ; if(frm.secure.value =="Y"){ document.loginFrm.action = document.loginFrm.httpsurl.value; document.loginFrm.submit(); } else{ document.loginFrm.action = document.loginFrm.httpurl.value; document.loginFrm.submit(); } } function loginprocess(oj) { var frm = document.loginFrm; var res = decodeURIComponent(oj.responseText); var beforeid = frm.mb_id.value; var split_res = res.split('|'); if (split_res[0] == '-2') { alert('Á¸ÀçÇÏÁö ¾Ê´Â ¾ÆÀ̵ð ÀÔ´Ï´Ù. \n'); frm.mb_id.value=""; frm.mb_pw.value=""; frm.mb_id.focus(); return ; } if (split_res[0] == '-3') { alert('ºñ¹Ð¹øÈ£°¡ À߸ø µÇ¾ú½À´Ï´Ù. \n'); frm.mb_pw.value=""; frm.mb_pw.focus(); return ; } if (split_res[0] == '0') { //µ¿ÀÇ °úÁ¤ ¾øÀÌ ¹Ù·Î ·Î±×ÀÎ µÇ°Ô ó¸® ÇÑ´Ù. var frm = document.loginFrm; if(!frm.mb_id.value){ alert('¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_id.focus(); return false; } if(!frm.mb_pw.value){ alert('ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_pw.focus(); return false; } if(frm.secure.value =="Y"){ document.loginFrm.action = document.loginFrm.httpsurl.value; document.loginFrm.submit(); } else{ document.loginFrm.action = document.loginFrm.httpurl.value; document.loginFrm.submit(); } } if (split_res[0] == '-1') { var valId = frm.mb_id.value; var valPw = split_res[1]; //¾Ïȣȭ ¶§¹®¿¡ var sSiteNameLogin2 = frm.sSiteNameLogin.value; if(frm.log_save.checked==true){ var log_save = frm.log_save.value; } else{ var log_save = ''; } // ´Ù¸¥ °÷À¸·Î µé¾î °¡±â À§Çؼ­´Â µ¿ÀÇ ·¹ÀÌ¾î ¶ç¿ì±â location.href='/page_login.php?doc=checkagreeform&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+ sSiteNameLogin2; return ; // document.getElementById('div_agreecheck').innerHTML = ac_html; } } function frmCheckCom_pre() { var frm = document.ac_yak; //if(frm.ac_yak_check.checked) { document.getElementById('div_agreecheck').style.display = 'none'; document.loginFrm.tongagree.value = "1"; frmCheckCom(); //} //else { // alert('µ¿ÀÇ ÇÏ¼Å¾ß ÀÌ¿ë °¡´É ÇÕ´Ï´Ù.'); //} } // ÄíÅ° ¾Ïȣȭ¿¡ µû¸¥ ¾ÆÀ̵ð üũ 󸮸¦ ¾î¶»°Ô???. ¾Æ·¡ ÁÖ¼® Á¦°ÅÇؾßÇÔ. function onloadMenuDisplay(){ if(GetCookie('sUserInfo')){ document.getElementById('purchase_list').style.display='block'; document.getElementById('scraplist_list').style.display='block'; document.getElementById('rst_list').style.display='block'; if(GetCookie('grade')) document.getElementById('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; sendRequest(idCheckL,'&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save,'POST','./module/loginPrc.php',true,true); } //·Î±×ÀÎ °á°úó¸® function idCheckL(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; frm.mb_id.value=""; frm.mb_id.focus(); frm.mb_pw.value=""; break; case 'nopass' : var text = 'Æнº¿öµå°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.'; alert(text); frm.mb_id.disabled=false; frm.mb_pw.disabled=false; frm.mb_pw.focus(); frm.mb_pw.value=""; break; case 'limit_site' : if(split_res[1]!=0 && split_res[2]!=0){ var text = 'ȸ¿ø´ÔÀº Á¦Àç·Î ÀÎÇØ ¾Æ·¡±â°£µ¿¾ÈÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. \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 'logok' : //alert(split_res[2]); if (split_res[2] == "Y") { //alert('Áö±Ý °áÁ¦ÇϽøé Æ÷ÀÎÆ®°¡ 3¹è, ÃÖ´ë 99,000P Áö±ÞµË´Ï´Ù'); //location.href='/main/charge.php?doc=point2'; } sendRequest(resultValue,'','get','./module/login_ok.php',true,true); if(location.href.indexOf('storage.php')!=-1) onloadMenuDisplay(); //¿¥ÆÄÀÏ ¸Þ´ºÀ϶§ if(location.href.indexOf('bbs.php')!=-1) location.reload(); //°Ô½ÃÆÇÀ϶§ ¸®ÇÁ·¹½¬ if(document.getElementById('bn_main')){ //showBanner(document.getElementById('bn_main')); } if (split_res[3] != "") { if(confirm(split_res[3] + '°¡ ÀÚµ¿°áÁ¦ µÇ¾ú½À´Ï´Ù. ¸¶ÀÌÆäÀÌÁö > °áÁ¦³»¿ª¿¡¼­ È®ÀÎ °¡´ÉÇÕ´Ï´Ù')){ sendRequest(autoAlertPrc,'&an=' + split_res[3] + '&ai=' + split_res[4],'post','./module/autoAlertPrc.php',true,true); } } if(GetCookie('_mem_cashbonus') != split_res[5]){ sendRequest(resultDropCashBonus,'&userid='+split_res[5]+'&nickname='+split_res[1],'post','./module/dropCashBonus.php',true,true); } break; } } function numchk1(num){ var sign=""; if(isNaN(num)) { alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù"); return 0; } if(num==0){ return num; } if(num<0){ num=num*(-1); sign="-"; } else num=num*1; num = new String(num) var temp=""; var pos=3; num_len=num.length; while (num_len>0){ num_len=num_len-pos; if(num_len<0) { pos=num_len+pos; num_len=0; } temp=","+num.substr(num_len,pos)+temp; } return sign+temp.substr(1); } function resultDropCashBonus(oj){ var res = decodeURIComponent(oj.responseText); var split_res = res.split('|'); if(split_res[0] == '_alert') { if(confirm(split_res[2] + '´ÔÀÌ 6¿ù 1ÀÏ ±âÁØÀ¸·Î\n\n\rº¸À¯ÇÏ°í °è½Å '+ numchk1(split_res[1]) +' º¸³Ê½º Æ÷ÀÎÆ®´Â\n\n\r»ç¿ë ¸¸·á±â°£ÀÌ 6¿ù 30ÀÏ ±îÁöÀÔ´Ï´Ù.\n\n\r6¿ù 30ÀÏ ±îÁö »ç¿ëµÇÁö ¾ÊÀº º¸³Ê½º Æ÷ÀÎÆ®´Â\n\n\rÀÚµ¿ ¼ÒÁø µÇ¿À´Ï ÀÌ¿ë¿¡ Âø¿À ¾øÀ¸½Ã±â ¹Ù¶ø´Ï´Ù.')) { // ÀÏÁÖÀÏ ´ÜÀ§·Î º¸¿© Áø´Ù. setCookie( '_mem_cashbonus', split_res[3], 7); self.location.href="./memo.php"; } } } function autoAlertPrc(oj){ var res = decodeURIComponent(oj.responseText); } function idCheck2(str){ var frm = document.loginFrm; var res = str; 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 = 'ȸ¿ø´ÔÀº Á¦Àç·Î ÀÎÇØ ¾Æ·¡±â°£µ¿¾È ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. \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 'logok' : alert('1'); sendRequest(resultValue,'','get','./module/login_ok.php',true,true); if(location.href.indexOf('storage.php')!=-1) onloadMenuDisplay(); //¿¥ÆÄÀÏ ¸Þ´ºÀ϶§ if(location.href.indexOf('bbs.php')!=-1) location.reload(); //°Ô½ÃÆÇÀ϶§ ¸®ÇÁ·¹½¬ if(document.getElementById('bn_main')){ //showBanner(document.getElementById('bn_main')); } break; } } //°á°ú »Ñ·ÁÁÖ±â function resultValue(oj){ var res = decodeURIComponent(oj.responseText); document.getElementById('loginBox').innerHTML = res; } //¿£Åͼ­ºê¹Ô function onkeyUpFunc(){ var keyValue = event.keyCode; if ( keyValue==13 ) { frmCheck(); }else{ return; } } function onkeyUpChk(funct){ var keyValue = event.keyCode; if ( keyValue==13 ) { var funcObj = eval(funct); funcObj(); return false; } else{ return; } } //2011.12.06 #À¥Ç¥ÁØÈ­ function onkeyUpChk_new(funct,e){ var event = window.event || e; var keyValue = event.keyCode; if ( keyValue==13 ) { var funcObj = eval(funct); funcObj(); return false; } else{ return; } } // ¼öÁ¤ÇÔ. 2009.11.02 function searchFrmChk(){ var frm = document.searchFrm; var searchString = frm.search.value; var searchdetail = document.getElementById('detail_chk'); // ¾ÕÀÚ¸® ¶ç¾î¾²±â°¡ Àִ°æ¿ì Á¦°Å if(searchString.substr(0,1).indexOf(' ')!=-1){ searchString = searchString.replace(/^\s+/, ""); // ltrim() frm.search.value = searchString; } if(frm.search_type.value==''){ alert('°Ë»öºÐ·ù¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä. '); frm.search_type.focus(); return false; } if(searchString.length < 1){ var b_keyword = frm.banner_keyword.value; if(b_keyword.length<1){ alert('°Ë»ö¾î´Â ÇÑÀÚ ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. '); frm.search.value=''; frm.search.focus(); return false; } else{ frm.search_type.value='all'; frm.search.style.backgroundImage=''; frm.search.value=b_keyword; searchString = b_keyword; } } var special_pattern =/[`~!@\#$%<>{}\[\]^&?*\()\-=+_\'\"\,\.\/\;\:\\|]/gi; if( special_pattern.test(searchString) == true ){ alert('Ư¼ö¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.'); return false; } if(searchString == "¾ßµ¿"){ alert('ÇØ´ç ´Ü¾î´Â °Ë»öÀÌ ±ÝÁöµÈ ´Ü¾îÀÔ´Ï´Ù.'); //frm.search.focus(); return false; } if(frm.search_type.value =='ADT' && GetCookie('adult')!='1' ){ alert('¼ºÀιÌÀÎÁõ ½Ã ¼ºÀÎÄ«Å×°í¸®¸¦ °Ë»ö ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.'); return false; } if(searchdetail){ searchdetail.value=''; } if(frm.search_type.value != 'OPN'){ //ÀÚµ¿°Ë»ö frm.auto_search_check.value = 'Y'; } //À½¾ÇÀº mcp·Î Àü¼Û if(frm.search_type.value){ if(frm.auto_search_title){ if( frm.auto_search_title.value == frm.search.value ){ var kimage = new Image(); kimage.src = "/index.php?act=auto_search_click&idx="+frm.auto_search_idx.value; //alert("/index.php?act=auto_search_click&idx="+frm.auto_search_idx.value); } //return false; } if(frm.search_code_type != undefined && frm.search_code_type.value =='hot'){ //frm.search.value += " "; frm.act.value = "hot"; frm.submit(); } else if( frm.search_type.value =='DMB' ){ //frm.act.value = "cast"; frm.submit(); } else{ if(frm.spcpass.value != 'already_submit'){ frm.spcpass.value = 'already_submit'; // submit event µÎ¹ø ¹ß»ý ¹æÁö. spcpass´Â »ç¿ëÇÏÁö ¾Ê´Â°Å °°¾Æ¼­ »ç¿ëÇÔ. /* AND OR ¿É¼ÇÀ¸·Î °Ë»ö½Ã ¶ç¾î¾²±â¸¦ Á¦°ÅÇÏÁö ¾Ê°í ¿É¼Ç°ª°ú °°ÀÌ º¸³½´Ù */ var code_cate = frm.search_type.value; var code_type = frm.search_keyword.value; var searchoption = ""; if(frm.searchoption) searchoption = frm.searchoption.value; sendRequest(returnSearchFrmChk,'&act=ok&type=0&str='+searchString+'&code_cate='+code_cate+'&code_type='+code_type + '&searchoption='+ searchoption,'POST','/models/common/main/module/check_search.php',true,true); return false; } else{ return false; } } } else{ if(frm.search_keyword.value =='nickname2'){ frm.searchKey.value=1; } else { frm.searchKey.value=2; } frm.searchValue.value= frm.search.value; frm.act.value = "mcp"; frm.submit(); } } // ¼öÁ¤ÇÔ. 2009.11.02 function returnSearchFrmChk(oj) { var res = decodeURIComponent(oj.responseText); var frm = document.searchFrm; if( frm.spcpass ) { frm.spcpass.value = ''; } if(res == 'msstop'){ if(GetCookie('_nSiteIdx')==1){ frm.spcpass.value = ''; openWin('/popup.php?doc=msp1', 'adultCheck', '470','270', 'no'); } return false; } else if (res=='msok'){ if(GetCookie('_nSiteIdx')==1){ frm.spcpass.value = ''; openWin('/popup.php?doc=msp2', 'adultCheck', '470','250', 'no'); } return false; //frm.submit(); } else if(res=='maxprc'){ alert('ÇöÀç »ç¿ëÀÚ°¡ ¸¹¾Æ °Ë»öÀÌ Áö¿¬µÇ°í ÀÖ½À´Ï´Ù \r\nÀá½ÃÈÄ¿¡ ´Ù½Ã ÀÌ¿ëÇØÁֽñ⠹ٶø´Ï´Ù. \r\n'); return false; } else if(res=='spcpass'){ //alert('ÇöÀç Ç®·È½À´Ï´Ù. \r\nÀá½ÃÈÄ¿¡ ´Ù½Ã ÀÌ¿ëÇØÁֽñ⠹ٶø´Ï´Ù. °¡Â¥ ¾Ë·µÀÔ´Ï´Ù. \r\n'); frm.spcpass.value = "12"; frm.submit(); return false; } else if(res=='star'){ frmSearch('act=&search_type=&search='+frm.search.value+'&stype=MVO&readsp=star'); } else if(res=='ok'){ frm.submit(); } else if(res=='exception'){ frm.submit(); } else if(res=='not'){ alert('ÇØ´ç °Ë»ö¾î·Î °Ë»öÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. \r\n'); return false; } else{ switch(res) { case 'MVO' : xstr = "'"+frm.search.value+"' °Ë»ö¾î´Â '¿µÈ­ ÀúÀÛ±Ç ¸ñ·Ï µî·Ï'¿¡ ÀÇÇØ °Ë»öÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. \r\n";xnum='MVO';break; case 'DRA' : xstr = "'"+frm.search.value+"' °Ë»ö¾î´Â '¹æ¼Û ÀúÀÛ±Ç ¸ñ·Ï µî·Ï'¿¡ ÀÇÇØ °Ë»öÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. \r\n";xnum='DRA';break case 'MED' : xstr = "'"+frm.search.value+"' °Ë»ö¾î´Â '¹æ¼Û ÀúÀÛ±Ç ¸ñ·Ï µî·Ï'¿¡ ÀÇÇØ °Ë»öÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. \r\n";xnum='MED';break; case 'ANI' : xstr = "'"+frm.search.value+"' °Ë»ö¾î´Â '¾Ö´Ï¸ÞÀÌ¼Ç ÀúÀÛ±Ç ¸ñ·Ï µî·Ï'¿¡ ÀÇÇØ °Ë»öÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. \r\n";xnum='ANI';break; case 'ADT' : xstr = "'"+frm.search.value+"' °Ë»ö¾î´Â 'ºÒ¹ýÀ½¶õ¹°'¿¡ ÀÇÇØ °Ë»öÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. \r\n";xnum='ADT';break; default : xstr = "¼­ºñ½º ÀÌ¿ë¿¡ ºÒÆíÀ» µå·Á Á˼ÛÇÕ´Ï´Ù. \r\n°Ë»öÇϽŠ´Ü¾î´Â ÀúÀÛ±ÇÀÚÀÇ ¿äû¿¡ µû¶ó °Ë»öÀÌ ±ÝÁöµÈ ´Ü¾îÀÔ´Ï´Ù. \r\n";xnum='ETC'; } // alert(xnum); if(frm.nLimit) nLimit=frm.nLimit.value; else nLimit=20; //frmSearch('act=banlist&search_type='+frm.search_type.value+'&search_keyword='+frm.search_keyword.value+'&search='+frm.search.value+'&bancate='+xnum+'&searchoption='+frm.searchoption.value); //frmSearch('act=banlist&search_type='+frm.search_type.value+'&search_keyword='+frm.search_keyword.value+'&search='+frm.search.value+'&nLimit='+nLimit+'&bancate='+xnum); frmSearch('act=banlist&search_type='+frm.search_type.value+'&search_keyword='+frm.search_keyword.value+'&auto_search_check='+frm.auto_search_check.value+'&auto_search_keyword='+frm.auto_search_keyword.value+'&auto_search_word='+frm.auto_search_word.value+'&search='+frm.search.value+'&nLimit='+nLimit+'&bancate='+xnum+'&searchoption='+frm.searchoption.value); //frmSearch('act=banlist&search_type='+frm.search_type.value+'&search_keyword='+frm.search_keyword.value+'&search='+frm.search.value+'&nLimit='+nLimit+'&bancate='+xnum); // //frmSearch('act=banlist&search_type='+frm.search_type.value+'&search_keyword='+frm.search_keyword.value+'&auto_search_check='+frm.auto_search_check.value+'&auto_search_keyword='+frm.auto_search_keyword.value+'&//auto_search_word='+frm.auto_search_word.value+'&search='+frm.search.value+'&nLimit='+nLimit+'&bancate='+xnum+'&searchoption='+frm.searchoption.value); return false; } } function searchFrmChk_ReSearch(){ var frm = document.searchFrm; var searchString = frm.search.value; var search_type = frm.search_type.value; var realStr = searchString.replace(/\s/gi, ""); if(document.getElementById("reSearch_keyword2")){ searchFrm.reSearch_keyword.value = document.getElementById("reSearch_keyword2").value; var pattern = /([^°¡-ÆR\x20^a-z^A-Z^0-9])/i; if (pattern.test(searchFrm.reSearch_keyword.value)) { alert("ÇѱÛÀÌ ¾Æ´Õ´Ï´Ù. (ÀÚÀ½, ¸ðÀ½¸¸ ÀÖ´Â ÇѱÛÀº ó¸®ÇÏÁö ¾Ê½À´Ï´Ù.)"); return false; } searchFrmChk(); } } // ¼öÁ¤ÇÔ. ¼ºÀÎ+ °Ë»ö function searchadultFrmChk(){ var frm = document.searchFrm; var searchString = frm.search.value; // ¾ÕÀÚ¸® ¶ç¾î¾²±â°¡ Àִ°æ¿ì Á¦°Å if(searchString.substr(0,1).indexOf(' ')!=-1){ searchString = searchString.replace(/^\s+/, ""); // ltrim() frm.search.value = searchString; } if(searchString.length < 1){ var b_keyword = frm.banner_keyword.value; if(b_keyword.length<1){ alert('°Ë»ö¾î´Â ÇÑÀÚ ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. '); frm.search.value=''; frm.search.focus(); return false; } else{ frm.search_type.value='all'; frm.search.style.backgroundImage=''; frm.search.value=b_keyword; searchString = b_keyword; } } if(searchString == "¾ßµ¿"){ alert('ÇØ´ç ´Ü¾î´Â °Ë»öÀÌ ±ÝÁöµÈ ´Ü¾îÀÔ´Ï´Ù.'); //frm.search.focus(); return false; } frm.act.value = "adultplus"; frm.submit(); } // Á¤¾×Á¦ Àü¿ë °Ë»ö üũ¹Ú½º À̹ÌÁö º¯°æ. üũ¹Ú½º ¼±Åÿ¡ µû¸¥ ÄíÅ° ¼ÂÆÃ. 2010.05.07 added by oasis function basicImgChangeRation(){ var frm = document.storage_frm; if(frm.exclusive_ration.value=='ok'){ setCookie('_exclusive_ration', '', 0); frm.exclusive_ration.value = ''; } else{ setCookie('_exclusive_ration', 'ok', 0); frm.exclusive_ration.value = 'ok'; } frm.nPage.value=''; 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 Round_new(Num, Position , Base) { if(Position == 0) return Math.pow(10 , Base ); 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://mfile.co.kr'; return; } } else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä! '); } } //·Î±×ÀΠüũ À̵¿ Ÿ°ÙÀû¿ë function a_href_target(url,target){ if(GetCookie('sUserInfo')){ var nowTimestamp = getTimestamp(); var minimumTime = "1714131882"; var maximumTime = "1714304682"; if(nowTimestamp > minimumTime && nowTimestamp < maximumTime){ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; targeting.focus(); } else{ alert('"»ç¿ëÇϽô ÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾Ê½À´Ï´Ù." \r\n\r\nÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾ÊÀ» °æ¿ì »çÀÌÆ® ÀÌ¿ë¿¡ \r\nºÒÆíÇÔÀÌ ÀÖÀ» ¼ö ÀÖÀ¸¹Ç·Î ¿À¸¥ÂÊ ÇÏ´ÜÀÇ ½Ã°è¸¦ \r\n´õºíŬ¸¯ÇÏ¿© Á¤È®ÇÑ ³¯Â¥¿Í ½Ã°£À» ¸ÂÃß¾îÁֽñ⠹ٶø´Ï´Ù. '); location.href='http://mfile.co.kr'; return; } } else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä! '); } } function a_href_19(url,target){ if(GetCookie('sUserInfo')){ if(GetCookie('adult')!='1'){ //alert('¼ºÀÎÀÎÁõ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. 11'); //openWin('pop_adult.php', 'adultCheck', '330','230', 'no'); location.href = '/doc.php?doc=pgadult'; url = 'pop_adult.php'; openLayer(url) } else{ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; } } else{ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. 1'); //openWin('popup.php?doc=popup_login&popup=normal&refurlok='+url, 'poploginCheck', '330','230','no'); openloginpopup('normal',url); } } function a_href_19_new2(url,target){ if(GetCookie('sUserInfo')){ /*if(GetCookie('adult')!='1'){ alert('¼ºÀÎÀÎÁõ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); location.href = '/doc.php?doc=pgadult'; //openLayer(url) } else*/{ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; } } else{ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. 1'); //openWin('popup.php?doc=popup_login&popup=normal&refurlok='+url, 'poploginCheck', '330','230','no'); openloginpopup('normal',url); } } function popup(url,target,flag) { var objPopup = window.open(url,target,flag); if (objPopup == null) { alert("Æ˾÷Â÷´ÜÀ» ÇØÁ¦ÇØ ÁÖ¼Å¾ß Á¤»óÀûÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.\nÈ®ÀιöÆ°À» Ŭ¸¯ÇϽøé Æ˾÷Â÷´Ü ÇØÁ¦¸¦ µµ¿ï ¼ö ÀÖ´Â ÆäÀÌÁö·Î À̵¿ÇÕ´Ï´Ù."); document.location.href = "http://aauth.thinkcall.net/helpPopBlocker/helpPopup.html" return false; } objPopup.focus(); } function a_href_19_chk(url,target){ if(GetCookie('sUserInfo')){ if(GetCookie('adult')!='1'){ document.location.href="/doc.php?doc=pgadult"; } else{ //½ÌÅ©ÄÝ »ç¿ë½Ã ÁÖ¼® ÇØÁ¦ //if(GetCookie('login_adult_chk') == '1'){ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; //} else { // popup('/doc.php?doc=tc_step1' , 'tc' , 'width=400, height=200, scrollbars=no' ); //} } } else{ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. 1'); //openWin('popup.php?doc=popup_login&popup=normal&refurlok='+url, 'poploginCheck', '330','230','no'); openloginpopup('normal',url.replace("ADT","MVO")); } } //·Î±×ÀΠüũ Æ˾÷À̳ª ÆäÀÌÁö·Î±×ÀÎÀ¸·Î À̵¿ function a_href_popup(url){ if(GetCookie('sUserInfo')){ var nowTimestamp = getTimestamp(); var minimumTime = "1714131882"; var maximumTime = "1714304682"; if(nowTimestamp > minimumTime && nowTimestamp < maximumTime){ self.location.href=url; } else{ alert('"»ç¿ëÇϽô ÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾Ê½À´Ï´Ù." \r\n\r\nÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾ÊÀ» °æ¿ì »çÀÌÆ® ÀÌ¿ë¿¡ \r\nºÒÆíÇÔÀÌ ÀÖÀ» ¼ö ÀÖÀ¸¹Ç·Î ¿À¸¥ÂÊ ÇÏ´ÜÀÇ ½Ã°è¸¦ \r\n´õºíŬ¸¯ÇÏ¿© Á¤È®ÇÑ ³¯Â¥¿Í ½Ã°£À» ¸ÂÃß¾îÁֽñ⠹ٶø´Ï´Ù. '); location.href='http://mfile.co.kr'; return; } } else{ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä! '); //openWin('/main/popup/popup_login.php', 'poploginCheck', '330','230', 'no');//Æ˾÷À¸·Î °¥¶§ ó¸® //self.location.href='/main/popup/page_login.php?refurl_val=%2Fscripts%2Fcommon%2Fbasic.php%3F'; //php·Î ¼³Á¤ url = url.replace("./","/main/"); self.location.href='page_login.php?refurl_val='+ url ; //½ºÅ©¸³Æ®·Î ¼³Á¤ // QUERY_STRING REQUEST_URI] } } function a_href_popup_difer(url){ if(GetCookie('sUserInfo')){ var nowTimestamp = getTimestamp(); var minimumTime = "1714131882"; var maximumTime = "1714304682"; if(nowTimestamp > minimumTime && nowTimestamp < maximumTime){ self.location.href=url; } else{ alert('"»ç¿ëÇϽô ÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾Ê½À´Ï´Ù." \r\n\r\nÄÄÇ»ÅÍÀÇ ½Ã°£ÀÌ ¸ÂÁö ¾ÊÀ» °æ¿ì »çÀÌÆ® ÀÌ¿ë¿¡ \r\nºÒÆíÇÔÀÌ ÀÖÀ» ¼ö ÀÖÀ¸¹Ç·Î ¿À¸¥ÂÊ ÇÏ´ÜÀÇ ½Ã°è¸¦ \r\n´õºíŬ¸¯ÇÏ¿© Á¤È®ÇÑ ³¯Â¥¿Í ½Ã°£À» ¸ÂÃß¾îÁֽñ⠹ٶø´Ï´Ù. '); location.href='http://mfile.co.kr'; return; } } else{ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä! '); refok = ""; openloginpopup('normal',refok); } } function openloginpopup(popuptype,refurlok){ var url; if (refurlok == undefined || refurlok == '') { refurlok = ''; refurlok = ""; } //url = '/popup.php?doc=popup_login&popup='+ popuptype +'&refurlok='+ refurlok; //params = 'doc=popup_login&popup='+ popuptype +'&refurlok='+ refurlok; //openLayer(url, popuptype) //À¥Ç¥ÁØÈ­ ÀÛ¾÷ var renew = ''; if(document.getElementById('renew')){ renew = document.getElementById('renew').value; } else if(document.loginFrm && document.loginFrm.renew){ renew = document.loginFrm.renew.value; } if(parent.document){ if(parent.document.getElementById('renew')){ renew = parent.document.getElementById('renew').value; } } js_httpSend('/popup.php?doc=popup_login&popup='+ popuptype +'&refurlok='+ refurlok+'&renew='+renew,"",js_confirmok); } var REQ = false; function js_httpSend(v_url,v_val,v_action){ if (window.XMLHttpRequest) { REQ = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { REQ = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e1) { try { REQ = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) {} } } REQ.onreadystatechange = v_action; REQ.open("GET",v_url,true); REQ.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;"); REQ.send(v_val); } function js_confirmok(){ if (REQ.readyState == 4 && REQ.status == 200) { var memo = REQ.responseText; TmpContent = memo.split(">>"); var poptype = TmpContent[0]; var content = TmpContent[1]; openLayer('', poptype, content) if (poptype != 'mfilebbscmt') { idfocusing(); } } else if (REQ.readyState == 4 && REQ.status != 200) { clearInterval(tid); var tid = setTimeout(openloginpopup,80); } } /* //¼ºÀÎÀÎÁõ°ú ·Î±×ÀÎ ·¹ÀÌ¾î °øÅë¿ë function openLayer(url, poptype, contents){ var url, contents; if(poptype == "mfilebbscmt"){ var Dwidth = parseInt(parent.document.body.scrollWidth); var Dheight = parseInt(parent.document.body.scrollHeight); } else{ var Dwidth = parseInt(document.body.scrollWidth); var Dheight = parseInt(document.body.scrollHeight); } //contents = (contents) ? contents : ""; try{ top.document.getElementById("div_mainLayer").style.width = Dwidth; top.document.getElementById("div_mainLayer").style.height = Dheight; top.document.getElementById('div_loginLayer').innerHTML =contents; top.document.getElementById('div_loginLayer').style.display = "block"; top.document.getElementById('div_mainLayer').style.display = "block"; top.window.scrollTo(0,0); } catch(e) { try { parent.document.getElementById("div_mainLayer").style.width = Dwidth; parent.document.getElementById("div_mainLayer").style.height = Dheight; parent.document.getElementById('div_loginLayer').innerHTML = contents; parent.document.getElementById('div_loginLayer').style.display = "block"; parent.document.getElementById('div_mainLayer').style.display = "block"; parent.window.scrollTo(0,0); } catch(e) { try { document.getElementById("div_mainLayer").style.width = Dwidth; document.getElementById("div_mainLayer").style.height = Dheight; document.getElementById('div_loginLayer').innerHTML = contents; document.getElementById('div_loginLayer').style.display = "block"; document.getElementById('div_mainLayer').style.display = "block"; window.scrollTo(0,0); } catch(e) { alert('»õ·Î°íħÀ» ÇϽŠÈÄ ÀÌ¿ëÇÏ¿©ÁÖ¼¼¿ä.'); } } } } */ //¼ºÀÎÀÎÁõ°ú ·Î±×ÀÎ ·¹ÀÌ¾î °øÅë¿ë function openLayer(url, poptype, contents){ var url, contents; if (poptype == "mfilebbscmt") { //var Dwidth = parseInt(parent.document.body.scrollWidth); //var Dheight = parseInt(parent.document.body.scrollHeight); var obj = parent.document.getElementById("wrap"); var obj1 = parent.document.getElementById("view"); var old_obj1 = parent.document.getElementById("storageView"); var m_width = 18; if(parent.window.innerWidth){ var Dwidth = parseInt(parent.window.innerWidth-m_width); var Dheight = parseInt(parent.window.innerHeight); if( obj ){ if( obj.offsetWidth+180 > Dwidth ){ var Dwidth = parseInt(obj.offsetWidth+180); } if( obj.offsetHeight > Dheight ){ var Dheight = parseInt(obj.offsetHeight); } } else if( obj1 ){ var sobj = parent.document.getElementById("pop_wrap"); if( obj1.offsetWidth-m_width > Dwidth ){ var Dwidth = parseInt(obj1.offsetWidth); } if( sobj.offsetHeight > Dheight ){ var Dheight = parseInt(sobj.offsetHeight+10); } } else if( old_obj1 ){ if( old_obj1.offsetWidth-m_width > Dwidth ){ var Dwidth = parseInt(old_obj1.offsetWidth); } if( old_obj1.offsetHeight > Dheight ){ var Dheight = parseInt(old_obj1.offsetHeight+10); } } } else{ if(parent.document.documentElement.offsetWidth>document.body.scrollWidth ){ var Dwidth = parseInt(parent.document.documentElement.offsetWidth); } else{ var Dwidth = parseInt(parent.document.body.scrollWidth); } if( obj ){ if( obj.clientWidth+180 > Dwidth ){ var Dwidth = parseInt(obj.clientWidth+180); } } if(parent.document.documentElement.offsetHeight>document.body.scrollHeight ){ var Dheight = parseInt(parent.document.documentElement.offsetHeight); } else{ var Dheight = parseInt(parent.document.body.scrollHeight); } } } else { //var Dwidth = parseInt(document.body.scrollWidth); //var Dheight = parseInt(document.body.scrollHeight); var obj = document.getElementById("wrap"); var obj1 = document.getElementById("view"); var Pobj1 = parent.document.getElementById("view"); var old_obj1 = parent.document.getElementById("storageView"); var old_Pobj1 = parent.document.getElementById("storageView"); var m_width = 18; if(window.innerWidth){ var Dwidth = parseInt(window.innerWidth-m_width); var Dheight = parseInt(window.innerHeight); if( obj ){ if( obj.offsetWidth+180 > Dwidth ){ var Dwidth = parseInt(obj.offsetWidth+180); } if( obj.offsetHeight > Dheight ){ var Dheight = parseInt(obj.offsetHeight); } } else if( obj1 ){ var sobj = document.getElementById("pop_wrap"); if( obj1.offsetWidth-m_width > Dwidth ){ var Dwidth = parseInt(obj1.offsetWidth); } if( sobj.offsetHeight > Dheight ){ var Dheight = parseInt(sobj.offsetHeight+10); } } else if( Pobj1 ){ var Dwidth = parseInt(parent.window.innerWidth-m_width); var Dheight = parseInt(parent.window.innerHeight); var Psobj = parent.document.getElementById("pop_wrap"); if( Pobj1.offsetWidth-m_width > Dwidth ){ var Dwidth = parseInt(Pobj1.offsetWidth); } if( Psobj.offsetHeight > Dheight ){ var Dheight = parseInt(Psobj.offsetHeight+10); } } } else{ if(window.navigator.userAgent.indexOf("MSIE") > -1 ){ if( window.navigator.userAgent.indexOf("7.0") > -1 ){ m_width = 0; } } if(document.documentElement.offsetWidth>document.body.scrollWidth ){ var Dwidth = parseInt(document.documentElement.offsetWidth-m_width); } else{ var Dwidth = parseInt(document.body.scrollWidth-m_width); } if( obj ){ if( obj.clientWidth+180 > Dwidth ){ var Dwidth = parseInt(obj.clientWidth+180); } } if(document.documentElement.offsetHeight>document.body.scrollHeight ){ var Dheight = parseInt(document.documentElement.offsetHeight); } else{ var Dheight = parseInt(document.body.scrollHeight); } if( Pobj1 ){ m_width = 21; if(window.navigator.userAgent.indexOf("MSIE") > -1 ){ if( window.navigator.userAgent.indexOf("7.0") > -1 ){ m_width = 0; } } if(parent.document.documentElement.offsetWidth>parent.document.body.scrollWidth ){ var Dwidth = parseInt(parent.document.documentElement.offsetWidth-m_width); } else{ var Dwidth = parseInt(parent.document.body.scrollWidth-m_width); } if( Pobj1.clientWidth > Dwidth ){ var Dwidth = parseInt(Pobj1.clientWidth); } if(parent.document.documentElement.offsetHeight>document.body.scrollHeight ){ var Dheight = parseInt(parent.document.documentElement.offsetHeight); } else{ var Dheight = parseInt(parent.document.body.scrollHeight); } var Psobj = parent.document.getElementById("pop_wrap"); if( Psobj.offsetHeight > Dheight ){ var Dheight = parseInt(Psobj.offsetHeight+10); } } else if( old_Pobj1 ){ m_width = 21; if(window.navigator.userAgent.indexOf("MSIE") > -1 ){ if( window.navigator.userAgent.indexOf("7.0") > -1 ){ m_width = 0; } } if(parent.document.documentElement.offsetWidth>parent.document.body.scrollWidth ){ var Dwidth = parseInt(parent.document.documentElement.offsetWidth-m_width); } else{ var Dwidth = parseInt(parent.document.body.scrollWidth-m_width); } if( old_Pobj1.clientWidth > Dwidth ){ var Dwidth = parseInt(old_Pobj1.clientWidth); } if(parent.document.documentElement.offsetHeight>document.body.scrollHeight ){ var Dheight = parseInt(parent.document.documentElement.offsetHeight); } else{ var Dheight = parseInt(parent.document.body.scrollHeight); } if( old_Pobj1.offsetHeight > Dheight ){ var Dheight = parseInt(old_Pobj1.offsetHeight+10); } } } } contents = (contents) ? contents : ""; try{ if( obj1 || Pobj1 ){ document.getElementById("iframe_hidden").style.width = Dwidth+"px"; } top.document.getElementById("div_mainLayer").style.width = Dwidth+"px"; top.document.getElementById("div_mainLayer").style.height = Dheight+"px"; top.document.getElementById('div_loginLayer').innerHTML =contents; top.document.getElementById('div_loginLayer').style.display = "block"; top.document.getElementById('div_mainLayer').style.display = "block"; top.window.scrollTo(0,0); } catch(e) { try { parent.document.getElementById("div_mainLayer").style.width = Dwidth+"px"; parent.document.getElementById("div_mainLayer").style.height = Dheight+"px"; parent.document.getElementById('div_loginLayer').innerHTML = contents; parent.document.getElementById('div_loginLayer').style.display = "block"; parent.document.getElementById('div_mainLayer').style.display = "block"; parent.window.scrollTo(0,0); } catch(e) { try { if( obj1 ){ document.getElementById("iframe_hidden").style.width = Dwidth+"px"; } document.getElementById("div_mainLayer").style.width = Dwidth+"px"; document.getElementById("div_mainLayer").style.height = Dheight+"px"; document.getElementById('div_loginLayer').innerHTML = contents; document.getElementById('div_loginLayer').style.display = "block"; document.getElementById('div_mainLayer').style.display = "block"; window.scrollTo(0,0); } catch(e) { alert('»õ·Î°íħÀ» ÇϽŠÈÄ ÀÌ¿ëÇÏ¿©ÁÖ¼¼¿ä.'); } } } } //XP Æ˾÷ »çÀÌÁîÁ¶Àý - phpschool ½Ã´ÏÄÃÇÑü¸®ÇÊÅÍ 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(); } //2011.08.16 #À¥Ç¥ÁØÈ­ function userinfo_new(useridx, full_nick, cut_nick, frmSearch, e){ if(!GetCookie('sUserInfo')){ openloginpopup('normal',''); } else { var memoHtml = ''; var friendHtml = ''; var sHtml = ''; var event = window.event || e; if(full_nick=='¿¥ÆÄÀÏ' || full_nick=='¿î¿µÆÀ'){ return; } if(window.scrollX){ X = event.clientX + window.scrollX; } else{ X = event.clientX + document.documentElement.scrollLeft; } if(window.scrollY){ Y = event.clientY + window.scrollY+5; } else{ Y = event.clientY + document.documentElement.scrollTop+5; } if(window.navigator.userAgent.indexOf("MSIE") > -1 ){ if( window.navigator.userAgent.indexOf("8.0") > -1 || window.navigator.userAgent.indexOf("9.0") > -1 ){ X = X+25; } else{ X = X-35; } } else{ X = X+30; } document.getElementById('nick_info').style.zIndex='102'; document.getElementById('nick_info').style.top=Y+"px"; document.getElementById('nick_info').style.left=X+"px"; document.getElementById('nick_info').style.width='110'+"px"; document.getElementById('nick_info').style.height='110'+"px"; // Æû¼­¹Ô ÇÔ¼ö¸íÀÌ ¾È³Ñ¾î¿À¸é ±âº» frmSearch ·Î ¼ÂÆÃ. if(frmSearch=='') frmSearch = 'frmSearch'; // ·Î±×ÀÎ µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ·Î±×ÀÎ Æ˾÷â ¶ç¿ì±â if(!GetCookie('sUserInfo')){ memoHtml = " onmousedown=\"openloginpopup('normal','');\" "; friendHtml = " onmousedown=\"openloginpopup('normal','');\" "; }else{ memoHtml = " onmousedown=\"openWin('/memo.php?act=write&useridx="+ useridx +"&receive_memo="+ cut_nick +"','send_memo', 460, 405, 'no');\" "; friendHtml = " onmousedown=\"openWin('/friend.php?act=friend_add&useridx="+ useridx +"&target_nick="+ cut_nick +"','friend_add', 400, '284', 'no');\" "; } // »ç¿ëÀÚ Á¤º¸ ·¹ÀÌ¾î ¿µ¿ª ½ÃÀÛ sHtml += "
\n"; sHtml += " \n"; sHtml += "
"; document.getElementById('nick_info').innerHTML = sHtml; document.getElementById('nick_info').style.display=''; } } //2011.08.16 #À¥Ç¥ÁØÈ­ function userinfo2_new(useridx, full_nick, cut_nick, frmSearch, e){ var memoHtml = ''; var friendHtml = ''; var sHtml = ''; var event = window.event || e; if(full_nick=='¿¥ÆÄÀÏ' || full_nick=='¿î¿µÆÀ'){ return; } if(window.scrollX){ X = event.clientX + window.scrollX; } else{ X = event.clientX + document.documentElement.scrollLeft; } if(window.scrollY){ Y = event.clientY + window.scrollY+5; } else{ Y = event.clientY + document.documentElement.scrollTop+5; } if(window.navigator.userAgent.indexOf("MSIE") > -1 ){ if( window.navigator.userAgent.indexOf("8.0") > -1 || window.navigator.userAgent.indexOf("9.0") > -1 ){ X = X+25; } else{ X = X-35; } } else{ X = X+30; } document.getElementById('nick_info').style.zIndex='102'; document.getElementById('nick_info').style.top=Y+"px"; document.getElementById('nick_info').style.left=X+"px"; document.getElementById('nick_info').style.width='110'+"px"; document.getElementById('nick_info').style.height='110'+"px"; // Æû¼­¹Ô ÇÔ¼ö¸íÀÌ ¾È³Ñ¾î¿À¸é ±âº» frmSearch ·Î ¼ÂÆÃ. if(frmSearch=='') frmSearch = 'frmSearch'; // ·Î±×ÀÎ µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ·Î±×ÀÎ Æ˾÷â ¶ç¿ì±â if(!GetCookie('sUserInfo')){ memoHtml = " onmousedown=\"openloginpopup('normal','');\" "; friendHtml = " onmousedown=\"openloginpopup('normal','');\" "; }else{ memoHtml = " onmousedown=\"openWin('/memo.php?act=write&useridx="+ useridx +"&receive_memo="+ full_nick +"','send_memo', 460, 405, 'no');\" "; friendHtml = " onmousedown=\"openWin('/friend.php?act=friend_add&useridx="+ useridx +"&target_nick="+ full_nick +"','friend_add', 400, '284', 'no');\" "; } // »ç¿ëÀÚ Á¤º¸ ·¹ÀÌ¾î ¿µ¿ª ½ÃÀÛ sHtml += "
\n"; sHtml += " \n"; sHtml += "
"; document.getElementById('nick_info').innerHTML = sHtml; document.getElementById('nick_info').style.display=''; } //2011.08.16 // ·¹ÀÌ¾î ¶ß´Â À§Ä¡ °ª¸¸ ´Ù¸§. #À¥Ç¥ÁØÈ­ function userinfo3_new(useridx, full_nick, cut_nick, frmSearch, e){ var memoHtml = ''; var friendHtml = ''; var sHtml = ''; var event = window.event || e; if(full_nick=='¿¥ÆÄÀÏ' || full_nick=='¿î¿µÆÀ'){ return; } if(window.scrollX){ X = event.clientX + window.scrollX; } else{ X = event.clientX + document.documentElement.scrollLeft; } if(window.scrollY){ Y = event.clientY + window.scrollY-5; } else{ Y = event.clientY + document.documentElement.scrollTop-5; } if(window.navigator.userAgent.indexOf("MSIE") > -1 ){ if( window.navigator.userAgent.indexOf("9.0") > -1 || window.navigator.userAgent.indexOf("8.0") > -1 ){ X = X-105; } else{ X = X-165; } } else{ X = X-100; } document.getElementById('nick_info').style.zIndex='102'; document.getElementById('nick_info').style.top=Y+"px"; document.getElementById('nick_info').style.left=X+"px"; document.getElementById('nick_info').style.width='120'+"px"; document.getElementById('nick_info').style.height='140'+"px"; // Æû¼­¹Ô ÇÔ¼ö¸íÀÌ ¾È³Ñ¾î¿À¸é ±âº» frmSearch ·Î ¼ÂÆÃ. if(frmSearch=='') frmSearch = 'frmSearch'; // ·Î±×ÀÎ µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ·Î±×ÀÎ Æ˾÷â ¶ç¿ì±â if(!GetCookie('sUserInfo')){ memoHtml = " onmousedown=\"openloginpopup('normal','');\" "; friendHtml = " onmousedown=\"openloginpopup('normal','');\" "; } else{ memoHtml = " onmousedown=\"openWin('/memo.php?act=write&useridx="+ useridx +"&receive_memo="+ full_nick +"','send_memo', 460, 405, 'no');\" "; friendHtml = " onmousedown=\"openWin('/friend.php?act=friend_add&useridx="+ useridx +"&target_nick="+ full_nick +"','friend_add', 400, '284', 'no');\" "; } // »ç¿ëÀÚ Á¤º¸ ·¹ÀÌ¾î ¿µ¿ª ½ÃÀÛ sHtml += "
\n"; sHtml += " \n"; sHtml += "
"; document.getElementById('nick_info').innerHTML = sHtml; document.getElementById('nick_info').style.display=''; } // 2009.12.02 // userinfo3(ȸ¿øÄÚµå, Àüü´Ð³×ÀÓ, ´Ð³×ÀÓ°¡¸°°Í, Æû¼­¹Ô ÇÔ¼ö¸í) function userinfo(useridx, full_nick, cut_nick, frmSearch){ var memoHtml = ''; var friendHtml = ''; var sHtml = ''; if(full_nick=='¿¥ÆÄÀÏ' || full_nick=='¿î¿µÆÀ'){ return; } X = event.clientX + document.body.scrollLeft+10; Y = event.clientY + document.body.scrollTop+10; document.getElementById('nick_info').style.zIndex='4'; document.getElementById('nick_info').style.top=Y+"px"; document.getElementById('nick_info').style.left=X+"px"; document.getElementById('nick_info').style.width='120'+"px"; document.getElementById('nick_info').style.height='140'+"px"; // Æû¼­¹Ô ÇÔ¼ö¸íÀÌ ¾È³Ñ¾î¿À¸é ±âº» frmSearch ·Î ¼ÂÆÃ. if(frmSearch=='') frmSearch = 'frmSearch'; // ·Î±×ÀÎ µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ·Î±×ÀÎ Æ˾÷â ¶ç¿ì±â if(!GetCookie('sUserInfo')){ memoHtml = " onmousedown=\"openloginpopup('normal','');\" "; friendHtml = " onmousedown=\"openloginpopup('normal','');\" "; } else{ memoHtml = " onmousedown=\"openWin('/memo.php?act=write&useridx="+ useridx +"&receive_memo="+ full_nick +"','send_memo', 447, 377, 'no');\" "; friendHtml = " onmousedown=\"openWin('/friend.php?act=friend_add&useridx="+ useridx +"&target_nick="+ full_nick +"','friend_add', 400, '284', 'no');\" "; } // »ç¿ëÀÚ Á¤º¸ ·¹ÀÌ¾î ¿µ¿ª ½ÃÀÛ sHtml += "
"; sHtml += ""; sHtml += "
"; document.getElementById('nick_info').innerHTML = sHtml; document.getElementById('nick_info').style.display=''; } // 2009.12.02 // userinfo3(ȸ¿øÄÚµå, Àüü´Ð³×ÀÓ, ´Ð³×ÀÓ°¡¸°°Í, Æû¼­¹Ô ÇÔ¼ö¸í) // ·¹ÀÌ¾î ¶ß´Â À§Ä¡ °ª¸¸ ´Ù¸§. function userinfo3(useridx, full_nick, cut_nick, frmSearch){ var memoHtml = ''; var friendHtml = ''; var sHtml = ''; if(full_nick=='¿¥ÆÄÀÏ' || full_nick=='¿î¿µÆÀ'){ return; } X = event.clientX + document.body.scrollLeft-120; Y = event.clientY + document.body.scrollTop-10; document.getElementById('nick_info').style.zIndex='4'; document.getElementById('nick_info').style.top=Y; document.getElementById('nick_info').style.left=X; document.getElementById('nick_info').style.width='120'; document.getElementById('nick_info').style.height='140'; // Æû¼­¹Ô ÇÔ¼ö¸íÀÌ ¾È³Ñ¾î¿À¸é ±âº» frmSearch ·Î ¼ÂÆÃ. if(frmSearch=='') frmSearch = 'frmSearch'; // ·Î±×ÀÎ µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ·Î±×ÀÎ Æ˾÷â ¶ç¿ì±â if(!GetCookie('sUserInfo')){ memoHtml = " onmousedown=\"openloginpopup('normal','');\" "; friendHtml = " onmousedown=\"openloginpopup('normal','');\" "; } else{ memoHtml = " onmousedown=\"openWin('memo.php?act=write&useridx="+ useridx +"&receive_memo="+ full_nick +"','send_memo', 447, 377, 'no');\" "; friendHtml = " onmousedown=\"openWin('friend.php?act=friend_add&useridx="+ useridx +"&target_nick="+ full_nick +"','friend_add', 400, '284', 'no');\" "; } // »ç¿ëÀÚ Á¤º¸ ·¹ÀÌ¾î ¿µ¿ª ½ÃÀÛ sHtml += "
"; sHtml += ""; sHtml += "
"; document.getElementById('nick_info').innerHTML = sHtml; document.getElementById('nick_info').style.display=''; } function frmSearch(param){ var targetUrl = '/storage.php'; var param_replace = param.replace(/=/g,'¡ë'); var param_replace = param_replace.replace(/&/g,'^'); makeForm(targetUrl, '_self', param_replace); } // ÄÁÅÙÃ÷ ³»¿ëº¸±â â¿¡¼­ ÆǸÅÀڷẸ±â Ŭ¸¯½Ã »ç¿ë µÊ. function frmSearch2(param){ var targetUrl = '/storage.php'; var param_replace = param.replace(/=/g,'¡ë'); var param_replace = param_replace.replace(/&/g,'^'); makeForm2(targetUrl, '_top', param_replace); } function frmSearch3(param){ var targetUrl = '/storage.php'; var param_replace = param.replace(/=/g,'¡ë'); var param_replace = param_replace.replace(/&/g,'^'); makeForm(targetUrl, 'mainFrame', param_replace); } function frmSearch_n(param){ parent.opener.location.href = 'storage.php?' + param; parent.opener.document.focus(); // ºÎ¸ðâÀ¸·Î Æ÷Ä¿½º ³Ñ±â±â } //´Ð³×ÀÓ ·¹À̾î function hideuserinfo(){ if(document.getElementById('nick_info').style.display==''){ document.getElementById('nick_info').style.display='none'; } if( document.getElementById('simple_down') != null && document.getElementById('simple_down').style.display == "block"){ document.getElementById('simple_down').style.display='none'; } return; } document.onmousedown= hideuserinfo; //´ÙÁß Ã¼Å©¹Ú½º function ajaxSend(obj , acturl , act , func , msgTrue , msgFalse){ //ajaxSend("üũ¹Ú½ºÀ̸§ ¿¹)check[]" , "ajaxÅë½ÅÇÒ url ¿¹)./multy_result.php" ,"act°ª" , "¸®ÅϹÞÀ» ÇÔ¼ö¸í ¿¹)fn1") var frmValue =''; var j=0; if(obj==null){ //üũ¹Ú½º ¾øÀ»¶§ } else if(obj.value==undefined){ //üũ¹Ú½º°¡ 2°³ÀÌ»ó 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; //false; } } 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 != undefined) { //üũ¹Ú½º°¡ 2°³ÀÌ»ó 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, ""); } // À̵¿ÇÒ url , ÆĶó¹ÌÅÍ ¹®ÀÚ¿­ // param Çü½Ä ex) // param = "A=B&C=D" function makeForm(url, target , param, str_method) { var text = ""; var temp = ""; var i = 0; var j = 0; if(str_method==undefined) str_method = 'get'; 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 makeForm2(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 += "
" //alert( text ); if(opener){ opener.document.all.logInfo.innerHTML = text; opener.document.PageForm.submit(); opener.document.focus(); // ºÎ¸ðâÀ¸·Î Æ÷Ä¿½º ³Ñ±â±â } else{ document.all.logInfo.innerHTML = text; document.PageForm.submit(); } } // Ŭ¶óÀ̾ðÆ® ¼³Ä¡ check function chkDownApp(speedtype){ // ¹«·á ´Ù¿î·Îµå°¡ ¾Æ´Ï¸é ·Î±×ÀÎ check if(!GetCookie('sUserInfo') && speedtype!='freedownspeedlow'){ openloginpopup('mfilebbs'); return false; } try{ WebCtrl.CheckInstall(); return true; }catch(e){ var pop = window.open('popup.php?doc=setup1','setup','width=610,height=550,scrollbars=yes,resized=no'); //openWin('popup.php?doc=setup1','setup','532','550','yes'); return false; } } 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(){ document.getElementById('nick_info').innerHTML=""; } function open_ad(url,target,login,bn_close,bnid){ if(login==1 && !GetCookie('sUserInfo')){ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØÁֽʽÿä.. '); openloginpopup('normal',''); return; } else{ if(target=='_blank'){ window.open(url,'advertisement',''); if(bn_close=='true'){ document.getElementById(bnid).style.display='none'; } } else if(target=='_self'){ self.location.href=url; } else{ var split_target = target.split(','); openWin(url,'advertisement',split_target[1],split_target[2],split_target[3]) if(bn_close=='true'){ document.getElementById(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){ //loginBox , banner_1 try { tb_zone = getRealOffsetLeft(document.getElementById(targetId)); tb_top = document.getElementById(targetId).offsetTop; document.getElementById(bnId).style.left = tb_zone+setLeft; document.getElementById(bnId).style.top = tb_top+setTop; //If(Bnid =='bn_Right'){ document.getElementById(Bnid).Style.Display=""; } } catch(e) { // Do nothing } } function inits_layer(targetId,bnId,setLeft,setTop){ rePlace(targetId,bnId,setLeft,setTop); setTimeout("inits_layer('"+targetId+"','"+bnId+"',"+setLeft+","+setTop+")",100); } function inits_layer2(targetId,bnId,setLeft,setTop,strO){ rePlace(targetId,bnId,setLeft,setTop); var tf = document.getElementById(bnId); //alert(strO); var tid; var outitme = 0 ; if (strO == '1') { tf.style.display = 'block'; outitme++; } else { tf.style.display = 'none'; outitme++; if (tid) clearTimeout(tid); } tid = setTimeout("inits_layer2('"+targetId+"','"+bnId+"',"+setLeft+","+setTop+",'"+ outitme+"')",100); } 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); } document.getElementById(targetId).style.display='none'; } //»ç¿ë¹ý(iframe¾ÈÂÊ documentÀÇ onload¾È¿¡¼­ »ç¿ëÇØÁÖ¼¼¿ä. ÇÁ·¹ÀÓ³×ÀÓÀº ¹Ù±ùÂÊ¿¡¼­ ºÃÀ»¶§ ÀÚ½ÅÀÇ ÇÁ·¹ÀÓ³×ÀÓÀÔ´Ï´Ù.) function calcHeight(FrameName) { if(document.all) { var the_height = frames[FrameName].document.body.scrollHeight + 30; } else { var the_height= document.getElementById(FrameName).contentWindow.document.body.offsetHeight +30; } document.getElementById(FrameName).height=the_height; } function copy_div(obj){ if(GetCookie('sUserInfo')){ var doc = document.body.createTextRange(); doc.moveToElementText(document.all(obj)); doc.select(); doc.execCommand('copy'); alert("¼Ò½º°¡ º¹»ç µÇ¾ú½À´Ï´Ù. \n\nCtrl + V·Î ºÙ¿©³Ö±â¸¦ Çϼ¼¿ä."); } else{ alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.'); return; } } function autoDescLayer22(v){ if(v=='show'){ document.getElementById('layer_auto_desc22').style.display=''; } else{ document.getElementById('layer_auto_desc22').style.display='none'; } } function autoDescLayer44(v){ if(v=='show'){ document.getElementById('layer_auto_desc44').style.display=''; } else{ document.getElementById('layer_auto_desc44').style.display='none'; } } function autoDescLayer47(v){ if(v=='show'){ document.getElementById('layer_auto_desc47').style.display=''; } else{ document.getElementById('layer_auto_desc47').style.display='none'; } } function tagsLink(tagname) { //alert(tagname); frmSearch('doc=taglist&tag_name=' + tagname + ''); return false; } function tagsLink2(tagname) { //alert(tagname); frmSearch3('doc=taglist&tag_name=' + tagname + ''); return false; } function div_discount_displaynone() { //document.getElementById('div_discount').style.display = 'none'; document.getElementById('div_discount').style.display = "none"; } // µðÀÚÀÎ ÆÄÀÏ °øÅë ½ºÅ©¸³Æ® by willow 2009.11.24 function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&iwindow if ( !window.addEventListener ){ obj.attachEvent('on'+type,fn); } else{ obj.addEventListener(type,fn,false); } } // °Ë»ö ¼ÒºÐ·ù ¸®¼Â function resetSearchCodeSel(add) { sel=document.searchFrm.search_code_type; for (i=sel.length; i>=0; i--){ if(i>0) sel.options[i] = null } } function resetSearchCodeSel2(add) { sel=document.searchFrm.search_keyword; for (i=sel.length; i>=-1; i--){ if(i>-1) sel.options[i] = null } } // °Ë»ö ´ëºÐ·ù ¼±Åà ½Ã ¼ÒºÐ·ù ¸¸µé±â À§ÇÑ ÇÔ¼ö function makeSearchCodeSel(v){ if(v=='') return; //»ó¼¼°Ë»ö Ä«Å×°í¸®°¡ À½¾ÇÀÏ °æ¿ì if( v == "MUS" && document.getElementById('detail_search') ){ if(document.getElementById('detail_search').className=="detail_search"){ search_code_chk(v); return; } } makeSearchKeywordSelectBox(); sendRequest(returnSearchCodeSel,'&islist=1&code_cate='+v,'POST','/models/common/main/module/catPrc.php',true,true); } function returnSearchCodeSel(oj){ var f = document.searchFrm; var res = decodeURIComponent(oj.responseText); var split_data = res.split('^'); var key = 0; resetSearchCodeSel(); // ¼ÒºÐ·ù ÃʱâÈ­ //-- ¼¿·ºÆ® ¹Ú½º°ü·Ã Æûüũ if( typeof(document.storage_frm) == "undefined" || typeof(document.storage_frm) == "undefine" ){ return; } for(var i=0;i -1 ){ f.search_code_type.add(newOption); } else{ f.search_code_type.appendChild(newOption); } } // ¸®ÅÏ ¹ÞÀº ¼ÒºÐ·ùÀÇ Ã¹¹ø° option ¼±Åà µÇ°Ô²û. °Ë»ö ½Ã¿¡´Â ¼ÒºÐ·ù option ¼±ÅÃÇÏ´Â °ÍÀ¸·Î ¼ÂÆà //if(key<=0 && document.storage_frm.search_type.value=='') // key++; // Àüü ¼±ÅÃÀÏ °æ¿ì ¼ÒºÐ·ù ¼±Åà ¾øÀ½. if(i<=0) f.search_code_type.options[0].selected=true; else f.search_code_type.options[key].selected=true; } // °Ë»ö¿µ¿ª Àüü,Á¦¸ñ,µî·ÏÀÚ ºÎºÐ ä¿ì±â function makeSearchKeywordSelectBox(){ var f = document.searchFrm; var key = 0; // À½¾Ç ´ëºÐ·ùÀ̸é if(f.search_type.value == "MUS"){ //var res2 = "title|Á¦¸ñ^nickname2|¾ÆƼ½ºÆ®^"; var res2 = "E|Àüü^T|°î¸í^S|°¡¼ö¸í^A|¾Ù¹ü¸í^"; var split_data2 = res2.split('^'); } else{ //¹ÂÁ÷ÀÌ ¾Æ´Ï¸é µðÆúÆ®·Î Àüü Á¦¸ñ µî·ÏÀÚ ÆÄÀϸí //var res2 = "|Àüü^title|Á¦¸ñ^nickname|µî·ÏÀÚ^file|ÆÄÀϸí^"; //var res2 = "|Àüü^title|Á¦¸ñ^file|ÆÄÀϸí^nickname|µî·ÏÀÚ^"; //var res2 = "|Àüü^title|Á¦¸ñ^file|ÆÄÀϸí^nickname|µî·ÏÀÚ^idx|¹øÈ£^"; var res2 = "title|Á¦¸ñ^nickname|µî·ÏÀÚ^idx|¹øÈ£^"; //var res2 = "title|Á¦¸ñ^"; var split_data2 = res2.split('^'); } resetSearchCodeSel2(); for(var i=0;i -1 ){ f.search_keyword.add(newOption2); } else{ f.search_keyword.appendChild(newOption2); } if(f.search_keyword_hidden.value==op_code2){ f.search_keyword.options[i].selected=true; } else{ f.search_keyword.options[i].selected=false; } } //f.search_keyword.options[1].selected=true; } // Ä«·Î½º ¿Â¶óÀÎ ±¤°í. 2010.01.29 added by oasis function goKarosOnline(){ var url ='http://karos.paran.com/index.asp?main_url=/event/20100128_cpID/'; window.open(url,"_blank"); } // ·Î±×ÀΠüũ ÈÄ »õâÀ¸·Î url ¿­±â function chkLoginPopup(sUrl){ if ( GetCookie('sUserInfo') ){ window.open(sUrl); } else{ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.'); openloginpopup('normal',''); } } //¿ÀÇÂÀÚ·á½Ç ·Î±×ÀÎ È®ÀÎ Çϱâ À§ÇÑ ÇÔ¼ö function openBoardCheck(url){ if(GetCookie('sUserInfo')){ self.location.href = url; } else{ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÀÌ °¡´ÉÇÕ´Ï´Ù!'); openloginpopup('',url); } } function winBbsInfo_cmt2(n,a){ if(a == '1' && GetCookie('adult')=='1'){ if(GetCookie('sUserInfo')){ alert('¼ºÀÎÀÎÁõ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); //openWin('/pop_adult.php', 'adultCheck', '330','230', 'no'); var url = '/pop_adult.php' openLayer(url) } else{ //alert('·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. '); openloginpopup('normal',''); } } else{ openBbsInfo_cmt2(n,a); } } function openBbsInfo_cmt2(n,a){ if(openHeight > 800) openHeight = 800; //openWin('','bbs_info','812', openHeight, 'yes');makeForm('./popup/bbs_info.php','bbs_info','idx¡ë'+n); //openWin('./popup/bbs_info.php?idx='+n, 'bbs_info', '812', openHeight, 'yes'); //openWindow('./popup/bbs_info.php','bbs_info','10','10','812', '685', 'yes');makeForm('./popup/bbs_info.php','bbs_info','idx¡ë'+n); //¿¡·¯·Î ÀÎÇÑ ¼öÁ¤ var its = window.open('','bbs_info','width=812,height=685,top=10,left=10, scrollbars=yes'); makeForm('/storage.php','bbs_info','act¡ëview^idx¡ë'+n+'^bfont¡ë'+a); its.focus(); } function idfocusing(){ if(document.LayerloginFrm){ document.LayerloginFrm.mb_id.focus(); } else{ parent.document.LayerloginFrm.mb_id.focus(); } } function hidestatus(){ window.status='' return true; } function returnEventFalse(){ event.returnValue = false; } function LayerSecure_btn(){ if(document.getElementById('secure').value=='Y'){ document.getElementById('secure').value=''; document.getElementById('ssEl').innerHTML = "
IPº¸¾È OFF
"; } else{ document.getElementById('secure').value='Y'; document.getElementById('ssEl').innerHTML = "
IPº¸¾È ON
"; } } //Æ˾÷ ·Î±×ÀÎ function secure_btn_pop(){ if(document.getElementsByName('secure')[0].value=='Y'){ document.getElementsByName('secure')[0].value=''; document.getElementById('ssEl').innerHTML = "IPº¸¾È OFF"; } else{ document.getElementsByName('secure')[0].value='Y'; document.getElementById('ssEl').innerHTML = "IPº¸¾È ON"; } } function securebtnView(num){ if(num==1){ if(document.getElementById('secure').value=='Y'){ document.getElementById('securebtn').src='_VIEWS_IMAGES_COMMON_URLglobal/icon_on2.gif' } else{ document.getElementById('securebtn').src='_VIEWS_IMAGES_COMMON_URLglobal/icon_off2.gif' } } else{ if(document.getElementById('secure').value=='Y'){ document.getElementById('securebtn').src='_VIEWS_IMAGES_COMMON_URLglobal/icon_on.gif' } else{ document.getElementById('securebtn').src='_VIEWS_IMAGES_COMMON_URLglobal/icon_off.gif' } } } function LayerfrmCheckCom(){ var frm = document.LayerloginFrm; var beforeid = frm.mb_id.value; if(!frm.mb_id.value){ alert('¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_id.focus(); return false; } if(!frm.mb_pw.value){ alert('ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_pw.focus(); return false; } if (frm.sSiteNameLogin.value == "jjangfile.net") { if(chkType(frm.mb_id,7)=='resultFalse' || frm.mb_id.value.length < 4 || frm.mb_id.value.length > 16 ){ //var text_str = '»ç¿ëÁßÀÎ ID¿¡ Ư¼ö¹®ÀÚ°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù \n ID º¯°æÆäÀÌÁö·Î À̵¿ ÇÕ´Ï´Ù.'; // alert(text_str); // opener.location.href='/doc.php?doc=id_change&beforeid=' + escape(beforeid) ; // goUrl +="'/doc.php?doc=id_change&beforeid=' + escape(beforeid)"; // eval(goUrl); var text_str = '»ç¿ëÁßÀÎ ID¿¡ Ư¼ö¹®ÀÚ°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù \n ÇØ´ç»çÀÌÆ®·Î Á¢¼Ó ÇÏ½Ã¾î ¾ÆÀ̵𠺯°æ ½ÅûÀ» ÇØ Áֽʽÿä.'; alert(text_str); return false; } } if(frm.secure.value =="Y"){ //ajaSubmit(); document.LayerloginFrm.submit(); } else{ ajaSubmit(); document.LayerloginFrm.submit(); } } //·Î±äÆûüũ function LayerfrmCheck(){ var frm = document.LayerloginFrm; var beforeid = frm.mb_id.value; if(!frm.mb_id.value){ alert('¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_id.focus(); return false; } if(!frm.mb_pw.value){ alert('ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_pw.focus(); return false; } var valId = frm.mb_id.value; var valPw = escape(frm.mb_pw.value); var sSiteNameLogin2 = frm.sSiteNameLogin.value; if(frm.log_save.checked==true){ var log_save = frm.log_save.value; } else{ var log_save = ''; } var refurl_val = frm.refurlok.value; // ´Ù¸¥ °÷À¸·Î µé¾î °¡±â À§Çؼ­´Â µ¿ÀÇ ·¹ÀÌ¾î ¶ç¿ì±â //sendRequest(Layerloginprocess,'&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+ sSiteNameLogin2,'POST','/models/common/main/login/checkagree.php',true,true); //return ; if(frm.secure.value =="Y"){ //ajaSubmit(); document.LayerloginFrm.action = document.LayerloginFrm.httpsurl.value; document.LayerloginFrm.submit(); } else{ //ajaSubmit(); document.LayerloginFrm.action = document.LayerloginFrm.httpurl.value; document.LayerloginFrm.submit(); } } function Layerloginprocess(oj) { var frm = document.LayerloginFrm; var res = decodeURIComponent(oj.responseText); var beforeid = frm.mb_id.value; var split_res = res.split('|'); if (split_res[0] == '-2') { alert('Á¸Àç ÇÏÁö ¾Ê´Â ȸ¿øÀÔ´Ï´Ù. \n'); return ; } if (split_res[0] == '-3') { alert('ºñ¹Ð¹øÈ£°¡ À߸ø µÇ¾ú½À´Ï´Ù. \n'); return ; } if (split_res[0] == '0') { //µ¿ÀÇ °úÁ¤ ¾øÀÌ ¹Ù·Î ·Î±×ÀÎ µÇ°Ô ó¸® ÇÑ´Ù. var frm = document.LayerloginFrm; if(!frm.mb_id.value){ alert('¾ÆÀ̵𰡠ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_id.focus(); return false; } if(!frm.mb_pw.value){ alert('ºñ¹Ð¹øÈ£°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù. \n'); frm.mb_pw.focus(); return false; } if(frm.secure.value =="Y"){ document.LayerloginFrm.action = document.LayerloginFrm.httpsurl.value; //ajaSubmit(); document.LayerloginFrm.submit(); } else{ document.LayerloginFrm.action = document.LayerloginFrm.httpurl.value; //ajaSubmit(); document.LayerloginFrm.submit(); } } if (split_res[0] == '-1') { var valId = frm.mb_id.value; var valPw = split_res[1]; //¾Ïȣȭ ¶§¹®¿¡ var sSiteNameLogin2 = frm.sSiteNameLogin.value; if(frm.log_save.checked==true){ var log_save = frm.log_save.value; } else{ var log_save = ''; } var refurl_val = frm.refurlok.value; // ´Ù¸¥ °÷À¸·Î µé¾î °¡±â À§Çؼ­´Â µ¿ÀÇ ·¹ÀÌ¾î ¶ç¿ì±â // opener.location.href='/page_login.php?doc=checkagreeform&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+ sSiteNameLogin2 +'&refurl_val='+ refurl_val; //goUrl +="'/page_login.php?doc=checkagreeform&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+ sSiteNameLogin2 +'&refurl_val='+ refurl_val"; //eval(goUrl); if(opener){ opener.location.href='/page_login.php?doc=checkagreeform&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+ sSiteNameLogin2 +'&refurl_val='+ refurl_val; } else{ location.href='/page_login.php?doc=checkagreeform&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+ sSiteNameLogin2 +'&refurl_val='+ refurl_val; } fnopencls(); //self.close(); return ; //µ¿ÀÇ ·¹ÀÌ¾î ¶ç¿ì±â // 2015.03.19 À¥Ãë¾àÁ¡ Á¡°Ë ¶§¹®¿¡ ÇØ´ç ÄíÅ° ´ë½Å mfile ·Î ³Ö¾îµÒ var ac_html = ''; ac_html += ''; ac_html += '
'; ac_html += ''; ac_html += ''; ac_html += ''; ac_html += '
'; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += '
'; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += '
ȸ¿ø´ÔÀÇ ÆíÀǸ¦ À§ÇÏ¿© »ç¿ëÇϽôø ¾ÆÀ̵ð ±×´ë·Î ·Î±×ÀÎÀÌ °¡´ÉÇϹǷΠ¾Æ·¡ÀÇ µ¿ÀÇÀýÂ÷¸¦ ÁøÇàÇϽŠµÚ ÀÌ¿ëºÎŹµå¸®°Ú½À´Ï´Ù.

Á¤º¸ ÀÌ°üÇ׸ñ : ¾ÆÀ̵ð, ´Ð³×ÀÓ, À̸ÞÀÏÁÖ¼Ò

 
'; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += ' '; ac_html += '
'; ac_html += ' À§ ÀÌ¿ë¾à°ü¿¡ µ¿ÀÇÇÕ´Ï´Ù
'; ac_html += ' À§ °³ÀÎÁ¤º¸ Ãë±Þ¹æħ¿¡ µ¿ÀÇÇÕ´Ï´Ù.
'; ac_html += ' À§ °³ÀÎÁ¤º¸ Ãë±Þ À§Å¹¿¡ µ¿ÀÇÇÕ´Ï´Ù.
'; ac_html += '
 '; ac_html += '
'; ac_html += '
'; ac_html += '
'; ac_html += ''; ac_html += ''; window.resizeTo('900','871'); document.getElementById('div_agreecheck').innerHTML = ac_html; } } function frmCheckCom_pre() { var frm = document.ac_yak; //if(frm.ac_yak_check.checked) { document.getElementById('div_agreecheck').style.display = 'none'; document.LayerloginFrm.tongagree.value = "1"; frmCheckCom(); // } // else { // alert('µ¿ÀÇ ÇÏ¼Å¾ß ÀÌ¿ë °¡´É ÇÕ´Ï´Ù.'); // } } function onloadMenuDisplay(){ if(GetCookie('mid')){ document.getElementById('purchase_list').style.display='block'; if(GetCookie('grade')) document.getElementById('regist_list').style.display='block'; } } //·Î±×ÀÎ function ajaSubmit(){ var frm = document.LayerloginFrm; 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; var sSiteNameLogin = frm.sSiteNameLogin.value; sendRequest(idCheck,'&act=ok&mb_id='+valId+'&mb_pw='+valPw+'&log_save='+log_save+'&sSiteNameLogin='+sSiteNameLogin ,'POST','models/common/main/login/loginPrc_ssl.php',true,true); } //opener = document.opener; //·Î±×ÀÎ °á°úó¸® function idCheck(oj){ var frm_this = this; var frm = document.LayerloginFrm; 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 = 'ȸ¿ø´ÔÀº Á¦Àç·Î ÀÎÇØ ¾Æ·¡±â°£µ¿¾È ¿¥ÆÄÀÏÀ» ÀÌ¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. \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 'logok' : //alert(split_res[2]); /*if (split_res[2] == "Y") { alert('Áö±Ý °áÁ¦ÇϽøé Æ÷ÀÎÆ®°¡ 3¹è, ÃÖ´ë 99,000P Áö±ÞµË´Ï´Ù'); location.href='/main/charge.php?doc=point2'; } */ //sendRequest(resultValue,'','get','./module/login_ok.php',true,true); /* if(location.href.indexOf('storage.php')!=-1) onloadMenuDisplay(); //¿¥ÆÄÀÏ ¸Þ´ºÀ϶§ if(location.href.indexOf('bbs.php')!=-1) location.reload(); //°Ô½ÃÆÇÀ϶§ ¸®ÇÁ·¹½¬ if(document.getElementById('bn_main')){ //showBanner(document.getElementById('bn_main')); } */ //frm_this.opener.location.reload(); frm_this.parent.location.reload(); //alert(parent.forms); //self.close(); fnopencls(); break; } } function goto2(url){ window.location.href = url; } function fnopencls(){ //·Î±×ÀÎ ·¹ÀÌ¾î ´Ý±â document.getElementById('div_loginLayer').style.display = "none"; document.getElementById('div_mainLayer').style.display = "none"; } function popfnopencls(){ //·Î±×ÀÎ ·¹ÀÌ¾î ´Ý±â parent.document.getElementById('div_loginLayer').style.display = "none"; parent.document.getElementById('div_mainLayer').style.display = "none"; } function fnopenchk(stype){ var stype eval(stype) } //¿£Åͼ­ºê¹Ô function LayeronkeyUpFunc(){ var keyValue = event.keyCode; if ( keyValue==13 ) { LayerfrmCheck(); } else{ return; } } function search_divpop(){ var search_view = document.getElementById('search_view_bubble01'); var mysearch = document.getElementById('mysearch'); var mysearch_btn1 = document.getElementById('mysearch_btn1'); var mysearch_btn2 = document.getElementById('mysearch_btn2'); if(search_view.style.display == 'none'){ if(mysearch_btn1) mysearch_btn1.src="http://www.mfile.co.kr/views/images/common/storage/btn_mysearch2_on.gif"; if(mysearch_btn2) mysearch_btn2.src="http://www.mfile.co.kr/views/images/common/storage/btn_mysearch_on.gif"; if(mysearch){ mysearch.style.display='none' } search_view.style.display = "inline"; } else{ search_view.style.display = "none"; } } /* //Æ˾÷ »çÀÌÁî Á¶Àý ÀÛ¾÷Áß ¹ÌÀû¿ë 2011-10-07 pd_jdk function avg_resizeTo(){ if(window.innerWidth){ var Dwidth = parseInt(window.innerWidth); var Dheight = parseInt(window.innerHeight); } else{ if(document.documentElement.offsetWidth>document.body.scrollWidth ){ var Dwidth = parseInt(document.documentElement.offsetWidth); } else{ var Dwidth = parseInt(document.body.scrollWidth); } if(document.documentElement.offsetHeight>document.body.scrollHeight ){ var Dheight = parseInt(document.documentElement.offsetHeight); } else{ var Dheight = parseInt(document.body.scrollHeight); } } alert(Dwidth+"//"+Dheight); resizeTo(Dwidth,Dheight); } */ //2012-01-10 pd_jdk function a_href_19_new(url,target){ if(GetCookie('sUserInfo')){ if(GetCookie('adult')!='1'){ url = 'pop_adult.php?nurl='+url; openLayer_new(url) } else{ if(target) var targeting = eval(target); else var targeting = eval('self'); targeting.location.href=url; } } else{ openloginpopup('normal',url); } } //¼ºÀÎÀÎÁõ°ú ·Î±×ÀÎ ·¹ÀÌ¾î °øÅë¿ë function openLayer_new(url, poptype, contents){ var url, contents; //var Dwidth = parseInt(document.body.scrollWidth); //var Dheight = parseInt(document.body.scrollHeight); var obj = document.getElementById("wrap"); var m_width = 18; if(window.innerWidth){ var Dwidth = parseInt(window.innerWidth-m_width); var Dheight = parseInt(window.innerHeight); if( obj ){ if( obj.offsetWidth+180 > Dwidth ){ var Dwidth = parseInt(obj.offsetWidth+180); } if( obj.offsetHeight > Dheight ){ var Dheight = parseInt(obj.offsetHeight); } } } else{ if(window.navigator.userAgent.indexOf("MSIE") > -1 ){ if( window.navigator.userAgent.indexOf("7.0") > -1 ){ m_width = 0; } } if(document.documentElement.offsetWidth>document.body.scrollWidth ){ var Dwidth = parseInt(document.documentElement.offsetWidth-m_width); } else{ var Dwidth = parseInt(document.body.scrollWidth-m_width); } if( obj ){ if( obj.clientWidth+180 > Dwidth ){ var Dwidth = parseInt(obj.clientWidth+180); } } if(document.documentElement.offsetHeight>document.body.scrollHeight ){ var Dheight = parseInt(document.documentElement.offsetHeight); } else{ var Dheight = parseInt(document.body.scrollHeight); } } contents = (contents) ? contents : ""; document.getElementById("div_mainLayer").style.width = Dwidth+"px"; document.getElementById("div_mainLayer").style.height = Dheight+"px"; document.getElementById("div_loginLayer").innerHTML = contents; document.getElementById("div_loginLayer").style.display = "block"; document.getElementById("div_mainLayer").style.display = "block"; window.scrollTo(0,0); } // ·Î±×ÀÎ Æ˾÷ ȸ¿ø°¡ÀÔ À̵¿ function urlhref(jointarget,surl){ if( jointarget == "to" ){ if(top.opener){ top.opener.location.href=surl; } else{ location.href=surl; } } else if( jointarget == "to" ){ if(top.opener.parent){ top.opener.parent.location.href=surl; } else{ location.href=surl; } } else{ location.href=surl; } } /* //¼ºÀÎÀÎÁõ°ú ·Î±×ÀÎ ·¹ÀÌ¾î °øÅë¿ë pd_jdk ÃßÈÄ »ç¿ë ¿¹Á¤ function openLayer_new1(url, poptype, contents){ var o_id1, o_id2,p_ck,o_width=180,o_height=10; if(poptype == "mfilebbscmt"){ p_ck = "ok"; } if( document.getElementById("wrap")) ){ var o_id1 = document.getElementById("wrap"); } else if( parent.document.getElementById("wrap") ){ var o_id1 = parent.document.getElementById("wrap"); p_ck = "ok"; } else if( document.getElementById("view") ){ var o_id1 = document.getElementById("view"); var o_id2 = document.getElementById("pop_wrap"); } else if( parent.document.getElementById("view") ){ var o_id1 = parent.document.getElementById("view"); var o_id2 = parent.document.getElementById("pop_wrap"); p_ck = "ok"; } else if( parent.document.getElementById("storageView") ){ var o_id1 = parent.document.getElementById("storageView"); p_ck = "ok"; } if(p_ck){ if(o_id1) var obj1 = parent.document.getElementById(o_id1); if(o_id2) var obj2 = parent.document.getElementById(o_id2); } else{ if(o_id1) var obj1 = document.getElementById(o_id1); if(o_id2) var obj2 = document.getElementById(o_id2); } var m_width = 18; if(window.innerWidth){ if(p_ck){ var Dwidth = parseInt(parent.window.innerWidth-m_width); var Dheight = parseInt(parent.window.innerHeight); } else{ var Dwidth = parseInt(window.innerWidth-m_width); var Dheight = parseInt(window.innerHeight); } if( obj1 ){ if( obj1.offsetWidth+o_width > Dwidth ){ var Dwidth = parseInt(obj1.offsetWidth+o_width); } if( obj2 ){ if( obj2.offsetHeight > Dheight ){ Dheight = parseInt(obj2.offsetHeight+o_height); } } else{ if( obj1.offsetHeight > Dheight ){ Dheight = parseInt(obj1.offsetHeight); } } } } else{ if(p_ck){ m_width = 21; } if(window.navigator.userAgent.indexOf("MSIE") > -1 ){ if( window.navigator.userAgent.indexOf("7.0") > -1 ){ m_width = 0; } } if(p_ck){ if(parent.document.documentElement.offsetWidth>parent.document.body.scrollWidth ){ var Dwidth = parseInt(parent.document.documentElement.offsetWidth-m_width); } else{ var Dwidth = parseInt(parent.document.body.scrollWidth-m_width); } if( obj1.clientWidth > Dwidth ){ var Dwidth = parseInt(obj1.clientWidth); } if(parent.document.documentElement.offsetHeight>document.body.scrollHeight ){ var Dheight = parseInt(parent.document.documentElement.offsetHeight); } else{ var Dheight = parseInt(parent.document.body.scrollHeight); } if(obj2){ if( obj2.offsetHeight > Dheight ){ var Dheight = parseInt(obj2.offsetHeight+o_height); } } else{ if( obj1.offsetHeight > Dheight ){ var Dheight = parseInt(obj1.offsetHeight+o_height); } } } else{ if(document.documentElement.offsetWidth>document.body.scrollWidth ){ var Dwidth = parseInt(document.documentElement.offsetWidth-m_width); } else{ var Dwidth = parseInt(document.body.scrollWidth-m_width); } if( obj1 ){ if( obj1.clientWidth+o_width > Dwidth ){ var Dwidth = parseInt(obj1.clientWidth+o_width); } } if(document.documentElement.offsetHeight>document.body.scrollHeight ){ var Dheight = parseInt(document.documentElement.offsetHeight); } else{ var Dheight = parseInt(document.body.scrollHeight); } } } var contents = ""; if( document.getElementById("iframe_hidden") ){ document.getElementById("iframe_hidden").style.width = Dwidth+"px"; } try{ top.document.getElementById("div_mainLayer").style.width = Dwidth+"px"; top.document.getElementById("div_mainLayer").style.height = Dheight+"px"; top.document.getElementById("div_loginLayer").innerHTML = contents; top.document.getElementById("div_loginLayer").style.display = "block"; top.document.getElementById("div_mainLayer").style.display = "block"; top.window.scrollTo(0,0); } catch(e) { try { parent.document.getElementById("div_mainLayer").style.width = Dwidth+"px"; parent.document.getElementById("div_mainLayer").style.height = Dheight+"px"; parent.document.getElementById("div_loginLayer").innerHTML = contents; parent.document.getElementById("div_loginLayer").style.display = "block"; parent.document.getElementById("div_mainLayer").style.display = "block"; parent.window.scrollTo(0,0); } catch(e) { try { document.getElementById("div_mainLayer").style.width = Dwidth+"px"; document.getElementById("div_mainLayer").style.height = Dheight+"px"; document.getElementById("div_loginLayer").innerHTML = contents; document.getElementById("div_loginLayer").style.display = "block"; document.getElementById("div_mainLayer").style.display = "block"; window.scrollTo(0,0); } catch(e) { alert('»õ·Î°íħÀ» ÇϽŠÈÄ ÀÌ¿ëÇÏ¿©ÁÖ¼¼¿ä.'); } } } } */