PageSourceSearch

https://www.alba.co.kr/rsc/js/CommonCtrl_min.js?202610011100

js alba.co.kr collected 2026-10-02 15:17:00 UTC 16,080 bytes, 29 lines download raw bytes

1var CommonCtrl=function(a){this.strVersion="undefined"!=typeof a.version?a.version:"";this.strRegTel=/^\d{2,4}-\d{3,4}-\d{4}$/;this.strRegExistTel=/[\d|\uc77c|\uc774|\uc0bc|\uc0ac|\uc624|\uc721|\uce60|\ud314|\uad6c|\uacf5]{2,4}[-|.|_|/|\s]{0,3}[\d|\uc77c|\uc774|\uc0bc|\uc0ac|\uc624|\uc721|\uce60|\ud314|\uad6c|\uacf5]{3,4}[-|.|_|/|\s]{0,3}[\d|\uc77c|\uc774|\uc0bc|\uc0ac|\uc624|\uc721|\uce60|\ud314|\uad6c|\uacf5]{4}/;this.strRegKeyTel=/^\d{4}-\d{4}$/;this.strRegComReg=/^\d{3}-\d{2}-\d{5}$/;this.strRegJumin=
2/^\d{7}-\d{8}$/;this.strRegEmail=/^([0-9a-zA-Z_\-\.]+)@([0-9a-zA-Z_\-\.]+)\.([a-zA-Z]{2,63})$/;this.strRegNumeric=/[^0-9]/;this.strRegAlpha=/[^a-z]/i;this.strRegAlphaNumeric=/[^a-z0-9]/i;this.strRegHangulAlphaNumeric=/[^\uac00-\ud7a3a-z0-9]/i;this.strRegSpecial=/[@\\#$^*"`?\u20ac??\u300a\u300b\u00a1\u00bf<>=\u2605\u2663\u25a0\u260e\u2665\u25b6\u25c0\u25c6\u203b\u2606\u25cb\u25cf\u25ce\u25c7\u25a1\u25b3\u25b2\u25bd\u25bc\u2192\u2190\u2191\u2193\u2194\u3013\u25c1\u25b7\u2664\u2660\u2661\u2667\u2299\u25c8\u25a3\u25d0\u25d1\u2592\u25a4\u25a5\u25a8\u25a7\u25a6\u25a9\u2668\u260f\u261c\u261e\u00b6\u2021\u2195\u2197\u2199\u2196\u2198\u266d\u2669\u266a\u266c\u3266\u3001\u3002\u00bf\u00a4\u3003\u2260\u00b1\u226a\u226b\u00d7\u00f7\u220f\u2211\u2227\u2228\u2229\u222a\u222b\u2252\u2261\u2264\u2265\u2283\u2286\u2287\u22a5\u2312\u21d2\u21d4\u00a7\u00ae\u00b0\u222c\u2640\u2642\u00bc\u00bd\u00be\u00c6\u0111\u00d0\u0126\u00ba\u00d8\u00df\u00de;\u2500\u2501\u2502\u2503\u250c\u250d\u250e\u250f\u2510\u2511\u2512\u2513\u2514\u2515\u2516\u2517\u2518\u2519\u251a\u251b\u251c\u251d\u251e\u251f\u2520\u2521\u2522\u2523\u2524\u2525\u2526\u2527\u2528\u2529\u252a\u252b\u252c\u252d\u252e\u252f\u2530\u2531\u2532\u2533\u2534\u2535\u2536\u2537\u2538\u2539\u253a\u253b\u253c\u253d\u253e\u253f\u2540\u2541\u2542\u2543\u2544\u2545\u2546\u2547\u2548\u2549\u254a\u254b]/gi;
3this.strRegSpecialDouble="?!~-+()[]%&,.\u321c\u3214'/:\u00b7";this.strRegNumberComma=/(^[+-]?\d+)(\d{3})/;this.strRegHomepage=/^((([a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3}))|(([0-9]{1,3}\.){3}([0-9]{1,3})))((\/|\\?)[a-z0-9~#%&'_\+=:\?\.-]*)*)$/;this.strRegEmojis=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;
4this.strRegData=/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/;this.strRegTitleSpecial=/[@\\#$^*"?\u20ac??\u300a\u300b\u00a1\u00bf<>=\u2605\u2663\u25a0\u260e\u2665\u25b6\u25c0\u25c6\u203b\u2606\u25cb\u25cf\u25ce\u25c7\u25a1\u25b3\u25b2\u25bd\u25bc\u2192\u2190\u2191\u2193\u2194\u3013\u25c1\u25b7\u2664\u2660\u2661\u2667\u2299\u25c8\u25a3\u25d0\u25d1\u2592\u25a4\u25a5\u25a8\u25a7\u25a6\u25a9\u2668\u260f\u261c\u261e\u00b6\u2021\u2195\u2197\u2199\u2196\u2198\u266d\u2669\u266a\u266c\u3266\u3001\u3002\u00bf\u00a4\u3003\u2260\u00b1\u226a\u226b\u00d7\u00f7\u220f\u2211\u2227\u2228\u2229\u222a\u222b\u2252\u2261\u2264\u2265\u2283\u2286\u2287\u22a5\u2312\u21d2\u21d4\u00a7\u00ae\u00b0\u222c\u2640\u2642\u00bc\u00bd\u00be\u00c6\u0111\u00d0\u0126\u00ba\u00d8\u00df\u00de;\u2500\u2501\u2502\u2503\u250c\u250d\u250e\u250f\u2510\u2511\u2512\u2513\u2514\u2515\u2516\u2517\u2518\u2519\u251a\u251b\u251c\u251d\u251e\u251f\u2520\u2521\u2522\u2523\u2524\u2525\u2526\u2527\u2528\u2529\u252a\u252b\u252c\u252d\u252e\u252f\u2530\u2531\u2532\u2533\u2534\u2535\u2536\u2537\u2538\u2539\u253a\u253b\u253c\u253d\u253e\u253f\u2540\u2541\u2542\u2543\u2544\u2545\u2546\u2547\u2548\u2549\u254a\u254b]/gi;
5this.strRegNotSpecial=/[^\u3131-\u314e|\uac00-\ud7a3|a-z|A-Z|0-9|\u314f-\u3163|~|<|>|\?|!|\uff07|\u318d|\u11a2|\-|\+|\(|\)|\[|\]|%|&|,|\.|\u321c|\u3214|'|\/|:|\u00b7\s]/g};
6CommonCtrl.prototype={isUndefined:function(a){return"undefined"!=typeof a?!0:!1},isRegulation:function(a){var b=this.isUndefined(a.type)?a.type.toUpperCase():"";a=this.isUndefined(a.txt)?a.txt:"";var d="",c=this.strRegTel,e=this.strRegExistTel,g=this.strRegKeyTel,h=this.strRegComReg,l=this.strRegJumin,k=this.strRegEmail,q=this.strRegNumeric,n=this.strRegAlpha,p=this.strRegAlphaNumeric,m=this.strRegHangulAlp
6haNumeric,r=this.strRegSpecial,u=this.strRegSpecialDouble,y=this.strRegHomepage,v=this.strRegEmojis,
7z=this.strRegDate,w=this.strRegTitleSpecial,x=this.strRegNotSpecial;try{return d={TEL:function(f){return c.test(f)?!0:g.test(f)?!0:!1},EXISTTEL:function(f){return e.test(f)?!0:!1},COMREG:function(f){return h.test(f)?!0:!1},JUMIN:function(f){return l.test(f)?!0:!1},EMAIL:function(f){return k.test(f)?!0:!1},NUMERIC:function(f){return q.test(f)?!1:!0},ALPHA:function(f){return n.test(f)?!1:!0},ALPHANUMERIC:function(f){return p.test(f)?!1:!0},HANGULALPHANUMERIC:function(f){return m.test(f)?!1:!0},SPECIAL:function(f){r.lastIndex=
80;return r.test(f)?!1:!0},NOTSPECIAL:function(f){x.lastIndex=0;return x.test(f)?!1:!0},SPECIALDOUBLE:function(f){for(var t=0,A=u.length;t<A;t++)if(f=u.substr(t,1),-1<strVal.indexOf(f+f))return!1;return!0},HOMEPAGE:function(f){return y.test(f)?!0:!1},EMOTICON:function(f){v.lastIndex=0;return v.test(f)?!0:!1},DATE:function(f){return z.test(f)?!0:!1},TITLESPECIAL:function(f){w.lastIndex=0;return w.test(f)?!0:!1}}[b],d(a)}catch(f){this._setException(f.name+":"+f.message)}},drawOption:function(a){var b=
9this.isUndefined(a.id)?a.id:"",d=this.isUndefined(a.empty)?a.empty:"N",c=this.isUndefined(a.group)?a.group:"",e=this.isUndefined(a.name)?a.name:"",g=this.isUndefined(a.key)?a.key:"NM",h=this.isUndefined(a.val)?a.val:"CD",l=this.isUndefined(a.selected)?a.selected:"";a=eval(c+"."+e);var k="";try{$.each(a,function(q,n){k=l==n[h]?k+("<option value='"+n[h]+"' selected>"+n[g]+"</option>"):k+("<option value='"+n[h]+"'>"+n[g]+"</option>")}),"Y"==d?($("#"+b).empty(),$("#"+b).html(k)):$("#"+b).append(k)}catch(q){this._setException(q.name+
10":"+q.message)}},drawOptionMid:function(a){var b=this.isUndefined(a.id)?a.id:"",d=this.isUndefined(a.empty)?a.empty:"N",c=this.isUndefined(a.group)?a.group:"",e=this.isUndefined(a.name)?a.name:"",g=this.isUndefined(a.mkey)?a.mkey:"MCD",h=this.isUndefined(a.mval)?a.mval:"",l=this.isUndefined(a.key)?a.key:"NM",k=this.isUndefined(a.val)?a.val:"CD",q=this.isUndefined(a.selected)?a.selected:"";a=eval(c+"."+e);var n="<option value=''>
10\uc9c1\uc885\ud558\uc704</option>";try{$.each(a,function(p,m){h==m[g]&&
11m[g]!=m[k]&&(n=q==m[k]?n+("<option value='"+m[k]+"' selected>"+m[l]+"</option>"):n+("<option value='"+m[k]+"'>"+m[l]+"</option>"))}),"Y"==d?($("#"+b).empty(),$("#"+b).html(n)):$("#"+b).append(n)}catch(p){this._setException(p.name+":"+p.message)}},setStartPage:function(a){a=this.isUndefined(a.link)?a.link:"";startpage.style.behavior="url(#default#homepage)";startpage.setHomePage(a)},setBookMark:function(a){var b=this.isUndefined(a.title)?a.title:"",d=this.isUndefined(a.link)?a.link:"";a=this.isUndefined(a.msg)?
12a.msg:"\ud655\uc778\uc744 \ud074\ub9ad\ud558\uc2e0 \ud6c4 Ctrl + D\ub97c \ub20c\ub7ec\uc8fc\uc138\uc694.";try{if(document.all)window.external.AddFavorite(d,b);else if(window.sidebar&&window.sidebar.addPanel)window.sidebar.addPanel(b,d,"");else if(window.opera&&window.print){var c=document.createElement("a");c.setAttribute("href",d);c.setAttribute("title",b);c.setAttribute("rel","sidebar");c.click()}else alert(a)}catch(e){this._setException(e.name+":"+e.message)}},setCreateScript:function(a){a=this.isUndefined(a.link)?
13a.link:"";try{var b=document.createElement("script");b.type="text/javascript";b.charset="UTF-8";b.src=a;document.getElementsByTagName("head")[0].appendChild(b)}catch(d){this._setException(d.name+":"+d.message)}},_setException:function(a){},getCheckBoxToggle:function(a){var b=this.isUndefined(a.id)?a.id:"";a=this.isUndefined(a.target)?a.target:"";b=$("input:checkbox[id="+b+"]").is(":checked");$("input:checkbox[name="+a+"]").attr("checked",b)},getCheckboxValid:function(a){a=this.isUndefined(a.id)?a.id:
14"";var b=[],d="";try{return $("input:checkbox[name="+a+"]:checked").each(function(){b.push(this.value)}),$.each(b,function(c,e){d+=""==d?e:","+e}),d}catch(c){this._setException(c.name+":"+c.message)}},getCheckboxCnt:function(a){var b=this.isUndefined(a.name)?a.name:"",d=this.isUndefined(a.cnt)?a.cnt:0,c=this.isUndefined(a.msg)?a.msg:"\ucd5c\ub300 "+d+"\uae4c\uc9c0 \uc120\ud0dd\uac00\ub2a5\ud569\ub2c8\ub2e4";a=this.isUndefined(a.event)?a.event:"";try{$("input:checkbox[name="+b+"]:checked").length>
15d&&(alert(c),""!=a?a.preventDefault?a.preventDefault():event.returnValue=!1:event.returnValue=!1)}catch(e){this._setException(e.name+":"+e.message)}},getLeftPixel:function(a){var b=this.isUndefined(a.pixel)?a.pixel:0;a=this.isUndefined(a.event)?a.event:"";var d;try{return d=document.all?document.documentElement.scrollLeft+event.clientX+b:0<navigator.userAgent.indexOf("Chrome")?document.body.scrollLeft+a.clientX+b+"px":document.documentElement.scrollLeft+a.clientX+b+"px"}catch(c){this._setException(c.name+
16":"+c.message)}},getTopPixel:function(a){var b=this.isUndefined(a.pixel)?a.pixel:0;a=this.isUndefined(a.event)?a.event:"";var d;try{return d=document.all?document.documentElement.scrollTop+event.clientY+b:0<navigator.userAgent.indexOf("Chrome")?document.body.scrollTop+a.clientY+b+"px":document.documentElement.scrollTop+a.clientY+b+"px"}catch(c){this._setException(c.name+":"+c.message)}},formatNumber:function(a){a=this.isUndefined(a.num)?a.num:0;a=Number(a);for(a=String(a);this.strRegNumberComma.test(a);)a=
17a.replace(this.strRegNumberComma,"$1,$2");return a},openPopup:function(a){var b=this.isUndefined(a.position)?a.position:"LT",d=this.isUndefined(a.name)?a.name:"",c=this.isUndefined(a.link)?a.link:"",e=this.isUndefined(a.width)?a.width:0,g=this.isUndefined(a.height)?a.height:0,h=this.isUndefined(a.toolbar)?a.toolbar:"no",l=this.isUndefined(a.menubar)?a.menubar:"no",k=this.isUndefined(a.statusbar)?a.statusbar:"no",q=this.isUndefined(a.scrollbar)?a.scrollbar:"no",n=this.isUndefined(a.locationBar)?a.locationBar:
18"no";a=this.isUndefined(a.resizable)?a.resizable:"no";var p=0,m=0;try{switch(b){case "LT":m=p=0;break;case "RT":p=0;m=screen.availWidth-e;break;case "RB":p=screen.availHeight-g;m=screen.availWidth-e;break;case "LB":p=screen.availHeight-g;m=0;break;case "CE":p=(screen.availHeight-g)/2,m=(screen.availWidth-e)/2}window.open(c,d,"top="+p+",left="+m+",width="+e+",height="+g+",toolbar="+h+",menubar="+l+",location="+n+",status="+k+",scrollbars="+q+",resizable="+a)}catch(r){this._setException(r.name+":"+
19r.message)}},openModeless:function(a){var b=this.isUndefined(a.link)?a.link:"",d=this.isUndefined(a.width)?a.width:0,c=this.isUndefined(a.height)?a.height:0,e=this.isUndefined(a.center)?a.center:"yes",g=this.isUndefined(a.help)?a.help:"no",h=this.isUndefined(a.resizable)?a.resizable:"no",l=this.isUndefined(a.status)?a.status:"no";a=this.isUndefined(a.scroll)?a.scroll:0;
19try{window.showModalDialog(b,window,"dialogWidth:"+d+"px; dialogHeight:"+c+"px;center:"+e+";help:"+g+";resizable:"+h+";status:"+l+
20";scroll:"+a+";")}catch(k){this._setException(k.name+":"+k.message)}},chkValidator:function(a){var b=this.isUndefined(a.type)?a.type.toUpperCase():"";a=this.isUndefined(a.id)?a.id:"";var d="";try{return d={TEXT:function(c){return""==$.trim($("#"+c).val())?!1:!0},RADIO:function(c){return 0==$("input:radio[name="+c+"]:checked").length?!1:!0},CHECKBOX:function(c){return 0==$("input:checkbox[name="+c+"]:checked").length?!1:!0},SELECTBOX:function(c){return""==$("#"+c+" option:selected").val()?!1:!0}}[b],
21d(a)}catch(c){this._setException(c.name+":"+c.message)}},chkNumeric:function(a){try{var b=this.isUndefined(a)&&this.isUndefined(a.event)?a.event:event,d=b.keyCode?b.keyCode:b.which;return(48>d||57<d)&&0!=d&&8!=d&&37!=d&&39!=d&&46!=d?(b.preventDefault?b.preventDefault():b.returnValue=!1,!1):!0}catch(c){this._setException(c.name+":"+c.message)}},isNumber:function(a){return RegExp("[^0-9]").test(a)?!1:!0},moEvent:function(a){var b=this.isUndefined(a.id)?a.id:"";a=this.isUndefined(a.layer)?a.layer:"";
22var d=eval("window."+b),c=-1<navigator.appVersion.indexOf("MSIE 8")?document.body:document.documentElement;"Y"==a?"hidden"==$("#"+b).css("visibility")?$("#"+b).css("visibility","visible"):$("#"+b).css("visibility","hidden"):"hidden"==$("#"+b).css("visibility")?(d.style.pixelLeft=c.scrollLeft+event.x-1,d.style.pixelTop=c.scrollTop+event.y-1,$("#"+b).css("visibility","visible")):$("#"+b).css("visibility","hidden")},goUrl:function(a){var b=this.isUndefined(a.confirm)?a.confirm:"N",d=this.isUndefined(a.ment)?
23a.ment:"",c=this.isUndefined(a.link)?a.link:"",e=this.isUndefined(a.submit)?a.submit:"N",g=this.isUndefined(a.id)?a.id:"",h=this.isUndefined(a.method)?a.method:"get",l=this.isUndefined(a.iframe)?a.iframe:"N";a=this.isUndefined(a.target)?a.target:"_self";try{if("Y"==b)if(confirm(d))this._goSubmitOrHref(l,c,e,g,h,a);else return!1;else this._goSubmitOrHref(l,c,e,g,h,a)}catch(k){this._setException(k.name+":"+k.message)}},_goSubmitOrHref:function(a,b,d,c,e,g){try{"Y"==a?"Y"==d?($("#"+c).attr("target",
24"ifrm"),$("#"+c).attr("method",e),$("#"+c).attr("action",b),$("#"+c).submit()):ifrm.location.href=b:"Y"==d?($("#"+c).attr("target",g),$("#"+c).attr("method",e),$("#"+c).attr("action",b),$("#"+c).submit()):document.location.href=b}catch(h){this._setException(h.name+":"+h.message)}},chkTextNum:function(a){var b=this.isUndefined(a.id)?a.id:"",d=this.isUndefined(a.size)?a.size:0,c=this.isUndefined(a.target)?a.target:"";a=this.isUndefined(a.msg)?a.msg:d+"\ubb38\uc790\uae4c\uc9c0\ub9cc \uc785\ub825\uac00\ub2a5 \ud569\ub2c8\ub2e4";
25var e=$("#"+b).val(),g=e.length;try{if(g>d)return alert(a),$("#"+b).val(e.substring(0,d)),!1;$("#"+c).html(g)}catch(h){this._setException(h.name+":"+h.message)}},chkTextByte:function(a){var b=this.isUndefined(a.id)?a.id:"",d=this.isUndefined(a.size)?a.size:0,c=this.isUndefined(a.target)?a.target:"";a=this.isUndefined(a.msg)?a.msg:d+"Byte\uae4c\uc9c0\ub9cc \uc785\ub825\uac00\ub2a5 \ud569\ub2c8\ub2e4";var e=$("#"+b).val(),g=e.length,h=0;try{for(var l=0;l<g;l++)if(h+=128<e.charCodeAt(l)?2:1,h>d)return alert(a),
26$("#"+b).val(e.substring(0,l)),!1;$("#"+c).html(h)}catch(k){this._setException(k.name+":"+k.message)}},chgEmail:function(a){var b=this.isUndefined(a.id)?a.id:"";a=this.isUndefined(a.target)?a.target:"";try{""!=$("#"+b).val()?($("#"+a).attr("readonly",!0),$("#"+a).val($("#"+b).val())):0<$("#"+b+" option").index($("#"+b+" option:selected"))&&""==$("#"+b).val()?($("#"+a).attr("readonly",!1),$("#"+a).val(""),$("#"+a).focus()):($("#"+a).val(""),$("#"+a).attr("readonly",!0))}catch(d){this._setException(d.name+
27":"+d.message)}},chkSpecial:function(a){var b=this.isUndefined(a.id)?a.id:"",d=$("#"+b).val(),c=this.isUndefined(a.msg1)?a.msg1:d+"\uc5d0\ub294 \ud5c8\uc6a9\ub41c \ud2b9\uc218\ubb38\uc790( - + ( )[ ] % & , . \u321c \u3214 ' / : \u00b7 )\n\n\uc678\uc5d0\ub294 \uc785\ub825 \ubd88\uac00\ud569\ub2c8\ub2e4.";a=this.isUndefined(a.msg2)?a.msg2:"\ub3d9\uc77c\ud55c \ud2b9\uc218\ubb38\uc790\ub97c 2\ud68c \uc774\uc0c1 \uc785\ub825\uc774 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\n"+d+"\uc744 \ub2e4\uc2dc \ud55c\ubc88 \ud655\uc778 \ud574 \uc8fc\uc138\uc694.";
28try{if(this.strRegNotSpecial.test(d))return alert(c),$("#"+b).val(d.replace(this.strRegNotSpecial,"")),!0;c=0;for(var e=this.strRegSpecialDouble.length;c<e;c++){var g=this.strRegSpecialDouble.substr(c,1);if(-1<d.indexOf(g+g))return alert(a),$("#"+b).val(d.replace(g+g,"")),!0}return!1}catch(h){this._setException(h.name+":"+h.message)}},chkInStr:function(a){var b=this.isUndefined(a.strchar)?a.strchar:"",d=this.isUndefined(a.sch)?a.sch:"";a=this.isUndefined(a.len)?a.len:"";var c,e=b.length;for(c=0;c<
29e;c++)if(d==b.substring(c,c+a))return!0;return!1},removeEmojis:function(a){var b=$("#"+a).val(),d=this.strRegEmojis;$("#"+a).val(b.replace(d,""));return!0}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.