text: /*
  
  Base URL: /resource/common/jquery_plugin/common_functions.js || Script sequence: [9]
  
  */
  
  function ItgJs(){}function member(){}ItgJs.fn_schAddr=function(){window.open("/comm/comm_juso_popup.do","주소 찾기 ","width=570px, height=420px, resizable=yes, scrollbars=yes, location=no, top=100px, left100px;")},ItgJs.jusoCallBack=function(e,t,n){$("#post1st").val(n),$("#addr1st1").val(e),$("#addr1st2").val(t)},ItgJs.fn_isUsable=function(e){return void 0!==e||(alert("Error : "+e+" 필드가 undefined 입니다"),!1)},ItgJs.fn_isInArray=function(e,n){var o=!1;return $.each(e,function(e,t){if(t==n)return!(o=!0)}),o},ItgJs.fn_isInArrayChk=function(e,n){var o=!1;return $.each(e.split(","),function(e,t){if(t==n)return!(o=!0)}),o},ItgJs.fn_chkValue=function(e,t){return!!ItgJs.fn_isUsable(e)&&(""!=e.value.replace(/\s/g,"")||(alert(t),e.focus(),!1))},ItgJs.fn_chkRadio=function(e,t){if(!ItgJs.fn_isUsable(e))return!1;for(var n=!1,o=0;o<e.length;o++)if(1==e[o].checked){n=!0;break}return 0!=n||(alert(t),e[0].focus(),!1)},ItgJs.fn_chkCheckbox=function(e,t,n,o){if(!ItgJs.fn_isUsable(e))return!1;for(var r=0,s=0;s<e.length;s++)1==e[s].checked&&r++;return!((0==r||r<n||o<r&&0!=o)&&(alert(t),e[0].focus(),1))},ItgJs.fn_chkEmail=function(e,t){return!!/^[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$/.test(e.value)||(null!=t&&alert(t),e.focus(),!1)},ItgJs.fn_isCurrency=function(e){return!/[^0-9+-,.]/.test(e)},ItgJs.fn_isEnter=function(e){return 13==((e=e||window.event).keyCode||e.which)},ItgJs.fn_numberOnly=function(e){var t=(e=e||window.event).keyCode||e.which;return!!(34<t&&t<41||47<t&&t<58||95<t&&t<106||8==t||9==t||13==t||46==t||e.ctrlKey&&(67==t||86==t))||(e.returnValue?(alert("숫자만 입력가능 합니다."),e.returnValue=!1):alert("숫자만 입력가능 합니다."),e.stopPropagation(),e.preventDefault(),!1)},ItgJs.fn_engNumberOnly=function(e){var t=$(e).val();return""==t?($(e).focus(),!1):/^[^a-zA-Z]/.test(t)?(alert($(e).attr("title")+"은(는) 영문(대소문)자로 시작해야 합니다."),$(e).focus(),!1):!/[^a-zA-Z0-9_]/.test(t)||(alert($(e).attr("title")+"은(는) 영문(대소문자), 숫자, _ 만 입력 할 수 있습니다."),$(e).focus(),!1)},ItgJs.fn_phone=function(e){var t=(e=e||window.event).keyCode||e.which;return!!(34<t&&t<41||47<t&&t<58||95<t&&t<106||8==t||9==t||13==t||46==t||189==t||109==t||e.ctrlKey&&(67==t||86==t))||(e.returnValue?(alert("숫자와 - 만 입력가능 합니다."),e.returnValue=!1):alert("숫자와 - 만 입력가능 합니다."),e.stopPropagation(),e.preventDefault(),!1)},ItgJs.fn_commify=function(e){var t=/(^[+-]?\d+)(\d{3})/;for(e+="";t.test(e);)e=e.replace(t,"$1,$2");return e},ItgJs.fn_setCookie=function(e,t,n){var o=new Date;o.setDate(o.getDate()+n),document.cookie=0<n?e+"="+escape(t)+"; path=/; expires="+o.toGMTString()+";":e+"="+escape(t)+"; path=/;"},ItgJs.fn_getCookie=function(e){for(var t=e+"=",n=0;n<=document.cookie.length;){var o=n+t.length;if(document.cookie.substring(n,o)==t)return-1==(endOfCookie=document.cookie.indexOf(";",o))&&(endOfCookie=document.cookie.length),unescape(document.cookie.substring(o,endOfCookie));if(0==(n=document.cookie.indexOf(" ",n)+1))break}return""},ItgJs.fn_pstTwitter=function(e,t){var n="http://twitter.com/home?status="+encodeURIComponent(e)+" "+encodeURIComponent(t),o=window.open(n,"twitter","");o&&o.focus()},ItgJs.fn_pstFaceBook=function(e,t){var n="http://www.facebook.com/sharer.php?u="+t+"&t="+encodeURIComponent(e),o=window.open(n,"facebook","");o&&o.focus()},ItgJs.fn_checkLength=function(e,t,n,o){var r,s=e.value;null==o&&(o=2),t<(r=ItgJs.getByteLength(s,o))?(alert(t+"자 이내로 작성해주세요."),area_name.value=s.substr(0,t),$("#"+n).text(t)):$("#"+n).text(r)},ItgJs.getByteLength=function(e,t,n,o,r){for(n=o=0;r=e.charCodeAt(o++);n+=r>>11?t:r>>7?2:1);return n},ItgJs.fn_bisCheck=function(e){if(!/([0-9]{3})-?([0-9]{2})-?([0-9]{5})/.test(e))return!1;e=e.replace(/-/gi,"");var t=0;return t+=parseInt(e.substring(0,1)),t+=3*parseInt(e.substring(1,2))%10,t+=7*parseInt(e.substring(2,3))%10,t+=+parseInt(e.substring(3,4))%10,t+=3*parseInt(e.substring(4,5))%10,t+=7*parseInt(e.substring(5,6))%10,t+=+parseInt(e.substring(6,7))%10,t+=3*parseInt(e.substring(7,8))%10,t+=Math.floor(5*parseInt(e.substring(8,9))/10),t+=5*parseInt(e.substring(8,9))%10,(t+=parseInt(e.substring(9,10)))%10==0},ItgJs.fn_reAlignImage=function(e,t,n){if($(e).height()<n){var o=n-$(e).height();$(e).css("margin-top",Math.round(o/2)+"px")}},ItgJs.fn_reAlignImage2=function(e,t,n){var o=t,r=n,s=$(e).width(),a=$(e).height(),i=0,d=0,c=0,u=0;if(o<s?(i=c=o,d=Math.round(a*c/s)):r<a?(d=u=r,i=Math.round(s*u/a)):(c=s,u=a,i=Math.round(s*u/a),d=Math.round(a*c/s)),o<i?(c=o,u=Math.round(d*c/s)):r<d?(u=r,c=Math.round(d*u/a)):(c=i,u=d),u<r){var l=r-u;$(e).css("margin-top",Math.round(l/2)+"px")}$(e).css("width",c+"px"),$(e).css("height",u+"px")},ItgJs.fn_colorBoxClose=function(){$("#cboxClose").trigger("click")},ItgJs.fn_sessionKeep=function(){$.ajax({url:"/comm/sessionKeep.do",data:"",type:"post",dataType:"json",success:function(e){},error:function(e,t,n){}})},ItgJs.fn_checkAll=function(e,t){$("input[name="+t+"]").prop("checked",e.checked)},ItgJs.fn_check=function(e,t){$("input[name="+e+"]:checked").length==$("input[name="+e+"]").length?$("input[id="+t+"]").prop("checked","checked"):$("input[id="+t+"]").removeAttr("checked")},ItgJs.fn_replaceQueryString=function(strQS,strFld,strVal){var ptrn="/(&|^)("+strFld+"=)([^&]*|$)/i";return ptrn=eval(ptrn),""!=strVal?strQS=ptrn.test(strQS)?strQS.replace(ptrn,"&"+strFld+"="+encodeURIComponent(strVal)):"schStr"==strFld?strQS+"&"+strFld+"="+encodeURIComponent(strVal):strQS+"&"+strFld+"="+strVal:ptrn.test(strQS)&&(strQS=strQS.replace(ptrn,"")),strQS.startsWith("&")?strQS.substring(1):strQS},ItgJs.fn_isEmpty=function(e){return""==e||null==e||null==e||null!=e&&"object"==typeof e&&!Object.keys(e).length},ItgJs.fn_checkPass=function(e,t){if(ItgJs.fn_isEmpty(e))return"비밀번호를 입력하세요";if(ItgJs.fn_isEmpty(e))return"비밀번호 확인을 입력하세요";if(e!=t)return"비밀번호 확인이 일치하지 않습니다.";if(e.length<9)return"비밀번호는 영문, 숫자, 특수문자의 조합으로 9자리 이상 입력해주세요.";if(!e.match(/[a-zA-Z0-9]*[^a-zA-Z0-9\n]+[a-zA-Z0-9]*$/))return"비밀번호는 영문, 숫자, 특수문자의 조합으로 9자리 이상 입력해주세요.";for(var n,o,r,s=0,a=0,i=0,d=0;d<e.length;d++)n=e.charAt(d),o=e.charAt(d+1),r=e.charAt(d+2),n==o&&o==r&&(s+=1),n.charCodeAt(0)-o.charCodeAt(0)==1&&o.charCodeAt(0)-r.charCodeAt(0)==1&&(a+=1),n.charCodeAt(0)-o.charCodeAt(0)==-1&&o.charCodeAt(0)-r.charCodeAt(0)==-1&&(i+=1);return 0<s?"동일문자를 3회 이상 연속으로 사용할 수 없습니다.":0<a||0<i?"연속된 문자열(123 또는 321, abc, cba 등)을\n 3자 이상 사용 할 수 없습니다.":""},$.fn.datepicker.dates.kr={days:["일요일","월요일","화요일","수요일","목요일","금요일","토요일","일요일"],daysShort:["일","월","화","수","목","금","토","일"],daysMin:["일","월","화","수","목","금","토","일"],months:["01","02","03","04","05","06","07","08","09","10","11","12"],monthsShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},ItgJs.fn_datePicker2=function(e,t){ItgJs.fn_datePicker(e,t,"")},ItgJs.fn_datePicker=function(e,t,n){ItgJs.fn_isEmpty(t)&&(t="yyyy-mm-dd"),ItgJs.fn_isEmpty(n)&&(n=""),$(e).datepicker({format:t,startDate:n,language:"kr",autoclose:!0,todayHighlight:!0})},ItgJs.fn_datePickerRange=function(t,n){$.fn.datepicker.dates.kr={days:["일요일","월요일","화요일","수요일","목요일","금요일","토요일","일요일"],daysShort:["일","월","화","수","목","금","토","일"],daysMin:["일","월","화","수","목","금","토","일"],months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthsShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},$(t).datepicker({format:"yyyy-mm-dd",startDate:"2000-01-01",endDate:$(n).val(),language:"kr",autoclose:!0,todayHighlight:!0}).on("changeDate",function(e){$(n).datepicker("setStartDate",$(t).val())}),$(n).datepicker({format:"yyyy-mm-dd",startDate:$(t).val(),endDate:"3000-12-31",language:"kr",autoclose:!0,todayHighlight:!0}).on("changeDate",function(e){$(t).datepicker("setEndDate",$(n).val())})},ItgJs.NowPageById=function(e,t){var n="active",o=e.toUpperCase().split(">");if(null!=t&&""!=t||(t="LEFT"),"TAB"!=t&&"MTAB"!=t||(n="is_selected"),"SNB"==t)for(var r in o)$("#"+t+"_"+o[r]).addClass("is_lnb"+r+"--opened");else if("GNB" == t || "GNBB" == t)for(r=0;r<o.length;r++)$("#"+t+"_"+o[r]).addClass("depth"+(r+1)+"-current--active");else{"MMAP"==t&&$(".btn-open").trigger("click");var s="";for(var r in o)s="#"+t+"_"+o[r],"MMAP"==t?(n=0!=r?"is_selected":"depth1--selected","N60500000000"!=o[r]&&"NE60300000000"!=o[r]&&"N71200000000"!=o[r]||(n="depth1--selected"),$(s).addClass(n),$(s+" > ul").css("display","block")):$(s).addClass(n);"MMAP"==t&&($(".btn-close").trigger("click"),0==$(".depth1--selected").size()?($("#MMAP_N10000000000").addClass("depth1--selected"),$("#MMAP_NE10000000000").addClass("depth1--selected")):location.href=s)}},ItgJs.NowPageById2=function(e,t){var n="active",o=e.toUpperCase().split(">");if(null!=t&&""!=t||(t="LEFT"),"TAB"!=t&&"MTAB"!=t||(n="is_selected"),"SNB"==t)for(var r in o)r<=1?($("#"+t+"_"+o[r]).addClass("is_lnb"+r+"--opened"),1==r&&$("#"+t+"_"+o[r]).addClass("is_lnb--opened")):$("#"+t+"_"+o[r]).addClass("is_lnb_opened");else for(var r in o)$("#"+t+"_"+o[r]).addClass(n);$(".menu-lnb__item.is_lnb1--opened").children("ul").attr("style","display:block")},ItgJs.RemovePageById=function(e){var t=e.toUpperCase().split(">");for(var n in t)$("#LEFT_"+t[n]).removeClass("active")},ItgJs.NowPageSub=function(e,t){var n=e.toUpperCase().split(">");for(var o in n)$("#SNB_"+n[o]).addClass("active")},ItgJs.optionForSelectBox=function(e,t,n,o,r){var s="";$.each(e,function(){console.log(this),s+="<option value='"+this[n]+(this[n]==r?"' selected='selected'":"")+"'>"+this[o]+"</option>"}),$("#"+t).append(s)},ItgJs.selectBoxForeach=function(e,n,o){$.each(e,function(e,t){t==o?$("#"+n).append("<option value='"+t+"' selected='selected'>"+t+"</option>"):$("#"+n).append("<option value='"+t+"'>"+t+"</option>")})},ItgJs.selectBoxLocalNumber=function(e,t){$("#"+e).append("<option value=''>선택</option>"),ItgJs.selectBoxForeach(["02","051","053","032","062","042","052","031","033","043","041","063","061","054","055","064","070"],e,t)},ItgJs.selectBoxMobileLocalNumber=function(e,t){$("#"+e).append("<option value=''>선택</option>"),ItgJs.selectBoxForeach(["010","011","016","017","018","019"],e,t)},ItgJs.selectBoxEmail=function(e,t){$("#"+e).append("<option value=''>직접입력</option>"),ItgJs.selectBoxForeach(["daum.net","hanmail.net","paran.com","hotmail.com","chollian.net","dreamwiz.com","empal.com","hanmir.net","hitel.com","korea.com","lycos.co.kr","nate.com","naver.com","netian.net","gmail.com"],e,t)},ItgJs.selectBoxGetYear=function(e,t){for(var n=(new Date).getFullYear(),o=n;n-100<=o;o--)t==o?$("#"+e).append("<option value='"+o+"' selected='selected'>"+o+"</option>"):$("#"+e).append("<option value='"+o+"' >"+o+"</option>")},ItgJs.selectBoxGetMonth=function(e,t){$("#"+e).append("<option value=''>선택</option>"),ItgJs.selectBoxForeach(["01","02","03","04","05","06","07","08","09","10","11","12"],e,t)},ItgJs.selectBoxGetDay=function(e,t){$("#"+e).append("<option value=''>선택</option>"),ItgJs.selectBoxForeach(["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],e,t)};var addr="R";function userEditorSet(){myeditor.config.useSource=!1,myeditor.config.useStrikethrough=!1,myeditor.config.useUnderline=!1,myeditor.config.useItalic=!1,myeditor.config.useJustifyLeft=!1,myeditor.config.useJustifyCenter=!1,myeditor.config.useJustifyRight=!1,myeditor.config.useJustifyFull=!1,myeditor.config.useFontName=!1,myeditor.config.useLineHeight=!1,myeditor.config.useBackColor=!1,myeditor.config.useHR=!1,myeditor.config.useTable=!1,myeditor.config.useModifyTable=!1}ItgJs.getDaumAddressPopup=function(){new daum.Postcode({oncomplete:function(e){ItgJs.getDaumAddressCore(e)}}).open({left:window.screen.width/2-250,top:window.screen.height/2-300})},ItgJs.getDaumAddressLayer=function(){new daum.Postcode({oncomplete:function(e){ItgJs.getDaumAddressCore(e)},width:"100%",height:"100%"}).embed($("#daumPostLayer").attr("id")),$("#daumPostLayer").show(),ItgJs.getDaumAddressLayerPosition()},ItgJs.getDaumAddressLayer1st=function(){new daum.Postcode({oncomplete:function(e){ItgJs.getDaumAddressCore1st(e)},width:"100%",height:"100%"}).embed($("#daumPostLayer").attr("id")),$("#daumPostLayer").show(),ItgJs.getDaumAddressLayerPosition()},ItgJs.getDaumAddressLayer2nd=function(){new daum.Postcode({oncomplete:function(e){ItgJs.getDaumAddressCore2nd(e)},width:"100%",height:"100%"}).embed($("#daumPostLayer").attr("id")),$("#daumPostLayer").show(),ItgJs.getDaumAddressLayerPosition()},ItgJs.getDaumAddressCore=function(e){var t=e.roadAddress,n="";if(""!==e.bname&&/[동|로|가]$/g.test(e.bname)&&(n+=e.bname),""!==e.buildingName&&"Y"===e.apartment&&(n+=""!==n?", "+e.buildingName:e.buildingName),""!==n&&(n=" ("+n+")"),""!==t&&(t+=n),"E"==e.userLanguageType)return alert("한글 도로명 및 지번 주소를 선택해 주세요."),!1;if(addr=e.userSelectedType,"J"==e.userSelectedType?($("#oldPost").show(),$("#oldAddr1").show(),$("#oldAddr2").show(),$("#newPost").hide(),$("#newAddr1").hide(),$("#newAddr2").hide()):($("#newPost").show(),$("#newAddr1").show(),$("#newAddr2").show(),$("#oldPost").hide(),$("#oldAddr1").hide(),$("#oldAddr2").hide()),$("#oldPost").val(e.postcode1+e.postcode2),$("#newPost").val(e.zonecode),$("#oldAddr1").val(e.jibunAddress),$("#newAddr1").val(t),e.autoRoadAddress){var o=e.autoRoadAddress+n;$("#guide").text("예상 도로명 주소 : "+o)}else if(e.autoJibunAddress){var r=e.autoJibunAddress;$("#guide").text("예상 지번 주소 : "+r)}else $("#guide").text("");ItgJs.getDaumAddressLayerClose()},ItgJs.getDaumAddressCore1st=function(e){var t=e.roadAddress,n="";if(""!==e.bname&&/[동|로|가]$/g.test(e.bname)&&(n+=e.bname),""!==e.buildingName&&"Y"===e.apartment&&(n+=""!==n?", "+e.buildingName:e.buildingName),""!==n&&(n=" ("+n+")"),""!==t&&(t+=n),"E"==e.userLanguageType)return alert("한글 도로명 및 지번 주소를 선택해 주세요."),!1;addr=e.userSelectedType;var o="(구) ("+e.postcode1+"-"+e.postcode2+") "+e.jibunAddress;if($("#oldAddr1st").text(o),$("#oldAddr1stHelp").text(" (※구주소는 참고용이며 저장되지 않습니다.)"),$("#post1st").val(e.zonecode),$("#addr1st1").val(t),0<$("#sido1st").length&&$("#sido1st").val(e.sido),0<$("#sigungu1st").length&&$("#sigungu1st").val(e.sigungu),0<$("#bname1st").length&&$("#bname1st").val(e.bname),e.autoRoadAddress){var r=e.autoRoadAddress+n;$("#guide1st").text("예상 도로명 주소 : "+r)}else if(e.autoJibunAddress){var s=e.autoJibunAddress;$("#guide1st").text("예상 지번 주소 : "+s)}else $("#guide1st").text("");ItgJs.getDaumAddressLayerClose()},ItgJs.getDaumAddressCore2nd=function(e){var t=e.roadAddress,n="";if(""!==e.bname&&/[동|로|가]$/g.test(e.bname)&&(n+=e.bname),""!==e.buildingName&&"Y"===e.apartment&&(n+=""!==n?", "+e.buildingName:e.buildingName),""!==n&&(n=" ("+n+")"),""!==t&&(t+=n),"E"==e.userLanguageType)return alert("한글 도로명 및 지번 주소를 선택해 주세요."),!1;addr=e.userSelectedType;var o="(구) ("+e.postcode1+"-"+e.postcode2+") "+e.jibunAddress;if($("#oldAddr2nd").text(o),$("#oldAddr2ndHelp").text(" (※구주소는 참고용이며 저장되지 않습니다.)"),$("#post2nd").val(e.zonecode),$("#addr2nd1").val(t),e.autoRoadAddress){var r=e.autoRoadAddress+n;$("#guide2nd").text("예상 도로명 주소 : "+r)}else if(e.autoJibunAddress){var s=e.autoJibunAddress;$("#guide2nd").text("예상 지번 주소 : "+s)}else $("#guide2nd").text("");ItgJs.getDaumAddressLayerClose()},ItgJs.getDaumAddressLayerPosition=function(){$("#daumPostLayer").css({width:"500px",height:"460px",border:"5px solid",left:((window.innerWidth||document.documentElement.clientWidth)-500)/2-5+"px",top:((window.innerHeight||document.documentElement.clientHeight)-460)/2-5+"px"})},ItgJs.getDaumAddressLayerClose=function(){$("#daumPostLayer").hide()},ItgJs.fn_chkDate=function(e){try{var t=e.replace(/-/g,"");if(isNaN(t)||8!=t.length)return!1;var n=Number(t.substring(0,4)),o=Number(t.substring(4,6)),r=Number(t.substring(6,8));if(o<1||12<o)return!1;var s=[31,28,31,30,31,30,31,31,30,31,30,31][o-1];return 2==o&&(n%4==0&&n%100!=0||n%400==0)&&(s=29),!(r<=0||s<r)}catch(e){return!1}},ItgJs.fn_chkNumber=function(e,t){return""!=$.trim($("#"+e).val())&&!/[^(0-9)]/.test($("#"+e).val())||(alert(t),$("#"+e).focus(),!1)},ItgJs.fn_sendSatis=function(){if(0==$("input[name=answer1]:checked").size())return alert("만족도를 선택 해 주세요."),$("#answer11").prop("checked",!0).focus(),!1;var e=$("#satisForm").serialize();$.ajax({url:"/commons/sendSatis.do",data:e,dataType:"json",success:function(e){alert(e.message),document.satisForm.reset()}})},ItgJs.fn_closeLayerPopup=function(e,t){ItgJs.fn_setCookie(e,"on",t),ItgJs.mainPopClose(e)},ItgJs.fn_mainSearch=function(e,t){null==t&&(t=document.totSearch),t.action="../contents/"+e+".do",t.submit()},ItgJs.fn_replaceBr=function(e){return e.replace(/(?:\r\n|\r|\n)/g,"<br/>")},ItgJs.sendSns=function(e,t,n){var o,r=document.snsShare,s=encodeURIComponent(t),a=encodeURIComponent(n),i=encodeURIComponent("\r\n");switch(e){case"facebook":o={method:"popup",url:"http://www.facebook.com/sharer/sharer.php?u="+s};break;case"twitter":o={method:"popup",url:"http://twitter.com/intent/tweet?text="+a+"&url="+s};break;case"naverBlog":o={method:"popup",url:"http://share.naver.com/web/shareView.nhn?url="+s+"&title="+a};break;case"me2day":o={method:"popup",url:"http://me2day.net/posts/new?new_post[body]="+a+i+s+"&new_post[tags]=epiloum"};break;case"kakaotalk":o={method:"web2app",param:"sendurl?msg="+a+"&url="+s+"&type=link&apiver=2.0.1&appver=2.0&appid=dev.epiloum.net&appname="+encodeURIComponent("${systemconfigVO.titleName}"),a_store:"itms-apps://itunes.apple.com/app/id362057947?mt=8",g_store:"market://details?id=com.kakao.talk",a_proto:"kakaolink://",g_proto:"scheme=kakaolink;package=com.kakao.talk"};break;case"kakaostory":o={method:"web2app",param:"posting?post="+a+i+s+"&apiver=1.0&appver=2.0&appid=dev.epiloum.net&appname="+encodeURIComponent("${systemconfigVO.titleName}"),a_store:"itms-apps://itunes.apple.com/app/id486244601?mt=8",g_store:"market://details?id=com.kakao.story",a_proto:"storylink://",g_proto:"scheme=kakaolink;package=com.kakao.story"};break;case"kakaostoryW":o={method:"popup",url:"https://story.kakao.com/s/share?url="+s+"&text="+a};break;case"band":o={method:"web2app",param:"create/post?text="+a+i+s,a_store:"itms-apps://itunes.apple.com/app/id542613198?mt=8",g_store:"market://details?id=com.nhn.android.band",a_proto:"bandapp://",g_proto:"scheme=bandapp;package=com.nhn.android.band"};break;default:return alert("지원하지 않는 SNS입니다."),!1}switch(o.method){case"popup":window.open(o.url,"","width=500,height=500");var d=r.siteCode.value,c=r.menuCode.value;$.ajax({url:"/_mngr_/stats/snsCount_comm_proc.do",type:"post",data:{currentUrl:t,smName:e,siteCode:d,menuCode:c},dataType:"text",success:function(e){},error:function(e){},complete:function(e){var t=$("#loadingLayer");console.log("hideLoading"),t.hide()}});break;case"web2app":navigator.userAgent.match(/android/i)?setTimeout(function(){location.href="intent://"+o.param+"#Intent;"+o.g_proto+";end"},100):navigator.userAgent.match(/(iphone)|(ipod)|(ipad)/i)?(setTimeout(function(){location.href=o.a_store},200),setTimeout(function(){location.href=o.a_proto+o.param},100)):alert("이 기능은 모바일에서만 사용할 수 있습니다.")}},ItgJs.popup=function(e,t,n,o){ow=window.open(e,t,"toolbar=no,location=no,status=no,menubar=no,scrollbars=no,left=0, top=0, resizable=no,width="+n+"px,height="+o+"px"),ow||alert("팝업을 해제한 후 다시 시도해주세요.")},ItgJs.popupScrollbars=function(e,t,n,o){ow=window.open(e,t,"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,left=0, top=0, resizable=no,width="+n+"px,height="+o+"px"),ow||alert("팝업을 해제한 후 다시 시도해주세요.")},ItgJs.mainPopClose=function(e){return $("#"+e).remove(),!1},ItgJs.popupCnt=function(e,t){$.ajax({url:"/_mngr_/stats/popupCount_comm_proc.do",type:"post",beforeSend:"",data:{popIdx:e,siteCode:t},dataType:"text",success:function(e){}})},ItgJs.getRandomStr=function(e){for(var t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n="",o=0;o<e;o++){var r=Math.floor(Math.random()*t.length);n+=t.substring(r,r+1)}return n},ItgJs.stripScripts=function(e){return e.replace(/<script[^>]*>((\n|\r|.)*?)<\/script>/gim,"")},ItgJs.stripStyle=function(e){return e.replace(/<style[^>]*>((\n|\r|.)*?)<\/style>/gim,"")},ItgJs.stripHtml=function(e){return(e=ItgJs.stripStyle(ItgJs.stripScripts(e)).replace(/(<([^>]+)>)/gi,"").trim()).replace(/\n|\r|\t/g," ").replace(/ +/g," ")},ItgJs.stripHtmlforTextarea=function(e){return e=(e=e.replace(/(<br[^>]*>)/gi,"\r\n")).replace(/(<[^>]*\/p>)/gi,"\r\n"),ItgJs.stripStyle(ItgJs.stripScripts(e)).replace(/(<([^>]+)>)/gi,"").trim()},ItgJs.fileTypeReferer={image:{desc:"이미지",types:"image/*"},doc:{desc:"문서",types:".txt, .rtf, .hwp, .asv, .pdf, .doc, .docx, .ppt, .pptx, .xls, .xlsx"},audio:{desc:"오디오",types:"audio/*"},video:{desc:"비디오",types:"video/*"},cmpf:{desc:"압축 파일",types:".zip, .7z, .egg, .alz, .rar, .tar"},all:{desc:"모든 파일",types:"*/*"},pdf:{desc:"PDF",types:".pdf"},epub:{desc:"E-PUB",types:".epub"},mp4:{desc:"MP4",types:".mp4"}},ItgJs.setAcceptType=function(e){var t="";if(0<e.indexOf(";")&&(e=e.split(";")),Array.isArray(e))for(var n=0;n<e.length;n++)if(0!=t.length&&(t+=", "),null!=ItgJs.fileTypeReferer[e[n]]){if("all"===e[n]){t="",t+=ItgJs.fileTypeReferer[e[n]].types;break}t+=ItgJs.fileTypeReferer[e[n]].types}else t+=e[n];else null!=ItgJs.fileTypeReferer[e]?("all"===e&&(t=""),t+=ItgJs.fileTypeReferer[e].types):t+=e;return t},ItgJs.setAcceptTypeDesc=function(e){var t="";if(0<e.indexOf(";")&&(e=e.split(";")),Array.isArray(e))for(var n=0;n<e.length;n++)if(0!=t.length&&(t+=", "),null!=ItgJs.fileTypeReferer[e[n]]){if("all"===e[n]){t="",t+=ItgJs.fileTypeReferer[e[n]].desc;break}t+=ItgJs.fileTypeReferer[e[n]].desc}else t+=e[n];else null!=ItgJs.fileTypeReferer[e]&&("all"===e&&(t=""),t+=ItgJs.fileTypeReferer[e].desc);return t},ItgJs.showLoading=function(){spinner='<div class="lds-css ng-scope"><div class="loading-spiner" style="100%;height:100%"><img src="/resource/common/img/loading-bar.gif" alt="로딩중"></div></div>';var e=$("#loadingLayer");console.log(e),e.css("height","100%"),e.html(spinner),e.show()},ItgJs.hideLoading=function(){var e=$("#loadingLayer");console.log("hideLoading"),e.hide()},ItgJs.LSset=function(e,t,n){var o={value:t,expires_at:(new Date).getTime()+ +n};localStorage.setItem(e.toString(),JSON.stringify(o))},ItgJs.LSget=function(e){var t=JSON.parse(localStorage.getItem(e.toString()));if(null!==t){if(!(null!==t.expires_at&&t.expires_at<(new Date).getTime()))return t.value;localStorage.removeItem(e.toString())}return null},Date.prototype.toMyString=function(){var e=this.getFullYear().toString(),t=(this.getMonth()+1).toString(),n=this.getDate().toString(),o=this.getHours().toString(),r=this.getMinutes().toString(),s=this.getSeconds().toString();return e+"-"+(t[1]?t:"0"+t[0])+"-"+(n[1]?n:"0"+n[0])+" "+(o[1]?o:"0"+o[0])+":"+(r[1]?r:"0"+r[0])+":"+(s[1]?s:"0"+s[0])},"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e){return this.slice(0,e.length)==e}),ArrayList=function(e){var o=[];e&&(o=o.concat(e)),this.count=o.length,this.add=function(e){o.push(e),this.count=o.length},this.addRange=function(e){if(e.getIterator){for(var t=e.getIterator();!t.atEnd();)this.add(t.get());this.count=o.length}else{for(var n=0;n<e.length;n++)o.push(e[n]);this.count=o.length}},this.clear=function(){o.splice(0,o.length),this.count=0},this.clone=function(){return new dojox.collections.ArrayList(o)},this.contains=function(e){for(var t=0;t<o.length;t++)if(o[t]==e)return!0;return!1},this.forEach=function(e,t){dojo.forEach(o,e,t)},this.get=function(e){return o[e]},this.size=function(){return o.length},this.getIterator=function(){return new dojox.collections.Iterator(o)},this.indexOf=function(e){for(var t=0;t<o.length;t++)if(o[t]==e)return t;return-1},this.insert=function(e,t){o.splice(e,0,t),this.count=o.length},this.item=function(e){return o[e]},this.remove=function(e){var t=this.indexOf(e);0<=t&&o.splice(t,1),this.count=o.length},this.removeAt=function(e){o.splice(e,1),this.count=o.length},this.reverse=function(){o.reverse()},this.sort=function(e){e?o.sort(e):o.sort()},this.setByIndex=function(e,t){o[e]=t,this.count=o.length},this.toArray=function(){return[].concat(o)},this.toString=function(e){return o.join(e||",")}},Map=function(){this.map=new Object},Map.prototype={put:function(e,t){this.map[e]=t},get:function(e){return this.map[e]},containsKey:function(e){return e in this.map},containsValue:function(e){for(var t in this.map)if(this.map[t]==e)return!0;return!1},isEmpty:function(e){return 0==this.size()},clear:function(){for(var e in this.map)delete this.map[e]},remove:function(e){delete this.map[e]},keys:function(){var e=new Array;for(var t in this.map)e.push(t);return e},values:function(){var e=new Array;for(var t in this.map)e.push(this.map[t]);return e},size:function(){var e=0;for(var t in this.map)e++;return e}},window.matchMedia||(window.matchMedia=function(){"use strict";var t=window.styleMedia||window.media;if(!t){var n,o=document.createElement("style"),e=document.getElementsByTagName("script")[0];o.type="text/css",o.id="matchmediajs-test",e?e.parentNode.insertBefore(o,e):document.head.appendChild(o),n="getComputedStyle"in window&&window.getComputedStyle(o,null)||o.currentStyle,t={matchMedium:function(e){var t="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return o.styleSheet?o.styleSheet.cssText=t:o.textContent=t,"1px"===n.width}}}return function(e){return{matches:t.matchMedium(e||"all"),media:e||"all"}}}()),member.fn_memberWeb=function(e,t,n,o){if("false"==o){document.domain="nl.go.kr";var r=screen.width?(screen.width-1e3)/2:0,s="height=700,width=1000,top="+(screen.height?(screen.height-700)/2:0)+",left="+r+",scrollbars=yes";"NL"==t?"join"==e?window.open("https://member.nl.go.kr:444/memberJoin.do?mode=agree&site=nl","memberJoin",s):"mod"==e&&window.open("https://member.nl.go.kr:444/login.do?mode=form&site=nl&beforeUrl=/memberInfoModify.do","memberJoin",s):"join"==e?window.open("https://member.nl.go.kr:444/foreign/join.do?site=newnl","memberJoin",s):"mod"==e&&window.open("https://member.nl.go.kr:444/foreign/login.do?mode=form&site=newnl&beforeUrl=/foreign/memberInfoModify.do","memberJoin",s)}else document.location.href=n},member.fn_memberPop=function(e){document.domain="nl.go.kr";var t=screen.width?(screen.width-1e3)/2:0,n="height=700,width=1000,top="+(screen.height?(screen.height-700)/2:0)+",left="+t+",scrollbars=yes";"NL"==e?window.open("https://member.nl.go.kr:444/login.do?mode=form&site=nl&beforeUrl=/memberInfoModify.do","memberJoin",n):window.open("https://member.nl.go.kr:444/foreign/login.do?mode=form&site=newnl&beforeUrl=/foreign/memberInfoModify.do","memberJoin",n)},jQuery.ajaxSetup({beforeSend:ItgJs.showLoading,error:function(e,t,n){if(401==e.status)alert("세션이 종료되었거나 접근 권한이 없습니다."),location.reload();else if(403==e.status)alert("세션이 종료되었거나 접근 권한이 없습니다."),location.href="/_mngr_/main/login.do";else{if(701==e.status)return alert("권한이 없습니다."),!1;alert("예외가 발생했습니다 (code : "+e.status+"). 관리자에게 문의하세요."),location.reload()}},complete:ItgJs.hideLoading}),ItgJs.fn_showCertModal=function(e,t){$("#certForm")[0].reset(),$("#certSchId").val(e),$("#userId").val(t),$("#certifyForAccess").show(),$("#chkPw").focus()},ItgJs.accessCheck=function(){frm=document.certForm,Validator.validate(frm)&&$.ajax({url:"/commons/member/comm_chk_pass.ajax",data:$("#certForm").serialize(),type:"post",dataType:"json",async:"false",success:function(e){e?fn_goView($("#certSchId").val()):alert("비밀번호가 일치하지 않습니다.")},error:function(e,t,n){alert("code:"+e.status+"\nmessage:"+e.responseText+"\nerror:"+n)}})},ItgJs.fn_goNewsView=function(e){var t=$(e).children().text();location.href="/NL/contents/search.do?detailSearch=true&offerDbcode2s=CH49&mediaCode="+t};