PageSourceSearch

https://corp.alba.co.kr/rsc/js/CommonCtrl_min.js

js alba.co.kr collected 2026-10-02 15:17:53 UTC 11,134 bytes, 22 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.strRegKeyTel=/^\d{4}-\d{4}$/;this.strRegComReg=/^\d{3}-\d{2}-\d{5}$/;this.strRegJumin=/^\d{7}-\d{8}$/;this.strRegEmail=/^([0-9a-zA-Z_\-\.]+)@([0-9a-zA-Z_\-\.]+)\.([a-zA-Z]{2,4})$/;this.strRegNumeric=/[^0-9]/;this.strRegAlpha=/[^a-z]/i;this.strRegAlphaNumeric=/[^a-z0-9]/i;this.strRegHangulAlphaNumeric=/[^\uac00-\ud7a3a-z0-9]/i;this.strRegSpecial=/[!@\#$^*"<>=\u2605\u2663\u25a0\u260e\u2665\u25b6\u25c0\u25c6\u203b\u2606\u2605\u25cb\u25cf\u25ce\u25c7\u25c6\u25a1\u25a0\u25b3\u25b2\u25bd\u25bc\u2192\u2190\u2191\u2193\u2194\u3013\u25c1\u25c0\u25b7\u25b6\u2664\u2660\u2661\u2665\u2667\u2663\u2299\u25c8\u25a3\u25d0\u25d1\u2592\u25a4\u25a5\u25a8\u25a7\u25a6\u25a9\u2668\u260f\u260e\u261c\u261e\u00b6\u2021\u2195\u2197\u2199\u2196\u2198\u266d\u2669\u266a\u266c\u261e\u3266;]/gi;
2this.strRegSpecialDouble="-+()[]%&,.\u321c\u3214'/";this.strRegNumberComma=/(^[+-]?\d+)(\d{3})/};
3CommonCtrl.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:"",c="",d=this.strRegTel,e=this.strRegKeyTel,g=this.strRegComReg,f=this.strRegJumin,i=this.strRegEmail,h=this.strRegNumeric,l=this.strRegAlpha,n=this.strRegAlphaNumeric,j=this.strRegHangulAlphaNumeric,k=this.strRegSpecial,m=this.strRegSpecialDouble;try{return c={TEL:function(a){return d.test(a)?!0:e.test(a)?
4!0:!1},COMREG:function(a){return g.test(a)?!0:!1},JUMIN:function(a){return f.test(a)?!0:!1},EMAIL:function(a){return i.test(a)?!0:!1},NUMERIC:function(a){return h.test(a)?!1:!0},ALPHA:function(a){return l.test(a)?!1:!0},ALPHANUMERIC:function(a){return n.test(a)?!1:!0},HANGULALPHANUMERIC:function(a){return j.test(a)?!1:!0},SPECIAL:function(a){return k.test(a)?!1:!0},SPECIALDOUBLE:function(){for(var a,b=0,c=m.length;b<c;b++)if(a=m.substr(b,1),-1<strVal.indexOf(a+a))return!1;return!0}}[b],c(a)}catch(o){this._setException(o.name+
5":"+o.message)}},drawOption:function(a){var b=this.isUndefined(a.id)?a.id:"",c=this.isUndefined(a.empty)?a.empty:"N",d=this.isUndefined(a.group)?a.group:"",e=this.isUndefined(a.name)?a.name:"",g=this.isUndefined(a.key)?a.key:"NM",f=this.isUndefined(a.val)?a.val:"CD",i=this.isUndefined(a.selected)?a.selected:"",a=eval(d+"."+e),h="";try{$.each(a,function(a,b){h=i==b[f]?h+("<option value='"+b[f]+"' selected>"+b[g]+"</option>"):h+("<option value='"+b[f]+"'>"+b[g]+"</option>")}),"Y"==c?($("#"+b).empty(),
6$("#"+b).html(h)):$("#"+b).append(h)}catch(l){this._setException(l.name+":"+l.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:"",c=this.isUndefined(a.link)?a.link:"",a=this.isUndefined(a.msg)?a.msg:"\ud655\uc778\uc744 \ud074\ub9ad\ud558\uc2e0 \ud6c4 Ctrl + D\ub97c \ub20c\ub7ec\uc8fc\uc138\uc694.";try{if(document.all)window.external.AddFavorite(c,
7b);else if(window.sidebar&&window.sidebar.addPanel)window.sidebar.addPanel(b,c,"");else if(window.opera&&window.print){var d=document.createElement("a");d.setAttribute("href",c);d.setAttribute("title",b);d.setAttribute("rel","sidebar");d.click()}else alert(a)}catch(e){this._setException(e.name+":"+e.message)}},setCreateScript:function(a){a=this.isUndefined(a.link)?a.link:"";try{var b=document.createElement("script");b.type="text/javascript";b.charset="euc-kr";b.src=a;document.getElementsByTagName("head")[0].appendChild(b)}catch(c){this._setException(c.name+
8":"+c.message)}},_setException:function(a){$.get("/admin/error/error_ok.asp?e="+a,function(){})},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){var a=this.isUndefined(a.id)?a.id:"",b=[],c="";try{return $("input:checkbox[name="+a+"]:checked").each(function(){b.push(this.value)}),$.each(b,function(a,b){c+=""==c?b:
9","+b}),c}catch(d){this._setException(d.name+":"+d.message)}},getCheckboxCnt:function(a){var b=this.isUndefined(a.name)?a.name:"",c=this.isUndefined(a.cnt)?a.cnt:0,a=this.isUndefined(a.msg)?a.msg:"\ucd5c\ub300 "+c+"\uae4c\uc9c0 \uc120\ud0dd\uac00\ub2a5\ud569\ub2c8\ub2e4";try{$("input:checkbox[name="+b+"]:checked").length>c&&(alert(a),event.returnValue=!1)}catch(d){this._setException(d.name+":"+d.message)}},getLeftPixel:function(a){var b=this.isUndefined(a.pixel)?a.pixel:0,a=this.isUndefined(a.event)?
10a.event:"",c;try{return c=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(d){this._setException(d.name+":"+d.message)}},getTopPixel:function(a){var b=this.isUndefined(a.pixel)?a.pixel:0,a=this.isUndefined(a.event)?a.event:"",c;try{return c=document.all?document.documentElement.scrollTop+event.clientY+b:0<navigator.userAgent.indexOf("Chrome")?
11document.body.scrollTop+a.clientY+b+"px":document.documentElement.scrollTop+a.clientY+b+"px"}catch(d){this._setException(d.name+":"+d.message)}},formatNumber:function(a){a=this.isUndefined(a.num)?a.num:0;a=Number(a);for(a=""+a;this.strRegNumberComma.test(a);)a=a.replace(this.strRegNumberComma,"$1,$2");return a},openPopup:function(a){var b=this.isUndefined(a.position)?a.position:"LT",c=this.isUndefined(a.name)?a.name:"",d=this.isUndefined(a.link)?a.link:"",e=this.isUndefined(a.width)?a.width:0,g=this.isUndefined(a.height)?
12a.height:0,f=this.isUndefined(a.toolbar)?a.toolbar:"no",i=this.isUndefined(a.menubar)?a.menubar:"no",h=this.isUndefined(a.statusbar)?a.statusbar:"no",l=this.isUndefined(a.scrollbar)?a.scrollbar:"no",n=this.isUndefined(a.locationBar)?a.locationBar:"no",a=this.isUndefined(a.resizable)?a.resizable:"no",j=0,k=0;
12try{switch(b){case "LT":k=j=0;break;case "RT":j=0;k=screen.availWidth-e;break;case "RB":j=screen.availHeight-g;k=screen.availWidth-e;break;case "LB":j=screen.availHeight-g;k=0;break;case "CE":j=
13(screen.availHeight-g)/2,k=(screen.availWidth-e)/2}window.open(d,c,"top="+j+",left="+k+",width="+e+",height="+g+",toolbar="+f+",menubar="+i+",location="+n+",status="+h+",scrollbars="+l+",resizable="+a)}catch(m){this._setException(m.name+":"+m.message)}},openModeless:function(a){var b=this.isUndefined(a.link)?a.link:"",c=this.isUndefined(a.width)?a.width:0,d=this.isUndefined(a.height)?a.height:0,e=this.isUndefined(a.center)?a.center:"yes",g=this.isUndefined(a.help)?a.help:"no",f=this.isUndefined(a.resizable)?
14a.resizable:"no",i=this.isUndefined(a.status)?a.status:"no",a=this.isUndefined(a.scroll)?a.scroll:0;try{window.showModalDialog(b,window,"dialogWidth:"+c+"px; dialogHeight:"+d+"px;center:"+e+";help:"+g+";resizable:"+f+";status:"+i+";scroll:"+a+";")}catch(h){this._setException(h.name+":"+h.message)}},chkValidator:function(a){var b=this.isUndefined(a.type)?a.type.toUpperCase():"",a=this.isUndefined(a.id)?a.id:"",c="";try{return c={TEXT:function(a){return""==$.trim($("#"+a).val())?!1:!0},RADIO:function(a){return 0==
15$("input:radio[name="+a+"]:checked").length?!1:!0},CHECKBOX:function(a){return 0==$("input:checkbox[name="+a+"]:checked").length?!1:!0},SELECTBOX:function(a){return""==$("#"+a+" option:selected").val()?!1:!0}}[b],c(a)}catch(d){this._setException(d.name+":"+d.message)}},chkNumeric:function(){try{return 48>event.keyCode||57<event.keyCode?event.returnValue=!1:!0}catch(a){this._setException(a.name+":"+a.message)}},moEvent:function(a){var b=this.isUndefined(a.id)?a.id:"",a=this.isUndefined(a.layer)?a.layer:
16"",c=eval("window."+b),d=-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")?(c.style.pixelLeft=d.scrollLeft+event.x-1,c.style.pixelTop=d.scrollTop+event.y-1,$("#"+b).css("visibility","visible")):$("#"+b).css("visibility","hidden")},goUrl:function(a){var b=this.isUndefined(a.confirm)?a.confirm:"N",c=this.isUndefined(a.ment)?
17a.ment:"",d=this.isUndefined(a.link)?a.link:"",e=this.isUndefined(a.submit)?a.submit:"N",g=this.isUndefined(a.id)?a.id:"",f=this.isUndefined(a.method)?a.method:"get",i=this.isUndefined(a.iframe)?a.iframe:"N",a=this.isUndefined(a.target)?a.target:"_self";try{if("Y"==b)if(confirm(c))this._goSubmitOrHref(i,d,e,g,f,a);else return!1;else this._goSubmitOrHref(i,d,e,g,f,a)}catch(h){this._setException(h.name+":"+h.message)}},_goSubmitOrHref:function(a,b,c,d,e,g){try{"Y"==a?"Y"==c?($("#"+d).attr("target",
18"ifrm"),$("#"+d).attr("method",e),$("#"+d).attr("action",b),$("#"+d).submit()):ifrm.location.href=b:"Y"==c?($("#"+d).attr("target",g),$("#"+d).attr("method",e),$("#"+d).attr("action",b),$("#"+d).submit()):document.location.href=b}catch(f){this._setException(f.name+":"+f.message)}},chkTextNum:function(a){var b=this.isUndefined(a.id)?a.id:"",c=this.isUndefined(a.size)?a.size:0,d=this.isUndefined(a.target)?a.target:"",a=this.isUndefined(a.msg)?a.msg:c+"\ubb38\uc790\uae4c\uc9c0\ub9cc \uc785\ub825\uac00\ub2a5 \ud569\ub2c8\ub2e4",
19e=$("#"+b).val(),g=e.length;try{if(g>c)return alert(a),$("#"+b).val(e.substring(0,c)),!1;$("#"+d).html(g)}catch(f){this._setException(f.name+":"+f.message)}},chkTextByte:function(a){var b=this.isUndefined(a.id)?a.id:"",c=this.isUndefined(a.size)?a.size:0,d=this.isUndefined(a.target)?a.target:"",a=this.isUndefined(a.msg)?a.msg:c+"Byte\uae4c\uc9c0\ub9cc \uc785\ub825\uac00\ub2a5 \ud569\ub2c8\ub2e4",e=$("#"+b).val(),g=e.length,f=0;try{for(var i=0;i<g;i++)if(f+=128<e.charCodeAt(i)?2:1,f>c)return alert(a),
20$("#"+b).val(e.substring(0,i)),!1;$("#"+d).html(f)}catch(h){this._setException(h.name+":"+h.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(c){this._setException(c.name+
21":"+c.message)}},chkSpecial:function(a){var b=this.isUndefined(a.id)?a.id:"",c=$("#"+b).val(),d=this.isUndefined(a.msg1)?a.msg1:c+"\uc5d0\ub294 \ud5c8\uc6a9\ub41c \ud2b9\uc218\ubb38\uc790( - + ( )[ ] % & , . \u321c \u3214 ' / )\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"+c+"\uc744 \ub2e4\uc2dc \ud55c\ubc88 \ud655\uc778 \ud574 \uc8fc\uc138\uc694.";
22try{if(this.strRegSpecial.test(c))return alert(d),$("#"+b).val(c.replace(this.strRegSpecial,"")),!0;for(var e,d=0,g=this.strRegSpecialDouble.length;d<g;d++)if(e=this.strRegSpecialDouble.substr(d,1),-1<c.indexOf(e+e))return alert(a),$("#"+b).val(c.replace(e+e,"")),!0;return!1}catch(f){this._setException(f.name+":"+f.message)}}};

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.