1try 2{ 3 document.execCommand("BackgroundImageCache", false, true); 4} catch(err) {} 5//íë²ë§ ì¤í 6if (typeof(COMMON_JS) == 'undefined') 7{ 8 var COMMON_JS = true; 9 10 // ë¡ê·¸ì¸ ì²´í¬ 11 function loginCheckMain() 12 { 13 set_cookie( 'sbsInfoLayer', '', 1, '' ); //sbs ìë´ ë ì´ì´ ì¿ í¤ ì´ê¸°í 14 15 $('#mainLoginForm').attr('method','POST'); 16 $('#mainLoginForm').attr('action','/member/loginCheck.php'); 17 $('#mainLoginForm').attr('target','hiddenAction'); 18 19 $('#mainLoginForm').submit(); 20 } 21 22 function fnLogon(f) 23 { 24 NC = new NullCheck(f); 25 if(NC.prepare(f)==true) 26 { 27 var data = $('form[name=fmLogin]').serialize(); 28 29 $.ajax({ 30 type : 'POST', 31 url : '/member/login1.php', 32 data :$('form[name='+f.name+']').serialize() , 33 success: function( msg ){ 34 switch(msg) 35 { 36 case '1': 37 document.location.replace('/store/list.php'); 38 break; 39 40 case '2': 41 alert('ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤.'); 42 f.m_pwd.value = ''; 43 f.m_pwd.focus(); 44 break; 45 46 default: 47 alert('ìì´ëê° ì¡´ì¬íì§ ììµëë¤.'); 48 f.m_id.value = f.M_user_pw.value = ''; 49 f.m_id.focus(); 50 break; 51 } 52 } 53 }); 54 } 55 return false; 56 } 57 58 function trim(s) 59 { 60 var t = ""; 61 var from_pos = to_pos = 0; 62 63 for (i=0; i<s.length; i++) 64 { 65 if (s.charAt(i) == ' ') 66 continue; 67 else 68 { 69 from_pos = i; 70 break; 71 } 72 } 73 74 for (i=s.length; i>=0; i--) 75 { 76 if (s.charAt(i-1) == ' ') 77 continue; 78 else 79 { 80 to_pos = i; 81 break; 82 } 83 } 84 85 t = s.substring(from_pos, to_pos); 86 return t; 87 } 88 89 function number_format(data) 90 { 91 var tmp = ''; 92 var number = ''; 93 var cutlen = 3; 94 var comma = ','; 95 var i; 96 97 len = data.length; 98 mod = (len % cutlen); 99 k = cutlen - mod; 100 for (i=0; i<data.length; i++) 101 { 102 number = number + data.charAt(i); 103 104 if (i < data.length - 1) 105 { 106 k++; 107 if ((k % cutlen) == 0) 108 { 109 number = number + comma; 110 k = 0; 111 } 112 } 113 } 114 115 return number; 116 } 117 118 // ì¿ í¤ ì ë ¥ 119 function set_cookie(name, value, expirehours, domain) 120 { 121 var today = new Date(); 122 if (expirehours === "/") { 123 document.cookie = name + "=" + escape( value ) + "; path=/; expires=/;"; 124 } else { 125 today.setTime(today.getTime() + (60*60*1000*expirehours)); 126 document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";"; 127 } 128 129 if (domain) { 130 document.cookie += "domain=" + domain + ";"; 131 } 132 } 133 134 // ì¿ í¤ ì»ì 135 function get_cookie(name) 136 { 137 var find_sw = false; 138 var start, end; 139 var i = 0; 140 141 for (i=0; i<= document.cookie.length; i++) 142 { 143 start = i; 144 end = start + name.length; 145 146 if(document.cookie.substring(start, end) == name) 147 { 148 find_sw = true 149 break 150 } 151 } 152 153 if (find_sw == true) 154 { 155 start = end + 1; 156 end = document.cookie.indexOf(";", start); 157 158 if(end < start) 159 end = document.cookie.length; 160 161 return document.cookie.substring(start, end); 162 } 163 return ""; 164 } 165 166 // ì¿ í¤ ì§ì 167 function delete_cookie(name) 168 { 169 var today = new Date(); 170 171 today.setTime(today.getTime() - 1); 172 var value = get_cookie(name); 173 if(value != "") 174 document.cookie = name + "=" + value + "; path=/; expires=" + today.toGMTString(); 175 } 176 177 // ì´ë¯¸ì§ì í¬ê¸°ì ë°ë¼ ìì°½ì í¬ê¸°ê° ë³ê²½ë©ëë¤. 178 // zzzzëê»ì ìë ¤ì£¼ì ¨ìµëë¤. 2005/04/12 179 function image_window(img) 180 { 181 var w = img.tmp_width; 182 var h = img.tmp_height; 183 var winl = (screen.width-w)/2; 184 var wint = (screen.height-h)/3; 185 186 if (w >= screen.width) { 187 winl = 0; 188 h = (parseInt)(w * (h / w)); 189 } 190 191 if (h >= screen.height) { 192 wint = 0; 193 w = (parseInt)(h * (w / h)); 194 } 195 196 var js_url = "<script language='JavaScript1.2'> \n"; 197 js_url += "<!-- \n"; 198 js_url += "var ie=document.all; \n"; 199 js_url += "var nn6=document.getElementById&&!document.all; \n"; 200 js_url += "var isdrag=false;
200 \n"; 201 js_url += "var x,y; \n"; 202 js_url += "var dobj; \n"; 203 js_url += "function movemouse(e) \n"; 204 js_url += "{ \n"; 205 js_url += " if (isdrag) \n"; 206 js_url += " { \n"; 207 js_url += " dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x; \n"; 208 js_url += " dobj.style.top = nn6 ? ty + e.clientY - y : ty + event.clientY - y; \n"; 209 js_url += " return false; \n"; 210 js_url += " } \n"; 211 js_url += "} \n"; 212 js_url += "function selectmouse(e) \n"; 213 js_url += "{ \n"; 214 js_url += " var fobj = nn6 ? e.target : event.srcElement; \n"; 215 js_url += " var topelement = nn6 ? 'HTML' : 'BODY'; \n"; 216 js_url += " while (fobj.tagName != topelement && fobj.className != 'dragme') \n"; 217 js_url += " { \n"; 218 js_url += " fobj = nn6 ? fobj.parentNode : fobj.parentElement; \n"; 219 js_url += " } \n"; 220 js_url += " if (fobj.className=='dragme') \n"; 221 js_url += " { \n"; 222 js_url += " isdrag = true; \n"; 223 js_url += " dobj = fobj; \n"; 224 js_url += " tx = parseInt(dobj.style.left+0); \n"; 225 js_url += " ty = parseInt(dobj.style.top+0); \n"; 226 js_url += " x = nn6 ? e.clientX : event.clientX; \n"; 227 js_url += " y = nn6 ? e.clientY : event.clientY; \n"; 228 js_url += " document.onmousemove=movemouse; \n"; 229 js_url += " return false; \n"; 230 js_url += " } \n"; 231 js_url += "} \n"; 232 js_url += "document.onmousedown=selectmouse; \n"; 233 js_url += "document.onmouseup=new Function('isdrag=false'); \n"; 234 js_url += "//--> \n"; 235 js_url += "</"+"script> \n"; 236 237 var settings; 238 239 settings ='width='+w+','; 240 settings +='height='+h+','; 241 settings +='top='+wint+','; 242 settings +='left='+winl+','; 243 settings +='scrollbars=no,'; 244 settings +='resizable=yes,'; 245 settings +='status=no'; 246 247 248 win=window.open("","image_window",settings); 249 win.document.open(); 250 win.document.write ("<html><head> \n<meta http-equiv='imagetoolbar' CONTENT='no'> \n<meta http-equiv='content-type' content='text/html; charset=utf-8'>\n"); 251 var size = "ì´ë¯¸ì§ ì¬ì´ì¦ : "+w+" x "+h; 252 win.document.write ("<title>"+size+"</title> \n"); 253 if(w >= screen.width || h >= screen.height) { 254 win.document.write (js_url); 255 var click = "ondblclick='window.close();' style='cursor:move'"; 256 } 257 else 258 var click = "onclick='window.close();' style='cursor:pointer'"; 259 win.document.write ("<style>.dragme{position:relative;}</style> \n"); 260 win.document.write ("</head> \n\n"); 261 win.document.write ("<body leftmargin=0 topmargin=0 bgcolor=#dddddd style='cursor:arrow;'> \n"); 262 win.document.write ("<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center valign=middle><img src='"+img.src+"' width='"+w+"' height='"+h+"' border=0 class='dragme' "+click+"></td></tr></table>"); 263 win.document.write ("</body></html>"); 264 win.document.close(); 265 266 if(parseInt(navigator.appVersion) >= 4){win.window.focus();} 267 } 268 269 function win_open(url, name, option) 270 { 271 var arr_str = option.split(","); 272 var arr_len = arr_str.length; 273 var arr_opt=""; 274 var new_opt=""; 275 var x = 500; 276 var y = 400; 277 var key; 278 var val; 279 for( var i=0; i < arr_len; i++) 280 { 281 arr_opt = arr_str[i].split("="); 282 key = trim(arr_opt[0].toLowerCase()); 283 if ( key == 'left' || key == 'top') continue; 284 if ( key == 'width' ) x = parseInt(arr_opt[1]); 285 if ( key == 'height') y = parseInt(arr_opt[1]); 286 new_opt += "," + arr_str[i]; 287 } 288 var _left = (screen.width/2)-(x/2); 289 var __top = (screen.height/2)-(y/2); 290 if(_left < 0) _left = 0; 291 if(__top < 0) __top = 0; 292 var popup = window.open(url, name, "top="+__top+",left="+_left+new_opt); 293 popup.focus(); 294 } 295 296 var last_id = null; 297 function menu(id) 298 { 299 if (id != last_id) 300 { 301 if (last_id != null) 302 document.getElementById(last_id).style.display = "none"; 303 document.getElementById(id).style.display = "block"; 304 last_id = id; 305 } 306 else 307 { 308 document.getElementById(id).style.display = "none"; 309 last_id = null; 310 } 311 } 312 313 function textarea_decrease(id, row) 314 { 315 if (document.getElementById(id).rows - row > 0) 316 document.getElementById(id).rows -= row; 317 } 318 319 function textarea_original(id, row) 320 { 321 document.getElementById(id).rows = row; 322 } 323 324 function textarea_increase(id, row) 325 { 326 document.getElementById(id).rows += row; 327 } 328 329 // ê¸ì«ì ê²ì¬ 330 function check_byte(content, target) 331 { 332 var i = 0; 333 var cnt = 0; 334 var ch = ''; 335 var cont = document.getElementById(content).value; 336 337 for (i=0; i<cont.length; i++) { 338 ch = cont.charAt(i); 339 if (escape(ch).length > 4) { 340 cnt += 2; 341 } else { 342 cnt += 1; 343 } 344 } 345 // ì«ì를 ì¶ë ¥ 346 document.getElementById(target).innerHTML = cnt; 347 348 return cnt; 349 } 350 351 function flash_movie(src, ids, width, height, wmode) 352 { 353 var wh = ""; 354 if (parseInt(width) && parseInt(height)) 355 wh = " width='"+width+"' height='"+height+"' "; 356 return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/s
356hockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>"; 357 } 358 359 function obj_movie(src, ids, width, height, autostart) 360 { 361 var wh = ""; 362 if (parseInt(width) && parseInt(height)) 363 wh = " width='"+width+"' height='"+height+"' "; 364 if (!autostart) autostart = false; 365 return "<embed src='"+src+"' "+wh+" autostart='"+autostart+"'></embed>"; 366 } 367 368 function doc_write(cont) 369 { 370 document.write(cont); 371 } 372 373 var Category_frame_Open_check=0; 374 function categorie_controller(){ 375 var categorie_view_iframe = document.getElementById("categorie_view_iframe"); 376 if (categorie_view_iframe.style.display == "none") { 377 if(!Category_frame_Open_check){ 378 window.open("/categorie_view.html","Applefile_Category_list"); 379 Category_frame_Open_check=1; 380 } 381 categorie_view_iframe.style.display = "block"; 382 } 383 else { 384 categorie_view_iframe.style.display = "none"; 385 } 386 } 387 388 // ê²½ê³ ë¬¸ì 389 function fnLoginFalse( nThis ) 390 { 391 try 392 { 393 var vcLoation = top.location.href; 394 alert("ë¬´ë£ íì ê°ì í ì´ì©í´ 주ì¸ì."); 395 } 396 catch(e) 397 { 398 alert("ì¤ëª ì¸ì¦ í ì´ì© ê°ë¥í©ëë¤."); 399 nThis.href = '#'; 400 } 401 } 402 403 // caller ë¡ê·¸ì¸ë ì´ì´ ëì°ëê³³:main(ë©ì¸ì¢ìë¨), view(ë·°ì°½ë ì´ì´), page(íì´ì§ë ì´ì´) 404 // location : replace, reload 405 // href : url 406 function showLoginLayer(objOption) 407 { 408 // @popuplogin_20210730 409 /* 410 if (objOption.caller == 'page') { 411 loginPop(); 412 return false; 413 } 414 */ 415 if(objOption.caller == '' || objOption.caller == 'undefined') objOption.caller = 'page'; 416 if(objOption.location == '' || objOption.location == 'undefined') objOption.location = 'replace'; 417 if(objOption.href == '' || objOption.href == 'undefined') objOption.href = ''; 418 $(document).scrollTop(0); 419 SLB('/member/login_layer.php?caller='+objOption.caller+'&location='+objOption.location+'&href='+encodeURIComponent(objOption.href),'iframe', 650, 680, true, false); 420 return false; 421 } 422 423 // @_registModal4sec 424 function showRegistLayer(objOption) 425 { 426 if(objOption.caller == '' || objOption.caller == 'undefined') objOption.caller = 'page'; 427 if(objOption.location == '' || objOption.location == 'undefined') objOption.location = 'replace'; 428 if(objOption.href == '' || objOption.href == 'undefined') objOption.href = ''; 429 $(document).scrollTop(0); 430 SLB('/member/regist_layer.php?caller='+objOption.caller+'&location='+objOption.location+'&href='+encodeURIComponent(objOption.href),'iframe', 650, 680, true, false); 431 return false; 432 } 433} 434// security 435//temp_cook('S@A@F@E@L@T@ @+','1','24',''); 436function temp_cook(name, value, expirehours, domain) 437{ 438 name = name.replace(/@/g,""); 439 var today = new Date(); 440 today.setTime(today.getTime() + (60*60*1000*expirehours)); 441 document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";"; 442 if (domain){ 443 document.cookie += "domain=" + domain + ";"; 444 } 445} 446 447/** 448 * @msshin_20220208 449 * ë°°ë í´ë¦ì í´ë¦ì ì¦ê° 450 */ 451function setBannerClickCnt(idx) { 452 var bannerIdx = idx; // ë°°ë idx ê° 453 if(bannerIdx != ""){ 454 $.ajax({ 455 type : "POST", 456 url : "/banner_click.php", 457 data : "idx=" + bannerIdx, 458 cache : false, 459 success : function(obj){ 460 return true; 461 }, 462 error : function(obj){ 463 return true; 464 } 465 }); 466 } 467} 468 469// ë¹ë°ë²í¸ ì í¨ì±ì²´í¬ - cyh(2022-10-24) 470function pass_check(sVar){ 471 var num = sVar.search(/[0-9]/g); 472 var eng = sVar.search(/[a-zAz]/ig); 473 var spe = sVar.search(/[!@#$%^&*()/?]/gi); 474 var checkPw = ""; 475 if((num < 0 && eng < 0) || (eng < 0 && spe < 0) || (spe < 0 && num < 0)){ 476 checkPw = "N"; 477 }else{ 478 checkPw = "Y"; 479 } 480 481 var checkNoChar = sVar.search(/[-_=+~`<>?,./:\";â\[\]{}+\|/?]/gi); // í¹ì문ì ì¡´ì¬ì¬ë¶ 482 var checkCount = 0; 483 if(sVar.length < 8 || sVar.length > 15){ 484 checkCount = -1; 485 } 486 487 var rst = ""; // ê²°ê³¼ê°(msg) 488 if(checkNoChar > -1 && checkCount < 0 && checkPw == "N"){ 489 rst = "ì문, ì«ì, í¹ì문ì(- _ = + ~ ` < > ? , . / : ï¼ ; â [ ] { } + \ | ì ì¸) ì¤ 2ê°ì§ ì´ìì ì¡°í©íì¬ 8ì~16ì 미ë§"; 490 } 491 else if(checkNoChar > -1 && checkCount < 0 && checkPw == "Y"){ 492 rst = "- _ = + ~ ` < > ? , . / : ï¼ ; â [ ] { } + \ | 문ì를 ì ì¸í 8ì~16ì 미ë§ì¼ë¡ ì¤ì í´ ì£¼ì¸ì."; 493 } 494 else if(checkNoChar > -1 && checkCount == 0 && checkPw == "N"){ 495 rst = "ì문, ì«ì, í¹ì문ì(- _ = + ~ ` < > ? , . / : ï¼ ; â [ ] { } + \ | ì ì¸) ì¤ 2ê°ì§ ì´ìì ì¡°í©í´ 주ì¸ì."; 496 } 497 else if(checkNoChar < 0 && checkCount < 0 && checkPw == "N"){ 498 rst = "ì문, ì«ì, í¹ì문ì(- _ = + ~ ` < > ? , . / : ï¼ ; â [ ] { } + \ | ì ì¸) ì¤ 2ê°ì§ ì´ìì ì¡°í©íì¬ 8ì~16ì 미ë§."; 499 } 500 else if(checkNoChar > -1 && checkCount == 0 && checkPw == "Y"){ 501 rst = 'ì¬ì©ë¶ê° í¹ì문ì : - _ = + ~ ` < > ? , . / : ï¼ ; â [ ] { } + \ | '; 502 } 503 else if(checkNoChar < 0 && checkCount < 0 && checkPw == "Y"){ 504 rst = "ë¹ë°ë²í¸ë¥¼ 8ì~16ì 미ë§ì¼ë¡ ì¤ì í´ ì£¼ì¸ì."; 505 } 506 else if(checkNoChar < 0 && checkCount == 0 && checkPw == "N"){ 507 rst = "ì문, ì«ì, í¹ì문ì(- _ = + ~ ` < > ? , . / : ï¼ ; â [ ] { } + \ | ì ì¸) ì¤ 2ê°ì§ ì´ìì ì¡°í©í´ 주ì¸ì."; 508 } 509 return rst; 510}
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.