1function step_addr(str1,str2,str3,str4){ 2 3 form = document.searchForm; 4 5 6 $.ajax({ 7 type: "POST", 8 url: "/news/addr_depth.php", 9 data: "name_str="+str1+"&value="+str3+"&value2="+str4, 10 cache: false, 11 12 success: function(html){ 13 14 $("#"+str1).remove(''); 15 $("#"+str2).append(html); 16 17 if (str1=="addr2") 18 { 19 $("#addr3").remove(''); 20 } 21 } 22 }); 23 24 } 25 26 27 28function step_addr_all(str1,str2,str3,str4,str5){ 29 30 form = document.searchForm; 31 32 33 34 35 $.ajax({ 36 type: "POST", 37 url: "/news/addr_depth.php", 38 data: "name_str="+str1+"&addr1_value="+str3+"&addr2_value="+str4+"&addr3_value="+str5+"&ch=all", 39 cache: false, 40 41 success: function(html){ 42 43 $("#"+str1).remove(''); 44 $("#"+str2).append(html); 45 46 if (str1=="addr2" && str5=="" ) 47 { 48 //step_addr_all('addr3','addr3_view','','',''); 49 } 50 } 51 }); 52 53 } 54 55 56 57 58 59 60 61function step_jik(str1,str2,str3,str4){ 62 63 form = document.searchForm; 64 65 $.ajax({ 66 type: "POST", 67 url: "/news/addr_depth.php", 68 data: "name_str="+str1+"&value="+str3+"&value2="+str4, 69 cache: false, 70 71 success: function(html){ 72 $("#"+str1).remove(''); 73 $("#"+str2).append(html); 74 75 76 77 } 78 }); 79 80 } 81 82 83function line_cl(){ 84 $('#a2').slideUp(300, function(){ 85 $('#a1').slideDown(300); 86 }); 87 88} 89 90 91 function heart_go(str){ 92 93 94 95 document.procForm.act.value="heart_act"; 96 document.procForm.id.value=str; 97 document.procForm.submit(); 98} 99 100function par_go(str){ 101 102 parent.location.href=str; 103 104} 105 106 107 108function self_go(str){ 109 alert('·Î±×ÀÎÀÌÈÄ À̺¥Æ® Âü¿©°¡ °¡´ÉÇÕ´Ï´Ù.') 110 location.href=str; 111 112} 113 114 115 116function view_graph(str1,str2,str3){ 117 118 119 var myElement = document.getElementById(str1); 120 121 if (myElement.style.display === 'none') { 122 myElement.style.display = "block" 123 $("."+str3).text(str2+" ¸í»ç ´Ý±â ¡ã"); 124 } else if (myElement.style.display === 'block') { 125 myElement.style.display = "none" 126 $("."+str3).text(str2+" ¸í»ç º¸±â ¡å"); 127 } 128 129 130} 131 132 133 134function inmul(){ 135 136 if (document.inmul_fm.keyw.value=='') 137 { 138 alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä'); 139 }else{ 140 document.inmul_fm.submit(); 141 } 142 143 144} 145 146function inmul2(){ 147 148 if (document.inmul_fm2.c_name.value=='') 149 { 150 alert('ȸ»ç¸íÀ» ÀÔ·ÂÇϼ¼¿ä'); 151 }else{ 152 document.inmul_fm2.submit(); 153 } 154 155 156} 157 158 159function inmul3(){ 160 161 if (document.inmul_fm3.keyw.value=='') 162 { 163 alert('Àι°¸íÀ» ÀÔ·ÂÇϼ¼¿ä'); 164 }else{ 165 document.inmul_fm3.submit(); 166 } 167 168 169} 170 171 172function inmul4(){ 173 174 if (document.inmul_fm4.keyw.value=='') 175 { 176 alert('°Ç¹°¸íÀ» ÀÔ·ÂÇϼ¼¿ä'); 177 }else{ 178 document.inmul_fm4.submit(); 179 } 180 181 182} 183 184 185function inmul5(){ 186 187 if (document.inmul_fm5.c_name.value=='') 188 { 189 alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇϼ¼¿ä'); 190 }else{ 191 document.inmul_fm5.submit(); 192 } 193 194 195} 196 197function checksort(str) { 198 199 if (str=='width1' || str=='width2') 200 { 201 202 const boxes = document.querySelectorAll('.ntype'); 203 let checked = []; 204 205 boxes.forEach(cb => { 206 if (cb.checked) checked.push(cb); 207 }); 208 209 // 0°³ ¼±Åà ½Ã 210 if (checked.length === 0) { 211 alert("ºÎµ¿»êÀ¯Çü Çϳª¸¸ ¼±ÅÃÇϼ¼¿ä."); 212 $("#sort option:eq(0)").prop("selected", true); 213 return false; 214 } 215 216 // 2°³ ÀÌ»óÀ̸é ù ¹øÂ°¸¸ ³²±â°í ÇØÁ¦ 217 if (checked.length > 1) { 218 alert("ºÎµ¿»êÀ¯Çü Çϳª¸¸ ¼±ÅÃÇϼ¼¿ä."); 219 $("#sort option:eq(0)").prop("selected", true); 220 return false; 221 } 222 223 document.searchForm.submit(); 224 }else{ 225 226 227 document.searchForm.submit(); 228 } 229 230 231 232} 233 234 235function beforeSubmit(){ 236 237 const sortVal = document.getElementById('sort').value; 238 const boxes = document.querySelectorAll('.ntype'); 239 240 // ¸éÀû Á¤·ÄÀÏ ¶§¸¸ üũ 241 if (sortVal === 'width1' || sortVal === 'width2') { 242 243 let cnt = 0; 244 245 boxes.forEach(cb=>{ 246 if(cb.checked) cnt++; 247 }); 248 249 // 1°³°¡ ¾Æ´Ï¸é Á¦Ãâ ¸·±â 250 if (cnt !== 1) { 251 alert("¸éÀû Á¤·ÄÀ» »ç¿ëÇÒ ¶§´Â ºÎµ¿»ê À¯ÇüÀ» 1°³¸¸ ¼±ÅÃÇØ¾ß ÇÕ´Ï´Ù."); 252 return false; // submit Áß´Ü 253 } 254 } 255 256 return true; // Åë°ú ¡æ submit 257 258} 259 260 261 262 263function beforeSubmit2(){ 264 265 const boxes = document.querySelectorAll('.rtype'); 266 267 // ¸éÀû Á¤·ÄÀÏ ¶§¸¸ üũ 268 269 let cnt = 0; 270
271 boxes.forEach(cb=>{ 272 if(cb.checked) cnt++; 273 }); 274 275 // 1°³°¡ ¾Æ´Ï¸é Á¦Ãâ ¸·±â 276 if (cnt === 0) { 277 alert("¼º°ø À¯Çü 1°³ ÀÌ»ó ¼±ÅÃÇØ¾ß ÇÕ´Ï´Ù."); 278 return false; // submit Áß´Ü 279 } 280 return true; // Åë°ú ¡æ submit 281 282} 283 284 285 286 287 288function chk_bu_code4_chk(){ 289 290 291 const boxes = document.querySelectorAll('.ntype'); 292 let cnt = 0; 293 294 boxes.forEach(cb=>{ 295 if(cb.checked) cnt++; 296 }); 297 298 // 1°³°¡ ¾Æ´Ï¸é Á¦Ãâ ¸·±â 299 if (cnt !== 1) { 300 301 alert("¸éÀû °Ë»ö½Ã¿¡´Â ºÎµ¿»ê À¯ÇüÀ» 1°³¸¸ ¼±ÅÃÇØ¾ßÇÕ´Ï´Ù."); 302 return false; // submit Áß´Ü 303 } 304 305 306 return true; // Åë°ú ¡æ submit 307 308} 309 310 311 312 313 314 315function beforeSubmit_all(){ 316 317 318 const sortVal = document.getElementById('sort').value; 319 const boxes = document.querySelectorAll('.ntype'); 320 321 document.searchForm.pung.value = ""; 322 323 // ¸éÀû Á¤·ÄÀÏ ¶§¸¸ üũ 324 if (sortVal === 'width1' || sortVal === 'width2') { 325 326 let cnt = 0; 327 328 boxes.forEach(cb=>{ 329 if(cb.checked) cnt++; 330 }); 331 332 // 1°³°¡ ¾Æ´Ï¸é Á¦Ãâ ¸·±â 333 if (cnt !== 1) { 334 alert("¸éÀû Á¤·ÄÀ» »ç¿ëÇÒ ¶§´Â ºÎµ¿»ê À¯ÇüÀ» 1°³¸¸ ¼±ÅÃÇØ¾ß ÇÕ´Ï´Ù."); 335 return false; // submit Áß´Ü 336 } 337 } 338 339 var idx0 = $('#bu_code4_type option:selected').index(); 340 ca0 = document.searchForm.bu_code4_type.value; 341 ca0 = document.searchForm.bu_code4_type.value; 342 ca1 = document.searchForm.bu_code4_p1.value; 343 ca2 = document.searchForm.bu_code4_1.value; 344 ca3 = document.searchForm.bu_code4_2.value; 345 346 if ( (sortVal === 'width1' || sortVal === 'width2') && (ca0==0 || idx0==1) ) { 347 alert("¸éÀû Á¤·ÄÀº ¼±ÅÃÇßÀ»¶§´Â ¸éÀûÁ¾·ù1°³¸¸ ¼±ÅÃÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù. "); 348 return false; // submit Áß´Ü 349 } 350 // ¸éÀû Á¤·ÄÀÏ ¶§¸¸ üũ 351 352 353 var sendData = $(document.searchForm).serialize(); 354 355 sendData += '&fan_form2=' + encodeURIComponent(sendData); 356 357 358 359 $.ajax({ 360 type : 'POST', 361 url : '/news/bu_search_session.php', 362 data : sendData, 363 dataType : 'html', 364 contentType : 'application/x-www-form-urlencoded; charset=EUC-KR', 365 beforeSend : function(xhr){ 366 if(xhr.overrideMimeType){ 367 xhr.overrideMimeType('text/html; charset=EUC-KR'); 368 } 369 }, 370 success : function(res){ 371 372 sessionStorage.setItem('fan_rank_result', res); 373 sessionStorage.setItem('fan_rank_loaded', 'Y'); 374 }, 375 error : function(xhr, status, error){ 376 alert(xhr.responseText); 377 } 378 }); 379 380 381 return true; // Åë°ú ¡æ submit 382 383} 384 385 386 387 388 389function beforeSubmit_all5(nStart){ 390 391 392 393 const boxes = document.querySelectorAll('.ntype'); 394 let cnt = 0; 395 396 boxes.forEach(cb=>{ 397 if(cb.checked) cnt++; 398 }); 399 400 const boxes2 = document.querySelectorAll('.rtype'); 401 let cnt2 = 0; 402 403 boxes2.forEach(cb2=>{ 404 if(cb2.checked) cnt2++; 405 }); 406 407 var f = document.searchForm; 408 409 410 411 412 413 if ( f.addr1.value=="" && cnt==0 && cnt2==0 && f.jik1.value=="" && f.tab_price.value==0 && f.bu_code5.value==0 && f.sosok.value=="" && f.his_text.value=="" && f.unis_text.value=="" && f.tab_price1.value=="" && f.tab_price2.value=="" && f.bu_code5_1.value=="" && f.bu_code5_2.value=="" && f.m_name.value=="" && f.bname.value=="" ){ 414 alert("°Ë»ö Á¶°ÇÀ» 1°³ ÀÌ»ó ¼±ÅÃÇϼžßÇÕ´Ï´Ù"); 415 return false; // submit Áß´Ü 416 }else if ( f.addr1.value=="" && cnt==0 && cnt2==0 && f.jik1.value=="" && f.tab_price.value==0 && f.bu_code5.value==0 && f.sosok.value=="" && f.his_text.value!="" && f.unis_text.value=="" ){ 417 418 if (his_b==0 && f.his_text.value!="") 419 { 420 alert("°íµîÇб³ °Ë»öÈÄ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."); 421 return false; // submit Áß´Ü 422 }else if (f.his.value==""){ 423 alert("°íµîÇб³ °Ë»öÈÄ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."); 424 return false; // submit Áß´Ü 425 } 426 427 }else if ( f.addr1.value=="" && cnt==0 && cnt2==0 && f.jik1.value=="" && f.tab_price.value==0 && f.bu_code5.value==0 && f.sosok.value=="" && f.his_text.value=="" && f.unis_text.value!="" ){ 428 429 if (unis_b==0 && f.unis_text.value!="") 430 { 431 alert("´ëÇб³ °Ë»öÈÄ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."); 432 return false; // submit Áß´Ü 433 }else if (f.unis.value==""){ 434 alert("´ëÇб³ °Ë»öÈÄ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."); 435 return false; // submit Áß´Ü 436 } 437 438 }else if ( f.addr1.value=="" && cnt==0 && cnt2==0 && f.jik1.value=="" && f.tab_price.value==0 && f.bu_code5.value==0 && f.sosok.value=="" && f.his_text.value!="" && f.unis_text.value!="" ){ 439
440 if (his_b==0 && unis_b==0 ){ 441 alert("°íµîÇб³, ´ëÇб³ ¼±Åà ÈÄ °Ë»öÇØ ÁÖ¼¼¿ä."); 442 return false; // submi 443 } 444 445 if (his_b==1 && f.his_text.value!="" && f.his.value=="" && unis_b==1 && f.unis_text.value!="" && f.unis.value=="" ){ 446 447 alert("°íµîÇб³, ´ëÇб³ ¼±Åà ÈÄ °Ë»öÇØ ÁÖ¼¼¿ä."); 448 return false; // submi 449 } 450 451 452 453 454 if (his_b==0 && f.his_text.value!="") 455 { 456 alert("°íµîÇб³ °Ë»öÈÄ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."); 457 return false; // submit Áß´Ü 458 }else if (f.his.value==""){ 459 alert("°íµîÇб³ °Ë»öÈÄ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."); 460 return false; // submit Áß´Ü 461 } 462 463 464 if (unis_b==0 && f.unis_text.value!="") 465 { 466 alert("´ëÇб³ °Ë»öÈÄ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."); 467 return false; // submit Áß´Ü 468 }else if (f.unis.value==""){ 469 alert("´ëÇб³ °Ë»öÈÄ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."); 470 return false; // submit Áß´Ü 471 } 472 473 474 } 475 476 477 f.nStart.value = nStart; 478 479 480 481 482 var sendData = $(document.searchForm).serialize(); 483 484 sendData += '&fan_form=' + encodeURIComponent(sendData); 485 486 487 488 $.ajax({ 489 type : 'POST', 490 url : '/news/bu_fan_rank_add.php', 491 data : sendData, 492 dataType : 'html', 493 contentType : 'application/x-www-form-urlencoded; charset=EUC-KR', 494 beforeSend : function(xhr){ 495 if(xhr.overrideMimeType){ 496 xhr.overrideMimeType('text/html; charset=EUC-KR'); 497 } 498 }, 499 success : function(res){ 500 $('#a2').html(res); 501 sessionStorage.setItem('fan_rank_result', res); 502 sessionStorage.setItem('fan_rank_loaded', 'Y'); 503 }, 504 error : function(xhr, status, error){ 505 alert(xhr.responseText); 506 } 507 }); 508 509 510 511 $('#a1').slideUp(300, function(){ 512 $('#a2').slideDown(300); 513 }); 514 515 516return false; 517 //openRankIframe() 518 // ¸éÀû Á¤·ÄÀÏ ¶§¸¸ üũ 519 //return true; // Åë°ú ¡æ submit 520 521} 522 523 524 525 526 527 528 529 530 531 532function beforeSubmit_all2(){ 533 534 535 536 ca0 = document.searchForm.bu_code4_type.value; 537 ca1 = document.searchForm.bu_code4_p1.value; 538 ca2 = document.searchForm.bu_code4_1.value; 539 ca3 = document.searchForm.bu_code4_2.value; 540 541 542 543 return true; // Åë°ú ¡æ submit 544 545} 546 547 548 549 550 551function go_pung(str){ 552 553 554 if (!chk_bu_code4_chk() ) { 555 this.checked = false; 556 return; 557 } 558 559 var checked = $('.ntype:checked'); 560 var name = checked.attr('name'); // ntype1, ntype2, ntype3, ntype4, ntype5 561 var keyw = document.searchForm.keyw.value; 562 563 var tab_price = document.searchForm.tab_price.value; 564 var tab_price1 = document.searchForm.tab_price1.value; 565 var tab_price2 = document.searchForm.tab_price2.value; 566 567 if (name=="ntype4") 568 { 569 alert('ÅäÁö´Â ¼±ÅÃÀÌ ºÒ°¡ÇÕ´Ï´Ù.'); 570 this.checked = false; 571 return; 572 } 573 574 if (keyw!="") 575 { 576 alert('°Ë»ö¶õÀ» Áö¿öÁֽʽÿÀ'); 577 this.checked = false; 578 return; 579 } 580 581 if (tab_price>0 || tab_price1 !="" || tab_price2 != "") 582 { 583 alert('Æò±Õ ½Ã¼¼¸¦ º¸·Á¸é ½Ã¼¼¸¦ °í¸£½Ã°Å³ª ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.'); 584 this.checked = false; 585 return; 586 } 587 document.searchForm.pung.value = "Y"; 588 589 590 document.searchForm.action=str; 591 document.searchForm.submit(); 592 593 594 595} 596 597 598function del(url) 599{ 600 if(confirm("Á¤¸»·Î »èÁ¦½ÃŰ°Ú½À´Ï±î?")) 601 location.replace(url); 602} 603 604 605function reset_search() { 606 var f = document.searchForm; 607 608 // üũ¹Ú½º ÀüºÎ ÇØÁ¦ 609 $(f).find('input[type="checkbox"]').prop('checked', false); 610 611 // ÅØ½ºÆ® ÀԷ°ª ÀüºÎ ºñ¿ì±â 612 $(f).find('input[type="text"]').val(''); 613 614 // ÁÖ¼Ò 615 $('select[name="addr1"]').val(''); 616 $('#addr2').html('<option value="">--Àüü--</option>'); 617 $('#addr3').html('<option value="">--Àüü--</option>'); 618 619 // Á÷¾÷ 620 $('select[name="jik"]').val(''); 621 $('#jik2').html('<option value="">--Àüü--</option>'); 622 623 // ½Ã¼¼ 624 $('#tab_price').val('0').show(); 625 $('#su_price').hide(); 626 $('input[name="tab_price1"]').val(''); 627 $('input[name="tab_price2"]').val(''); 628 629 // ¸ÅÀԳ⵵ 630 $('#bu_code5').val('0').show(); 631 $('#su_bu_code5').hide(); 632 $('input[name="bu_code5_1"]').val(''); 633 $('input[name="bu_code5_2"]').val(''); 634 635 // ¸éÀû 636 $('#bu_code4_type') 637 .empty() 638 .append('<option value="0">¸éÀûÁ¾·ù</option>') 639 .val('0'); 640 641 $('#bu_code4_p1') 642 .empty() 643 .append('<option value="0">--Àüü--</option>') 644 .val('0') 645 .show(); 646 647 $('#su_bu_code4').hide(); 648 649 $('input[name="bu_code4_1"]').val(''); 650 $('input[name="bu_code4_2"]').val(''); 651 652 // ÆòÇü ±âº» »óÅ 653 f.wi_type.value = '1'; 654 $('#wi_1').hide(); 655 $('#wi_2').css('display', 'inline-block'); 656 $('#areaUnit').text('m©÷'); 657 658 // Á¤·Ä select°¡ ÀÖ´Ù¸é ±âº»°ª 659 $(f).find('select[name="sort"]').prop('selectedIndex', 0); 660}
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.