<%@ include file="/sys/include/doctype.jsp" %> <%@ page contentType="text/html; charset=euc-kr"%> <html> <head> <title>▶ERP System◀</title>
<%@include file="/sys/include/head.jsp"%> <%@include file="/sys/include/gauce.jsp"%>
<style type="text/css"> .ZiptopSchbox { padding:8px 0 0 7px; background:#f8f8f8; border:2px solid #eaeaea; margin:2px 0 0 0; } .ZiptopSchbox strong { padding-left:15px; letter-spacing:-1px; background:url(/images/al/icon_circle.gif) no-repeat 0 2px; color:#151515; } .ZiptopSchbox_sel { padding:7px 7px 5px 17px; background:#f8f8f8; border:2px solid #eaeaea; } .ZiptopSchbox_sel strong { letter-spacing:-1px; color:#151515; } .ZiptopSchbox_sel input{margin:0 2px 2px 0;padding:0;} .dlline { clear:both; } .dlline dt { float:left; padding:3px 5px 10px 0; } .dlline dd { float:left; padding:0 15px 0 0; } dd { margin: 0; padding: 8px; } ul, dl, ol, dt, p { margin: 0; padding: 0; } li { list-style-type: none; } select, input, textarea { font-size: 100%; vertical-align: middle; font-family: "돋움", "돋움체", arial, serif, sans-serif; } .search_infoma{clear:both;} .search_infoma li{padding:0 0 10px 15px;background:url(/images/al/icon_circle.gif) no-repeat left 2px; color:dimgray;} .search_infoma li strong{padding:0;background:none; color:dimgray;} </style>
<!----------------------------------------------------------------------------- J A V A S C R I P T D E C L A R A T I O N ------------------------------------------------------------------------------> <script language="javascript">
//------------------------------------------------------------------------- // 윈도우의 모든 컴퍼넌트가 loading 된 후 작동함 // sampleTab 의 경우는 반드시 window::onLoad() 에 정의해야 한다
//------------------------------------------------------------------------- function window::onLoad() { f_OnLoad(); } //------------------------------------------------------------------------- var initChk =false; function f_OnLoad() { sampleTab.autotab.selectTab(2); window.moveTo(20,10); window.resizeTo(395,450); // 신주소검색 대응 initChk = true; jsGetCode(''); document.getElementById("f").txt_keyword2.focus(); }
function f_Retrieve(type) { //------------------------------------------------------------------------- // (구)주소 데이터를 검색 //------------------------------------------------------------------------- if (type == 1) { obj_keyword = eval("txt_keyword" + type); if( obj_keyword.value.length == 0 ) { cfAlertMsg('<sf:easymessage>ssy.warn.com.input;읍/면/동/건물명</sf:easymessage>'); obj_keyword.focus(); return; } var condition = "?keyword="+obj_keyword.value; ds_zipCd.DataId='/al.com.srch.retrieveZipCdList.gau' + condition; ds_zipCd.reset(); //------------------------------------------------------------------------- // (신)주소 데이터를 검색 //------------------------------------------------------------------------- } else if (type == 2) { var objF = document.getElementById("f"); if (objF.sido.value == "서울") objF.sido_h.value = '서울특별시'; else if (objF.sido.value == "부산") objF.sido_h.value = '부산광역시'; else if (objF.sido.value == "대구") objF.sido_h.value = '대구광역시'; else if (objF.sido.value == "인천") objF.sido_h.value = '인천광역시'; else if (objF.sido.value == "광주") objF.sido_h.value = '광주광역시'; else if (objF.sido.value == "대전") objF.sido_h.value = '대전광역시'; else if (objF.sido.value == "울산") objF.sido_h.value = '울산광역시'; else if (objF.sido.value == "세종") objF.sido_h.value = '세종특별자치시'; else if (objF.sido.value == "강원") objF.sido_h.value = '강원도'; else if (objF.sido.value == "경기") objF.sido_h.value = '경기도'; else if (objF.sido.value == "경남") objF.sido_h.value = '경상남도'; else if (objF.sido.value == "경북") objF.sido_h.value = '경상북도'; else if (objF.sido.value == "전남") objF.sido_h.value = '전라남도'; else if (objF.sido.value == "전북") objF.sido_h.value = '전라북도'; else if (objF.sido.value == "제주") objF.sido_h.value = '제주특별자치도'; else if (objF.sido.value == "충남") objF.sido_h.value = '충청남도'; else if (objF.sido.value == "충북") objF.sido_h.value = '충청북도'; var condition = "?keyword=" + objF.txt_keyword2.value + "&sido=" + objF.sido_h.value + "&sigugun=" + objF.sigungu.value + "&key=" + objF.key.value + "&roadNm=" + objF.roadNm.value // 도로명 + "&udrgrndYn=" + objF.udrgrndYn.value // 지하:1, 공중:2 + "&dongNm=" + objF.dongNm.value // 동이름 + "&bldgMainNo=" + objF.bldgMainNo.value // 건물번호 앞자리 + "&bldgSubNo=" + objF.bldgSubNo.value // 건물번호 뒷자리 + "&lndnMainNo=" + objF.lndnMainNo.value // 번지 앞자리 + "&lndnSubNo=" + objF.lndnSubNo.value // 번지 뒷자리 + "&poboxNm=" + objF.poboxNm.value // 사서함명 + "&poboxMainNo=" + objF.poboxMainNo.value // 사서함 주번 + "&poboxSubNo=" + objF.poboxSubNo.value; // 사서함 부번 /* alert( "?keyword=" + objF.txt_keyword2.value + "\n" + "&sido=" + objF.sido.value + "\n" + "&sigugun=" + objF.sigungu.value + "\n" + "&key=" + objF.key.value + "\n" + "&roadNm=" + objF.roadNm.value + "\n" + "&udrgrndYn=" + objF.udrgrndYn.value + "\n" + "&dongNm=" + objF.dongNm.value + "\n" + "&bldgMainNo=" + objF.bldgMainNo.value + "\n" + "&bldgSubNo=" + objF.bldgSubNo.value + "\n" + "&lndnMainNo=" + objF.lndnMainNo.value + "\n" + "&lndnSubNo=" + objF.lndnSubNo.value + "\n" + "&poboxNm=" + objF.poboxNm.value + "\n" + "&poboxMainNo=" + objF.poboxMainNo.value + "\n" + "&poboxSubNo=" + objF.poboxSubNo.value ); */ ds_newZipCd.DataId='/al.com.srch.retrieveNewZipCdList.gau' + condition; ds_newZipCd.reset(); } } //------------------------------------------------------------------------- // Key Press 이벤트 처리 : Enter Key Event시 조회한다. //------------------------------------------------------------------------- function f_KeyPress(type) { //Enter Key Event시에만 조회 함수 호출 if(window.event != null && window.event.keyCode != 13 && window.event.Type != "click") return;
//enter key 쳤을 경우에는 focus만 edit box로 이동 eval("txt_keyword" + type).focus(); f_Retrieve(type); } function EscKeyDown() { parent.cfClosePopup(); } //------------------------------------------------------------------------- // 탭 이벤트 CHANGE EVENT 시 포커스 설정 //------------------------------------------------------------------------- var gTabIndex = 1; var previousTabIdx; function atf_Onclick(tabIndex) { previousTabIdx = gTabIndex; gTabIndex = tabIndex + 1; tabIndexConStat = tabIndex + 1; switch(tabIndexConStat) { case 1 : document.getElementById("f").txt_keyword2.focus(); break; case 2 : txt_keyword1.focus(); break; } } //------------------------------------------------------------------------- // 신 우편번호 검색관련 JavaScript //------------------------------------------------------------------------- //<![CDATA[ //검색탭 이미지 토글 function togSearchTab(n, e) { var objImg = document.getElementById("Stab" + n);
if (e.type == "mouseover" || e.type == "focus") { objImg.src = objImg.src.replace("off.gif", "on.gif"); } else if (e.type == "mouseout" || e.type == "blur") { objImg.src = objImg.src.replace("on.gif", "off.gif"); } }
function IsNumeric(sText) { var ValidChars = "0123456789"; var IsNumber = true; var Char;
for (i = 0; i < sText.length && IsNumber == true; i++) { Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1) { IsNumber = false; } } return IsNumber; }
function IsRoad(sText) { var ValidChars = "개길도로리"; var IsRoad = true;
if (ValidChars.indexOf(sText) == -1) { IsRoad = false; } return IsRoad; }
function IsDong(sText) { var ValidChars = "읍면동리로가"; var IsDong = true;
if (ValidChars.indexOf(sText) == -1) { IsDong = false; } return IsDong; }
function zip_search() { var objF = document.getElementById("f"); /*+----------------------------------------------------------------------------+ *| | *| 도로명 + 건물번호 *| | *+----------------------------------------------------------------------------+ */ if (objF.key1.checked) { var str = objF.txt_keyword2.value.split(" ").join(""); var strlen = str.length; var strdiv = ""; for (var i = strlen - 1; i > -1; i--) { if (IsRoad(str.charAt(i))) { strdiv = i + 1; break; } }
objF.roadNm.value = str.substring(0, strdiv); objF.bldgMainNo.value = str.substring(strdiv, strlen);
if (objF.roadNm.value == "시장북로") { alert("\"시장북로\"는 지번주소(법정동) 입니다."); objF.txt_keyword2.focus(); objF.txt_keyword2.select(); return false; }
if ((objF.key1.checked) && ((objF.roadNm.value != "") && (objF.bldgMainNo.value == ""))) { if (objF.sido.value == ""/* || objF.sigungu.value == "" */) { //alert("도로명으로만 검색하실 경우에는 시/도 및 시/군/구를 선택해 주세요."); alert("도로명으로만 검색하실 경우에는 시/도를 선택해 주세요."); objF.txt_keyword2.focus(); objF.txt_keyword2.select(); return false; } } else if ((objF.key1.checked) && ((objF.roadNm.value == "") || (objF.bldgMainNo.value == ""))) { alert("도로명+건물번호를 입력하십시오!\n\n검색방법 : 도로명(~로,~길)+건물번호\n\n- 서울시 송파구 잠실로 51-33 \n 예) '잠실로(도로명) 51-33(건물번호)'\n\n- 서울시 강동구 양재대로112길 57 \n 예) '양재대로112길(도로명) 57(건물번호)'"); objF.txt_keyword2.focus(); objF.txt_keyword2.select(); return false; }
if (objF.txt_keyword2.value.length < 2) { alert("검색어를 2글자이상으로입력하세요!"); objF.txt_keyword2.focus(); objF.txt_keyword2.select(); return false; }
var format1 = /지하/; var format2 = /공중/;
if (format1.exec(objF.bldgMainNo.value)) { objF.bldgMainNo.value = objF.bldgMainNo.value.replace("지하", ""); objF.udrgrndYn.value = "1"; } else if (format2.exec(objF.bldgMainNo.value)) { objF.bldgMainNo.value = objF.bldgMainNo.value.replace("공중", ""); objF.udrgrndYn.value = "2"; }
var Temp = objF.bldgMainNo.value.split("-"); objF.bldgMainNo.value = Temp[0]; objF.bldgSubNo.value = ""; for (var i = 1; i < Temp.length; i++) { objF.bldgSubNo.value = Temp[i]; break; }
objF.bldgSubNo.value = objF.bldgSubNo.value.replace(" ", ""); /* if (objF.bldgSubNo.value.length == 0) { objF.bldgSubNo.value = 0; } */ if ((objF.key1.checked) && (!IsNumeric(objF.bldgMainNo.value) || !IsNumeric(objF.bldgSubNo.value))) { alert("건물번호는 반드시 숫자만 입력하세요!\n\n검색방법 : 도로명(~로,~길)+건물번호\n\n- 서울시 송파구 잠실로 51-33 \n 예) '잠실로(도로명) 51-33(건물번호)'\n\n- 서울시 강동구 양재대로112길 57 \n 예) '양재대로112길(도로명) 57(건물번호)'"); return false; } /* objF.method = "post"; objF.action = "search5.jsp?key=road"; objF.submit(); */ objF.key.value = "road"; } /*+----------------------------------------------------------------------------+ *| | *| 동(읍/면/리)명 + 지번 *| | *+----------------------------------------------------------------------------+ */ else if (objF.key2.checked) {
if (objF.sido.value == "") { alert("시/도를 선택해 주세요."); return false; }
var str = objF.txt_keyword2.value.split(" ").join(""); var strlen = str.length; var strdiv = ""; for (var i = strlen - 1; i > -1; i--) { if (IsDong(str.charAt(i))) { strdiv = i + 1; break; } } objF.dongNm.value = str.substring(0, strdiv); objF.lndnMainNo.value = str.substring(strdiv, strlen);
if ((objF.key2.checked) && ((objF.dongNm.value == "") || (objF.lndnMainNo.value == ""))) { alert("시도 선택 후 동(읍/면/리)명+지번을 입력하십시오!\n\n검색방법 : 시도 선택 + 동(읍/면/리)명+지번\n\n- 서울시 송파구 잠실동 27-12 \n 예) '잠실동(동명) 27-12(지번)'\n\n- 서울시 강동구 길동 403 \n 예) '길동(동명) 403(지번)'"); return false; }
if (objF.txt_keyword2.value.length < 2) { alert("검색어를 2글자이상으로입력하세요!"); objF.txt_keyword2.focus(); return false; }
objF.lndnMainNo.value = objF.lndnMainNo.value.replace("산", ""); var Temp = objF.lndnMainNo.value.split("-");
objF.lndnMainNo.value = Temp[0]; objF.lndnSubNo.value = "";
for (var i = 1; i < Temp.length; i++) { objF.lndnSubNo.value = Temp[i]; break; }
objF.lndnSubNo.value = objF.lndnSubNo.value.replace(" ", "");
if (objF.lndnSubNo.value.length == 0) { objF.lndnSubNo.value = "0"; }
if ((objF.key2.checked) && (!IsNumeric(objF.lndnMainNo.value) || !IsNumeric(objF.lndnSubNo.value))) { alert("번지는 반드시 숫자만 입력하세요!"); return false; } /* objF.method = "post"; objF.action = "search5.jsp?key=dong"; objF.submit(); */ objF.key.value = "dong"; } /*+----------------------------------------------------------------------------+ *| | *| 건물명(아파트명 등) *| | *+----------------------------------------------------------------------------+ */ else if (objF.key3.checked) {
if (objF.sido.value == "") { alert("시/도를 선택해 주세요."); return false; } /* if (objF.sido.value != "세종" && objF.sigungu.value == "") { alert("시/군/구를 선택해 주세요."); return false; } */ if (objF.txt_keyword2.value == "") { alert("건물명(아파트명 등)을 입력하세요!"); objF.txt_keyword2.focus(); return false; } else if (objF.txt_keyword2.value.length < 2) { alert("검색어를 2글자이상으로입력하세요!"); objF.txt_keyword2.focus(); return false; } /* objF.method = "post"; objF.action = "search5.jsp?key=bdnm"; */ objF.key.value = "bdnm"; } /*+----------------------------------------------------------------------------+ *| | *| 사서함 + 사서함번호 *| | *+----------------------------------------------------------------------------+ */ else if (objF.key4.checked) { var str = objF.txt_keyword2.value.split(" ").join(""); var strlen = str.length; var strlenNo = -1; var strdiv = -1; var ch = ""; var tmp = ""; var search_key = 1; var search_idx = -1; var poboxNo_tmp = ""; var num = "1234567890-"; /* if (objF.sido.value == "") { alert("시/도를 선택해 주세요."); return false; } if (objF.sido.value != "세종" && objF.sigungu.value == "") { alert("시/군/구를 선택해 주세요."); return false; } */ if (objF.txt_keyword2.value == "") { if (objF.txt_keyword2.value == "") { alert("사서함명(우체국사서함명 등)을 입력하세요!"); objF.txt_keyword2.focus(); return false; } else if (objF.txt_keyword2.value.length < 3) { alert("검색어를 3글자이상으로입력하세요!"); objF.txt_keyword2.focus(); return false; } } if (objF.txt_keyword2.value != "") { if (objF.txt_keyword2.value.length < 3) { alert("검색어를 3글자이상으로입력하세요!"); objF.txt_keyword2.focus(); return false; }
strdiv = str.lastIndexOf("사서함"); // 검색어에 "사서함" 이라는 글자가 없으면 사서함 번호와 분리하여 넣어준다. if (strdiv == -1) { //alert("사서함명 또는 사서함명+사서함 번호을 입력하십시오!\n\n검색방법 : 사서함명+사서함번호\n- '서울강남우체국사서함 90'인 경우 \n 예) '서울강남우체국사서함 90'"); strlenNo = str.length; for (var i = 0; i < strlenNo; i++) { ch = str.charAt(i); if (num.indexOf(ch) < 0) { search_idx = i; //사서함번호 분리 } else { break; } } str_tmp1 = str.substring(0, search_idx + 1); str_tmp2 = str.substring(search_idx + 1, strlenNo); str = str_tmp1 + "사서함" + str_tmp2; strlen = str.length; strdiv = str.lastIndexOf("사서함"); objF.txt_keyword2.focus(); //return false; }
// 사서함명 사서함 번호 분리 // 사서함명으로 검색하는 경우 if ((strdiv + 3) == strlen) { objF.poboxNm.value = str; /* if (strlen == 3) { if (strlen == 3 && objF.sido.value == "" && (objF.sigungu.value == "" || (objF.sido.value != "세종" && objF.sigungu.value == ""))) { alert("사서함명 또는 사서함명+사서함 번호을 입력하십시오!\n\n검색방법 : 사서함명+사서함번호\n- '사서함 71-28'인 경우 \n 예) '사서함 71-28'"); objF.txt_keyword2.focus(); return false; } else { } */ // 사서함명+사서함 번호로 검색하는 경우 } else { poboxNo_tmp = str.substring(strdiv + 3, strlen); strlenNo = poboxNo_tmp.length; var check_count = 0;
for (var i = 0; i < strlenNo; i++) { ch = poboxNo_tmp.charAt(i); if (num.indexOf(ch) >= 0) { if (ch == '-') { search_idx = i; //사서함번호 분리 check_count = check_count + 1; } continue; } else { search_key = -1; //사서함번호 검색값이 패턴과 불일치 break; } } if (search_key == -1 || check_count > 1) { alert("사서함명 또는 사서함명+사서함 번호을 입력하십시오!\n\n검색방법 : 사서함명+사서함번호\n- '사서함 11-12'인 경우 \n 예) '사서함 11-12'"); objF.txt_keyword2.focus(); return false; }
objF.poboxNm.value = str.substring(0, strdiv + 3); if (search_idx != -1) { if (poboxNo_tmp.substring(0, search_idx) == "") { alert("사서함명 또는 사서함명+사서함 번호을 입력하십시오!\n\n검색방법 : 사서함명+사서함번호\n- '사서함 35-53'인 경우 \n 예) '사서함 35-53'"); objF.txt_keyword2.focus(); return false; } objF.poboxMainNo.value = poboxNo_tmp.substring(0, search_idx); objF.poboxSubNo.value = poboxNo_tmp.substring(search_idx + 1, strlenNo); } else { objF.poboxMainNo.value = poboxNo_tmp; } } } /* objF.method = "post"; objF.action = "search5.jsp?key=pobox"; */ objF.key.value = "pobox"; } f_Retrieve(2); return false; }
/*------------------------------------------------------------------+ | | | 2013년 04월 22일 | | | +-------------------------------------------------------------------+ | | | CODE 출처 : (http://www.epost.go.kr/search/zipcode/search5.jsp) | | | +------------------------------------------------------------------*/ var codeTypeArr = new Array(); var codeArr = new Array(); var codeNameArr = new Array();
codeTypeArr[0] = "강원"; codeArr[0] = "강릉시"; codeNameArr[0] = "강릉시"; codeTypeArr[1] = "강원"; codeTypeArr[51] = "경기"; codeTypeArr[101] = "경북"; codeTypeArr[151] = "서울"; codeTypeArr[201] = "전남"; codeArr[1] = "고성군"; codeArr[51] = "용인시 기흥구"; codeArr[101] = "울진군"; codeArr[151] = "도봉구"; codeArr[201] = "진도군"; codeNameArr[1] = "고성군"; codeNameArr[51] = "용인시 기흥구"; codeNameArr[101] = "울진군"; codeNameArr[151] = "도봉구"; codeNameArr[201] = "진도군"; codeTypeArr[2] = "강원"; codeTypeArr[52] = "경기"; codeTypeArr[102] = "경북"; codeTypeArr[152] = "서울"; codeTypeArr[202] = "전남"; codeArr[2] = "동해시"; codeArr[52] = "용인시 수지구"; codeArr[102] = "의성군"; codeArr[152] = "동대문구"; codeArr[202] = "함평군"; codeNameArr[2] = "동해시"; codeNameArr[52] = "용인시 수지구"; codeNameArr[102] = "의성군"; codeNameArr[152] = "동대문구"; codeNameArr[202] = "함평군"; codeTypeArr[3] = "강원"; codeTypeArr[53] = "경기"; codeTypeArr[103] = "경북"; codeTypeArr[153] = "서울"; codeTypeArr[203] = "전남"; codeArr[3] = "삼척시"; codeArr[53] = "용인시 처인구"; codeArr[103] = "청도군"; codeArr[153] = "동작구"; codeArr[203] = "해남군"; codeNameArr[3] = "삼척시"; codeNameArr[53] = "용인시 처인구"; codeNameArr[103] = "청도군"; codeNameArr[153] = "동작구"; codeNameArr[203] = "해남군"; codeTypeArr[4] = "강원"; codeTypeArr[54] = "경기"; codeTypeArr[104] = "경북"; codeTypeArr[154] = "서울"; codeTypeArr[204] = "전남"; codeArr[4] = "속초시"; codeArr[54] = "의왕시"; codeArr[104] = "청송군"; codeArr[154] = "마포구"; codeArr[204] = "화순군"; codeNameArr[4] = "속초시"; codeNameArr[54] = "의왕시"; codeNameArr[104] = "청송군"; codeNameArr[154] = "마포구"; codeNameArr[204] = "화순군"; codeTypeArr[5] = "강원"; codeTypeArr[55] = "경기"; codeTypeArr[105] = "경북"; codeTypeArr[155] = "서울"; codeTypeArr[205] = "전북"; codeArr[5] = "양구군"; codeArr[55] = "의정부시"; codeArr[105] = "칠곡군"; codeArr[155] = "서대문구"; codeArr[205] = "고창군"; codeNameArr[5] = "양구군"; codeNameArr[55] = "의정부시"; codeNameArr[105] = "칠곡군"; codeNameArr[155] = "서대문구"; codeNameArr[205] = "고창군"; codeTypeArr[6] = "강원"; codeTypeArr[56] = "경기"; codeTypeArr[106] = "경북"; codeTypeArr[156] = "서울"; codeTypeArr[206] = "전북"; codeArr[6] = "양양군"; codeArr[56] = "이천시"; codeArr[106] = "포항시 남구"; codeArr[156] = "서초구"; codeArr[206] = "군산시"; codeNameArr[6] = "양양군"; codeNameArr[56] = "이천시"; codeNameArr[106] = "포항시 남구"; codeNameArr[156] = "서초구"; codeNameArr[206] = "군산시"; codeTypeArr[7] = "강원"; codeTypeArr[57] = "경기"; codeTypeArr[107] = "경북"; codeTypeArr[157] = "서울"; codeTypeArr[207] = "전북"; codeArr[7] = "영월군"; codeArr[57] = "파주시"; codeArr[107] = "포항시 북구"; codeArr[157] = "성동구"; codeArr[207] = "김제시"; codeNameArr[7] = "영월군"; codeNameArr[57] = "파주시"; codeNameArr[107] = "포항시 북구"; codeNameArr[157] = "성동구"; codeNameArr[207] = "김제시"; codeTypeArr[8] = "강원"; codeTypeArr[58] = "경기"; codeTypeArr[108] = "광주"; codeTypeArr[158] = "서울"; codeTypeArr[208] = "전북"; codeArr[8] = "원주시"; codeArr[58] = "평택시"; codeArr[108] = "광산구"; codeArr[158] = "성북구"; codeArr[208] = "남원시"; codeNameArr[8] = "원주시"; codeNameArr[58] = "평택시"; codeNameArr[108] = "광산구"; codeNameArr[158] = "성북구"; codeNameArr[208] = "남원시"; codeTypeArr[9] = "강원"; codeTypeArr[59] = "경기"; codeTypeArr[109] = "광주"; codeTypeArr[159] = "서울"; codeTypeArr[209] = "전북"; codeArr[9] = "인제군"; codeArr[59] = "포천시"; codeArr[109] = "남구"; codeArr[159] = "송파구"; codeArr[209] = "무주군"; codeNameArr[9] = "인제군"; codeNameArr[59] = "포천시"; codeNameArr[109] = "남구"; codeNameArr[159] = "송파구"; codeNameArr[209] = "무주군"; codeTypeArr[10] = "강원"; codeTypeArr[60] = "경기"; codeTypeArr[110] = "광주"; codeTypeArr[160] = "서울"; codeTypeArr[210] = "전북"; codeArr[10] = "정선군"; codeArr[60] = "하남시"; codeArr[110] = "동구"; codeArr[160] = "양천구"; codeArr[210] = "부안군"; codeNameArr[10] = "정선군"; codeNameArr[60] = "하남시"; codeNameArr[110] = "동구"; codeNameArr[160] = "양천구"; codeNameArr[210] = "부안군"; codeTypeArr[11] = "강원"; codeTypeArr[61] = "경기"; codeTypeArr[111] = "광주"; codeTypeArr[161] = "서울"; codeTypeArr[211] = "전북"; codeArr[11] = "철원군"; codeArr[61] = "화성시"; codeArr[111] = "북구"; codeArr[161] = "영등포구"; codeArr[211] = "순창군"; codeNameArr[11] = "철원군"; codeNameArr[61] = "화성시"; codeNameArr[111] = "북구"; codeNameArr[161] = "영등포구"; codeNameArr[211] = "순창군"; codeTypeArr[12] = "강원"; codeTypeArr[62] = "경남"; codeTypeArr[112] = "광주"; codeTypeArr[162] = "서울"; codeTypeArr[212] = "전북"; codeArr[12] = "춘천시"; codeArr[62] = "거제시"; codeArr[112] = "서구"; codeArr[162] = "용산구"; codeArr[212] = "완주군"; codeNameArr[12] = "춘천시"; codeNameArr[62] = "거제시"; codeNameArr[112] = "서구"; codeNameArr[162] = "용산구"; codeNameArr[212] = "완주군"; codeTypeArr[13] = "강원"; codeTypeArr[63] = "경남"; codeTypeArr[113] = "대구"; codeTypeArr[163] = "서울"; codeTypeArr[213] = "전북"; codeArr[13] = "태백시"; codeArr[63] = "거창군"; codeArr[113] = "남구"; codeArr[163] = "은평구"; codeArr[213] = "익산시"; codeNameArr[13] = "태백시"; codeNameArr[63] = "거창군"; codeNameArr[113] = "남구"; codeNameArr[163] = "은평구"; codeNameArr[213] = "익산시"; codeTypeArr[14] = "강원"; codeTypeArr[64] = "경남"; codeTypeArr[114] = "대구"; codeTypeArr[164] = "서울"; codeTypeArr[214] = "전북"; codeArr[14] = "평창군"; codeArr[64] = "고성군"; codeArr[114] = "달서구"; codeArr[164] = "종로구"; codeArr[214] = "임실군"; codeNameArr[14] = "평창군"; codeNameArr[64] = "고성군"; codeNameArr[114] = "달서구"; codeNameArr[164] = "종로구"; codeNameArr[214] = "임실군"; codeTypeArr[15] = "강원"; codeTypeArr[65] = "경남"; codeTypeArr[115] = "대구"; codeTypeArr[165] = "서울"; codeTypeArr[215] = "전북"; codeArr[15] = "홍천군"; codeArr[65] = "김해시"; codeArr[115] = "달성군"; codeArr[165] = "중구"; codeArr[215] = "장수군"; codeNameArr[15] = "홍천군"; codeNameArr[65] = "김해시"; codeNameArr[115] = "달성군"; codeNameArr[165] = "중구"; codeNameArr[215] = "장수군"; codeTypeArr[16] = "강원"; codeTypeArr[66] = "경남"; codeTypeArr[116] = "대구"; codeTypeArr[166] = "서울"; codeTypeArr[216] = "전북"; codeArr[16] = "화천군"; codeArr[66] = "남해군"; codeArr[116] = "동구"; codeArr[166] = "중랑구"; codeArr[216] = "전주시 덕진구"; codeNameArr[16] = "화천군"; codeNameArr[66] = "남해군"; codeNameArr[116] = "동구"; codeNameArr[166] = "중랑구"; codeNameArr[216] = "전주시 덕진구"; codeTypeArr[17] = "강원"; codeTypeArr[67] = "경남"; codeTypeArr[117] = "대구"; codeTypeArr[217] = "전북"; codeArr[17] = "횡성군"; codeArr[67] = "밀양시"; codeArr[117] = "북구"; codeArr[217] = "전주시 완산구"; codeNameArr[17] = "횡성군"; codeNameArr[67] = "밀양시"; codeNameArr[117] = "북구"; codeNameArr[217] = "전주시 완산구"; codeTypeArr[18] = "경기"; codeTypeArr[68] = "경남"; codeTypeArr[118] = "대구"; codeTypeArr[168] = "울산"; codeTypeArr[218] = "전북"; codeArr[18] = "가평군"; codeArr[68] = "사천시"; codeArr[118] = "서구"; codeArr[168] = "남구"; codeArr[218] = "정읍시"; codeNameArr[18] = "가평군"; codeNameArr[68] = "사천시"; codeNameArr[118] = "서구"; codeNameArr[168] = "남구"; codeNameArr[218] = "정읍시"; codeTypeArr[19] = "경기"; codeTypeArr[69] = "경남"; codeTypeArr[119] = "대구"; codeTypeArr[169] = "울산"; codeTypeArr[219] = "전북"; codeArr[19] = "고양시 덕양구"; codeArr[69] = "산청군"; codeArr[119] = "수성구"; codeArr[169] = "동구"; codeArr[219] = "진안군"; codeNameArr[19] = "고양시 덕양구"; codeNameArr[69] = "산청군"; codeNameArr[119] = "수성구"; codeNameArr[169] = "동구"; codeNameArr[219] = "진안군"; codeTypeArr[20] = "경기"; codeTypeArr[70] = "경남"; codeTypeArr[120] = "대구"; codeTypeArr[170] = "울산"; codeTypeArr[220] = "제주"; codeArr[20] = "고양시 일산동구"; codeArr[70] = "양산시"; codeArr[120] = "중구"; codeArr[170] = "북구"; codeArr[220] = "서귀포시"; codeNameArr[20] = "고양시 일산동구"; codeNameArr[70] = "양산시"; codeNameArr[120] = "중구"; codeNameArr[170] = "북구"; codeNameArr[220] = "서귀포시"; codeTypeArr[21] = "경기"; codeTypeArr[71] = "경남"; codeTypeArr[121] = "대전"; codeTypeArr[171] = "울산"; codeTypeArr[221] = "제주"; codeArr[21] = "고양시 일산서구"; codeArr[71] = "의령군"; codeArr[121] = "대덕구"; codeArr[171] = "울주군"; codeArr[221] = "제주시"; codeNameArr[21] = "고양시 일산서구"; codeNameArr[71] = "의령군"; codeNameArr[121] = "대덕구"; codeNameArr[171] = "울주군"; codeNameArr[221] = "제주시"; codeTypeArr[22] = "경기"; codeTypeArr[72] = "경남"; codeTypeArr[122] = "대전"; codeTypeArr[172] = "울산"; codeTypeArr[222] = "충남"; codeArr[22] = "과천시"; codeArr[72] = "진주시"; codeArr[122] = "동구"; codeArr[172] = "중구"; codeArr[222] = "계룡시"; codeNameArr[22] = "과천시"; codeNameArr[72] = "진주시"; codeNameArr[122] = "동구"; codeNameArr[172] = "중구"; codeNameArr[222] = "계룡시"; codeTypeArr[23] = "경기"; codeTypeArr[73] = "경남"; codeTypeArr[123] = "대전"; codeTypeArr[173] = "인천"; codeTypeArr[223] = "충남"; codeArr[23] = "광명시"; codeArr[73] = "창녕군"; codeArr[123] = "서구"; codeArr[173] = "강화군"; codeArr[223] = "공주시"; codeNameArr[23] = "광명시"; codeNameArr[73] = "창녕군"; codeNameArr[123] = "서구"; codeNameArr[173] = "강화군"; codeNameArr[223] = "공주시"; codeTypeArr[24] = "경기"; codeTypeArr[74] = "경남"; codeTypeArr[124] = "대전"; codeTypeArr[174] = "인천"; codeTypeArr[224] = "충남"; codeArr[24] = "광주시"; codeArr[74] = "창원시 마산합포구"; codeArr[124] = "유성구"; codeArr[174] = "계양구"; codeArr[224] = "금산군"; codeNameArr[24] = "광주시"; codeNameArr[74] = "창원시 마산합포구"; codeNameArr[124] = "유성구"; codeNameArr[174] = "계양구"; codeNameArr[224] = "금산군"; codeTypeArr[25] = "경기"; codeTypeArr[75] = "경남"; codeTypeArr[125] = "대전"; codeTypeArr[175] = "인천"; codeTypeArr[225] = "충남"; codeArr[25] = "구리시"; codeArr[75] = "창원시 마산회원구"; codeArr[125] = "중구"; codeArr[175] = "남구"; codeArr[225] = "논산시"; codeNameArr[25] = "구리시"; codeNameArr[75] = "창원시 마산회원구"; codeNameArr[125] = "중구"; codeNameArr[175] = "남구"; codeNameArr[225] = "논산시"; codeTypeArr[26] = "경기"; codeTypeArr[76] = "경남"; codeTypeArr[126] = "부산"; codeTypeArr[176] = "인천"; codeTypeArr[226] = "충남"; codeArr[26] = "군포시"; codeArr[76] = "창원시 성산구"; codeArr[126] = "강서구"; codeArr[176] = "남동구"; codeArr[226] = "당진시"; codeNameArr[26] = "군포시"; codeNameArr[76] = "창원시 성산구"; codeNameArr[126] = "강서구"; codeNameArr[176] = "남동구"; codeNameArr[226] = "당진시"; codeTypeArr[27] = "경기"; codeTypeArr[77] = "경남"; codeTypeArr[127] = "부산"; codeTypeArr[177] = "인천"; codeTypeArr[227] = "충남"; codeArr[27] = "김포시"; codeArr[77] = "창원시 의창구"; codeArr[127] = "금정구"; codeArr[177] = "동구"; codeArr[227] = "보령시"; codeNameArr[27] = "김포시"; codeNameArr[77] = "창원시 의창구"; codeNameArr[127] = "금정구"; codeNameArr[177] = "동구"; codeNameArr[227] = "보령시"; codeTypeArr[28] = "경기"; codeTypeArr[78] = "경남"; codeTypeArr[128] = "부산"; codeTypeArr[178] = "인천"; codeTypeArr[228] = "충남"; codeArr[28] = "남양주시"; codeArr[78] = "창원시 진해구"; codeArr[128] = "기장군"; codeArr[178] = "부평구"; codeArr[228] = "부여군"; codeNameArr[28] = "남양주시"; codeNameArr[78] = "창원시 진해구"; codeNameArr[128] = "기장군"; codeNameArr[178] = "부평구"; codeNameArr[228] = "부여군"; codeTypeArr[29] = "경기"; codeTypeArr[79] = "경남"; codeTypeArr[129] = "부산"; codeTypeArr[179] = "인천"; codeTypeArr[229] = "충남"; codeArr[29] = "동두천시"; codeArr[79] = "통영시"; codeArr[129] = "남구"; codeArr[179] = "서구"; codeArr[229] = "서산시"; codeNameArr[29] = "동두천시"; codeNameArr[79] = "통영시"; codeNameArr[129] = "남구"; codeNameArr[179] = "서구"; codeNameArr[229] = "서산시"; codeTypeArr[30] = "경기"; codeTypeArr[80] = "경남"; codeTypeArr[130] = "부산"; codeTypeArr[180] = "인천"; codeTypeArr[230] = "충남"; codeArr[30] = "부천시 소사구"; codeArr[80] = "하동군"; codeArr[130] = "동구"; codeArr[180] = "연수구"; codeArr[230] = "서천군"; codeNameArr[30] = "부천시 소사구"; codeNameArr[80] = "하동군"; codeNameArr[130] = "동구"; codeNameArr[180] = "연수구"; codeNameArr[230] = "서천군"; codeTypeArr[31] = "경기"; codeTypeArr[81] = "경남"; codeTypeArr[131] = "부산"; codeTypeArr[181] = "인천"; codeTypeArr[231] = "충남"; codeArr[31] = "부천시 오정구"; codeArr[81] = "함안군"; codeArr[131] = "동래구"; codeArr[181] = "옹진군"; codeArr[231] = "아산시"; codeNameArr[31] = "부천시 오정구"; codeNameArr[81] = "함안군"; codeNameArr[131] = "동래구"; codeNameArr[181] = "옹진군"; codeNameArr[231] = "아산시"; codeTypeArr[32] = "경기"; codeTypeArr[82] = "경남"; codeTypeArr[132] = "부산"; codeTypeArr[182] = "인천"; codeTypeArr[232] = "충남"; codeArr[32] = "부천시 원미구"; codeArr[82] = "함양군"; codeArr[132] = "부산진구"; codeArr[182] = "중구"; codeArr[232] = "예산군"; codeNameArr[32] = "부천시 원미구"; codeNameArr[82] = "함양군"; codeNameArr[132] = "부산진구"; codeNameArr[182] = "중구"; codeNameArr[232] = "예산군"; codeTypeArr[33] = "경기"; codeTypeArr[83] = "경남"; codeTypeArr[133] = "부산"; codeTypeArr[183] = "전남"; codeTypeArr[233] = "충남"; codeArr[33] = "성남시 분당구"; codeArr[83] = "합천군"; codeArr[133] = "북구"; codeArr[183] = "강진군"; codeArr[233] = "천안시 동남구"; codeNameArr[33] = "성남시 분당구"; codeNameArr[83] = "합천군"; codeNameArr[133] = "북구"; codeNameArr[183] = "강진군"; codeNameArr[233] = "천안시 동남구"; codeTypeArr[34] = "경기"; codeTypeArr[84] = "경북"; codeTypeArr[134] = "부산"; codeTypeArr[184] = "전남"; codeTypeArr[234] = "충남"; codeArr[34] = "성남시 수정구"; codeArr[84] = "경산시"; codeArr[134] = "사상구"; codeArr[184] = "고흥군"; codeArr[234] = "천안시 서북구"; codeNameArr[34] = "성남시 수정구"; codeNameArr[84] = "경산시"; codeNameArr[134] = "사상구"; codeNameArr[184] = "고흥군"; codeNameArr[234] = "천안시 서북구"; codeTypeArr[35] = "경기"; codeTypeArr[85] = "경북"; codeTypeArr[135] = "부산"; codeTypeArr[185] = "전남"; codeTypeArr[235] = "충남"; codeArr[35] = "성남시 중원구"; codeArr[85] = "경주시"; codeArr[135] = "사하구"; codeArr[185] = "곡성군"; codeArr[235] = "청양군"; codeNameArr[35] = "성남시 중원구"; codeNameArr[85] = "경주시"; codeNameArr[135] = "사하구"; codeNameArr[185] = "곡성군"; codeNameArr[235] = "청양군"; codeTypeArr[36] = "경기"; codeTypeArr[86] = "경북"; codeTypeArr[136] = "부산"; codeTypeArr[186] = "전남"; codeTypeArr[236] = "충남"; codeArr[36] = "수원시 권선구"; codeArr[86] = "고령군"; codeArr[136] = "서구"; codeArr[186] = "광양시"; codeArr[236] = "태안군"; codeNameArr[36] = "수원시 권선구"; codeNameArr[86] = "고령군"; codeNameArr[136] = "서구"; codeNameArr[186] = "광양시"; codeNameArr[236] = "태안군"; codeTypeArr[37] = "경기"; codeTypeArr[87] = "경북"; codeTypeArr[137] = "부산"; codeTypeArr[187] = "전남"; codeTypeArr[237] = "충남"; codeArr[37] = "수원시 영통구"; codeArr[87] = "구미시"; codeArr[137] = "수영구"; codeArr[187] = "구례군"; codeArr[237] = "홍성군"; codeNameArr[37] = "수원시 영통구"; codeNameArr[87] = "구미시"; codeNameArr[137] = "수영구"; codeNameArr[187] = "구례군"; codeNameArr[237] = "홍성군"; codeTypeArr[38] = "경기"; codeTypeArr[88] = "경북"; codeTypeArr[138] = "부산"; codeTypeArr[188] = "전남"; codeTypeArr[238] = "충북"; codeArr[38] = "수원시 장안구"; codeArr[88] = "군위군"; codeArr[138] = "연제구"; codeArr[188] = "나주시"; codeArr[238] = "괴산군"; codeNameArr[38] = "수원시 장안구"; codeNameArr[88] = "군위군"; codeNameArr[138] = "연제구"; codeNameArr[188] = "나주시"; codeNameArr[238] = "괴산군"; codeTypeArr[39] = "경기"; codeTypeArr[89] = "경북"; codeTypeArr[139] = "부산"; codeTypeArr[189] = "전남"; codeTypeArr[239] = "충북"; codeArr[39] = "수원시 팔달구"; codeArr[89] = "김천시"; codeArr[139] = "영도구"; codeArr[189] = "담양군"; codeArr[239] = "단양군"; codeNameArr[39] = "수원시 팔달구"; codeNameArr[89] = "김천시"; codeNameArr[139] = "영도구"; codeNameArr[189] = "담양군"; codeNameArr[239] = "단양군"; codeTypeArr[40] = "경기"; codeTypeArr[90] = "경북"; codeTypeArr[140] = "부산"; codeTypeArr[190] = "전남"; codeTypeArr[240] = "충북"; codeArr[40] = "시흥시"; codeArr[90] = "문경시"; codeArr[140] = "중구"; codeArr[190] = "목포시"; codeArr[240] = "보은군"; codeNameArr[40] = "시흥시"; codeNameArr[90] = "문경시"; codeNameArr[140] = "중구"; codeNameArr[190] = "목포시"; codeNameArr[240] = "보은군"; codeTypeArr[41] = "경기"; codeTypeArr[91] = "경북"; codeTypeArr[141] = "부산"; codeTypeArr[191] = "전남"; codeTypeArr[241] = "충북"; codeArr[41] = "안산시 단원구"; codeArr[91] = "봉화군"; codeArr[141] = "해운대구"; codeArr[191] = "무안군"; codeArr[241] = "영동군"; codeNameArr[41] = "안산시 단원구"; codeNameArr[91] = "봉화군"; codeNameArr[141] = "해운대구"; codeNameArr[191] = "무안군"; codeNameArr[241] = "영동군"; codeTypeArr[42] = "경기"; codeTypeArr[92] = "경북"; codeTypeArr[142] = "서울"; codeTypeArr[192] = "전남"; codeTypeArr[242] = "충북"; codeArr[42] = "안산시 상록구"; codeArr[92] = "상주시"; codeArr[142] = "강남구"; codeArr[192] = "보성군"; codeArr[242] = "옥천군"; codeNameArr[42] = "안산시 상록구"; codeNameArr[92] = "상주시"; codeNameArr[142] = "강남구"; codeNameArr[192] = "보성군"; codeNameArr[242] = "옥천군"; codeTypeArr[43] = "경기"; codeTypeArr[93] = "경북"; codeTypeArr[143] = "서울"; codeTypeArr[193] = "전남"; codeTypeArr[243] = "충북"; codeArr[43] = "안성시"; codeArr[93] = "성주군"; codeArr[143] = "강동구"; codeArr[193] = "순천시"; codeArr[243] = "음성군"; codeNameArr[43] = "안성시"; codeNameArr[93] = "성주군"; codeNameArr[143] = "강동구"; codeNameArr[193] = "순천시"; codeNameArr[243] = "음성군"; codeTypeArr[44] = "경기"; codeTypeArr[94] = "경북"; codeTypeArr[144] = "서울"; codeTypeArr[194] = "전남"; codeTypeArr[244] = "충북"; codeArr[44] = "안양시 동안구"; codeArr[94] = "안동시"; codeArr[144] = "강북구"; codeArr[194] = "신안군"; codeArr[244] = "제천시"; codeNameArr[44] = "안양시 동안구"; codeNameArr[94] = "안동시"; codeNameArr[144] = "강북구"; codeNameArr[194] = "신안군"; codeNameArr[244] = "제천시"; codeTypeArr[45] = "경기"; codeTypeArr[95] = "경북"; codeTypeArr[145] = "서울"; codeTypeArr[195] = "전남"; codeTypeArr[245] = "충북"; codeArr[45] = "안양시 만안구"; codeArr[95] = "영덕군"; codeArr[145] = "강서구"; codeArr[195] = "여수시"; codeArr[245] = "증평군"; codeNameArr[45] = "안양시 만안구"; codeNameArr[95] = "영덕군"; codeNameArr[145] = "강서구"; codeNameArr[195] = "여수시"; codeNameArr[245] = "증평군"; codeTypeArr[46] = "경기"; codeTypeArr[96] = "경북"; codeTypeArr[146] = "서울"; codeTypeArr[196] = "전남"; codeTypeArr[246] = "충북"; codeArr[46] = "양주시"; codeArr[96] = "영양군"; codeArr[146] = "관악구"; codeArr[196] = "영광군"; codeArr[246] = "진천군"; codeNameArr[46] = "양주시"; codeNameArr[96] = "영양군"; codeNameArr[146] = "관악구"; codeNameArr[196] = "영광군"; codeNameArr[246] = "진천군"; codeTypeArr[47] = "경기"; codeTypeArr[97] = "경북"; codeTypeArr[147] = "서울"; codeTypeArr[197] = "전남"; codeTypeArr[247] = "충북"; codeArr[47] = "양평군"; codeArr[97] = "영주시"; codeArr[147] = "광진구"; codeArr[197] = "영암군"; codeArr[247] = "청원군"; codeNameArr[47] = "양평군"; codeNameArr[97] = "영주시"; codeNameArr[147] = "광진구"; codeNameArr[197] = "영암군"; codeNameArr[247] = "청원군"; codeTypeArr[48] = "경기"; codeTypeArr[98] = "경북"; codeTypeArr[148] = "서울"; codeTypeArr[198] = "전남"; codeTypeArr[248] = "충북"; codeArr[48] = "여주군"; codeArr[98] = "영천시"; codeArr[148] = "구로구"; codeArr[198] = "완도군"; codeArr[248] = "청주시 상당구"; codeNameArr[48] = "여주군"; codeNameArr[98] = "영천시"; codeNameArr[148] = "구로구"; codeNameArr[198] = "완도군"; codeNameArr[248] = "청주시 상당구"; codeTypeArr[49] = "경기"; codeTypeArr[99] = "경북"; codeTypeArr[149] = "서울"; codeTypeArr[199] = "전남"; codeTypeArr[249] = "충북"; codeArr[49] = "연천군"; codeArr[99] = "예천군"; codeArr[149] = "금천구"; codeArr[199] = "장성군"; codeArr[249] = "청주시 흥덕구"; codeNameArr[49] = "연천군"; codeNameArr[99] = "예천군"; codeNameArr[149] = "금천구"; codeNameArr[199] = "장성군"; codeNameArr[249] = "청주시 흥덕구"; codeTypeArr[50] = "경기"; codeTypeArr[100] = "경북"; codeTypeArr[150] = "서울"; codeTypeArr[200] = "전남"; codeTypeArr[250] = "충북"; codeArr[50] = "오산시"; codeArr[100] = "울릉군"; codeArr[150] = "노원구"; codeArr[200] = "장흥군"; codeArr[250] = "충주시"; codeNameArr[50] = "오산시"; codeNameArr[100] = "울릉군"; codeNameArr[150] = "노원구"; codeNameArr[200] = "장흥군"; codeNameArr[250] = "충주시";
//특정 채널을 선택하면 해당 카테고리를 생성 function jsGetCode(num) {
//해당 채널의 서브 카테고리 배열 길이만큼 반복 var idx = 0; var frm = document.getElementById("f");
frm.sigungu.options[idx] = new Option("전체", "");
idx++; for (ctr = 0; ctr < codeTypeArr.length; ctr++) { //카테고리에 해당하는 콤보박스의 값을 채움 if (codeTypeArr[ctr] == num) { frm.sigungu.options[idx] = new Option(codeNameArr[ctr], codeArr[ctr]); idx++; } } frm.sigungu.length = idx;
if (frm.sido.value == '세종') { frm.sigungu.disabled = true; } else { frm.sigungu.disabled = false; }
var sinx; if (initChk) { // init()함수에서 jsGetCode함수를 호출할 경우 : 받아온 시군구의 값을 선택하고, 아닐 경우는 시군구 전체로 초기화 for (i = 0; i < idx; i++) { if (frm.sigungu.options[i].value == '') { sinx = i; } } initChk = false; } else { sinx = 0; } frm.sigungu.selectedIndex = sinx; }
function chgkey(num) {
setDisplay(num);
//document.getElementById("f").sido.value = ""; //document.getElementById("txt_keyword2").value = ""; //jsGetCode('');
document.getElementById("txt_keyword2").focus();
//inputBox내 안내글 변경 if (document.getElementById("txt_keyword2").value.length == 0) { document.getElementById("txt_keyword2").style.background = "url(/images/al/searchInputBg" + num + ".gif) #fff no-repeat 2px 1px"; }
}
/*도로명 주소 검색 : 라디오버튼 선택에 따른 상단 예시 div display 값 변경하기 20120409 추가*/ function setDisplay(num) {
var road = ""; var dong = ""; var bdnm = ""; var pobox = "";
if (num == 1) { road = "block"; dong = "none"; bdnm = "none"; pobox = "none"; } else if (num == 2) { road = "none"; dong = "block"; bdnm = "none"; pobox = "none"; } else if (num == 3) { road = "none"; dong = "none"; bdnm = "block"; pobox = "none"; } else if (num == 4) { road = "none"; dong = "none"; bdnm = "none"; pobox = "block"; }
document.getElementById("road_show").style.display = road; document.getElementById("dong_show").style.display = dong; document.getElementById("bdnm_show").style.display = bdnm; document.getElementById("pobox_show").style.display = pobox; }
function eventonblur(img_name) { var num = 1; if (document.getElementsByName("key")[1].checked) { num = 2; } else if (document.getElementsByName("key")[2].checked) { num = 3; } else if (document.getElementsByName("key")[3].checked) { num = 4; } if (img_name.value == "") { img_name.style.background = "url(/images/comm/2010/popup/searchInputBg" + num + ".gif) no-repeat 2px 1px"; img_name.style.backgroundColor = "#fff"; } }
function newaddrintro(url, e) { if (isAccess(e)) { window.open(url, "newaddrintro", "scrollbar=no,resizable=no,toolbar=no,width=530,height=630,left=630,top=29,status=no"); return false; } }
function keywordinput(form) { if (form.value != "") { form.style.backgroundImage = ''; } }
function txt_keyword2_event() { var keyCode = window.event.keyCode; if (keyCode == 13) { return zip_search(); } } // 팝업창에서 부모창으로 넘기기 전에 사서함 101 - (1~3)과 같은 주소를 상세히 입력하게 함 function chkZipInfo(str) { // 사서함 검색이면서 주소에 괄호가 있으면 상세 사서함 번호를 넣으세요 cnt = 0; search_idx = -1; filterChar = "(~)"; strlenNo = str.length; for (var i = 0; i < strlenNo; i++) { ch = str.charAt(i); if (filterChar.indexOf(ch) >= 0) { cnt++; } if ("(".indexOf(ch) >= 0) { search_idx = i; } } if (cnt == 3) { alert("사서함 번호를 " + str.substring(search_idx, strlenNo) + "범위 내에서 다시 검색하여 주세요. \n\n검색방법 : 사서함 101 - (1~3)'인 경우 \n 예) '사서함 101-2'"); var objF = document.getElementById("f"); objF.txt_keyword2.focus(); return false; } // 사서함 번호의 "스페이스"를 삭제함 num = "1234567890-"; search_idx = -1; for (var i = 0; i < strlenNo; i++) { ch = str.charAt(i); if (num.indexOf(ch) < 0) { search_idx = i; //사서함번호 분리 } else { break; } } str_tmp1 = str.substring(0, search_idx + 1); str_tmp2 = str.substring(search_idx + 1, strlenNo); str = str_tmp1 + cfReplaceAll(str_tmp2, " ", ""); return str; } //]]> </script>
<!----------------------------------------------------------------------------- D A T A S E T C O M P O N E N T S D E C L A R A T I O N ------------------------------------------------------------------------------> <!-- (구)우편번호 DataSet --> <object id="ds_zipCd" classid="<%=LGauceId.DATASET%>"> </object> <!-- (신)우편번호 DataSet --> <object id="ds_newZipCd" classid="<%=LGauceId.DATASET%>"> </object>
<!----------------------------------------------------------------------------- G A U C E C O M P O N E N T' S E V E N T S ------------------------------------------------------------------------------>
<!-- ------------------------------------------------------------------------------------ (구)우편번호 --> <script language=JavaScript for=ds_zipCd event=OnLoadStarted()> cfShowDSWaitMsg(gr_zipCd); </script>
<script language=JavaScript for=ds_zipCd event=OnLoadCompleted(rowCnt)> cfHideDSWaitMsg(gr_zipCd); cfFillGridNoDataMsg(gr_zipCd); if ( rowCnt > 0 ) { gr_zipCd.Focus(); } </script>
<script language=JavaScript for=ds_zipCd event=OnLoadError()> cfHideDSWaitMsg(gr_zipCd); if(!cfCheckCreateFlag()) { cfShowErrMsg(ds_zipCd); } </script>
<script language="javascript" for=gr_zipCd event=OnDblClick(Row,Colid)> parent.cfSetZipInfo(ds_zipCd.NameValue(Row,'zipCd'), ds_zipCd.NameValue(Row,'dngAbAddr')); parent.cfClosePopup(); </script>
<script language=JavaScript for=gr_zipCd event=onKeyPress(keycode)> if ( keycode==13 && ds_zipCd.RowPosition > 0) { parent.cfSetZipInfo(ds_zipCd.NameValue(ds_zipCd.RowPosition,'zipCd'), ds_zipCd.NameValue(ds_zipCd.RowPosition,'dngAbAddr')); parent.cfClosePopup(); } </script>
<script language=JavaScript for=ds_zipCd event=OnLoadStarted()> cfShowDSWaitMsg(gr_zipCd); </script>
<!-- ------------------------------------------------------------------------------------ (신)우편번호 -->
<script language=JavaScript for=ds_newZipCd event=OnLoadStarted()> cfShowDSWaitMsg(gr_newZipCd); </script>
<script language=JavaScript for=ds_newZipCd event=OnLoadCompleted(rowCnt)> // 검색결과에 사용된 HIDDEN PARAMETER 초기화 var objF = document.getElementById("f"); objF.roadNm.value = ""; objF.bldgMainNo.value = ""; objF.bldgSubNo.value = ""; objF.udrgrndYn.value = ""; objF.dongNm.value = ""; objF.lndnMainNo.value = ""; objF.lndnSubNo.value = ""; objF.poboxNm.value = ""; objF.poboxMainNo.value = ""; objF.poboxSubNo.value = ""; cfHideDSWaitMsg(gr_newZipCd); rowCnt = cfToComma(rowCnt); if (rowCnt.length == 1) { document.getElementById("f").ds_newZipCd_txt.style.width = 10; } else if (rowCnt.length == 2) { document.getElementById("f").ds_newZipCd_txt.style.width = 17; } else if (rowCnt.length == 3) { document.getElementById("f").ds_newZipCd_txt.style.width = 24; } else if (rowCnt.length == 4) { document.getElementById("f").ds_newZipCd_txt.style.width = 31; } else if (rowCnt.length == 5) { document.getElementById("f").ds_newZipCd_txt.style.width = 38; } else if (rowCnt.length == 6) { document.getElementById("f").ds_newZipCd_txt.style.width = 45; } else if (rowCnt.length == 7) { document.getElementById("f").ds_newZipCd_txt.style.width = 51; } else { document.getElementById("f").ds_newZipCd_txt.style.width = 58; } document.getElementById("f").ds_newZipCd_txt.value = rowCnt; document.getElementById("f").txt_keyword2.focus(); </script>
<script language=JavaScript for=ds_newZipCd event=OnLoadError()> cfHideDSWaitMsg(gr_newZipCd); if(!cfCheckCreateFlag()) { cfShowErrMsg(ds_newZipCd); } </script>
<script language="javascript" for=gr_newZipCd event=OnDblClick(Row,Colid)> str = ds_newZipCd.NameValue(Row,'dngAbAddr'); str = chkZipInfo(str); if (str != false) { parent.cfSetZipInfo(ds_newZipCd.NameValue(Row,'zipCd'), str); parent.cfClosePopup(); } </script>
<script language=JavaScript for=gr_newZipCd event=onKeyPress(keycode)> if ( keycode==13 && ds_newZipCd.RowPosition > 0) { str = ds_newZipCd.NameValue(ds_newZipCd.RowPosition,'dngAbAddr'); str = chkZipInfo(str); if (str != false) { parent.cfSetZipInfo(ds_newZipCd.NameValue(ds_newZipCd.RowPosition,'zipCd'), str); parent.cfClosePopup(); } } </script>
</head> <!----------------------------------------------------------------------------- 화면영역 시작 ------------------------------------------------------------------------------> <body class="popup_body" ondragstart="return false;" onselectstart="return true;" onLoad="addHandle(document.getElementById('toolbar'), window);"> <TABLE id="toolbar" class="popup_title_table"> <TR> <TD>우편 번호 검색</TD> <TD align=right><img src="<%= imagePath %>/Content_btn_close.gif" width="46" height="18" border="0" onclick="parent.cfClosePopup();"></TD> </TR> </TABLE> <div id="sampleTab" class="autotab"> <!-- ---------------------------------------------------------------------------------------------------------------------------[ 新 ]--> <div width="100%" class="childtab" title=" (신)우편번호 "> <div style="width:360px" class="layout_popup_page"> <div class="popup_addr_area"> <div class="popup_addr_area_con"> <form name="f" id="f" action="" onsubmit="return zip_search();"> <input type="hidden" name="roadNm" value="" /> <!-- 도로명 --> <input type="hidden" name="bldgMainNo" value="" /> <!-- 건물번호 본번 --> <input type="hidden" name="bldgSubNo" value="" /> <!-- 건물번호 부번 --> <input type="hidden" name="udrgrndYn" value="" /> <!-- 지하:1, 공중:2 --> <input type="hidden" name="dongNm" value="" /> <!-- 동이름 --> <input type="hidden" name="lndnMainNo" value="" /> <!-- 번지 본번 --> <input type="hidden" name="lndnSubNo" value="" /> <!-- 번지 부번 --> <input type="hidden" name="poboxNm" value="" /> <!-- 사서함명 --> <input type="hidden" name="poboxMainNo" value="" /> <!-- 사서함 시작 본번 --> <input type="hidden" name="poboxSubNo" value="" /> <!-- 사서함 시작 부번 --> <fieldset> <legend> <a href="http://www.epost.go.kr/popup/newaddressintro.html" onclick="return newaddrintro(this.href,event);" onkeypress="return newaddrintro(this.href,event);" target="_blank"> <img style="border:0px;" src="/images/al/clip.gif" alt="" /> 도로명주소 표기안내</a> </legend> <div class="ZiptopSchbox_sel"> <table border="0" cellSpacing="0" cellPadding="0"> <tr> <td style="padding-left:10px;"> <input type="radio" name="key" id="key1" value="road" onclick="chgkey(1);" checked/> <label for="key1"><strong>도로명+건물번호</strong></label> </td> <td style="padding-left:30px;"> <input type="radio" name="key" id="key2" value="dong" onclick="chgkey(2);" /> <label for="key2"><strong>동(읍/면/리)명+지번</strong></label> </td> </tr> <tr> <td style="padding-left:10px;"> <input type="radio" name="key" id="key3" value="bdnm" onclick="chgkey(3);" /> <label for="key3"><strong>건물명(아파트명 등)</strong></label> </td> <td style="padding-left:30px;"> <input type="radio" name="key" id="key4" value="pobox" onclick="chgkey(4);" /> <label for="key4"><strong>사서함+사서함번호</strong></label> </td> </tr> </table> </div> <div class="ZiptopSchbox"> <ul class="search_infoma"> <li id="road_show" style="display:block;">ex) 검색방법 : 서울시 중구 <strong>소공로 70</strong> <br> 예) '<strong>소공로</strong>(도로명) <strong>70</strong>(건물번호)'</li> <li id="dong_show" style="display:none; ">ex) 검색방법 : 서울시 중구 <strong>충무로1가 21-1</strong> <br> 예) '<strong>서울</strong>' 선택 후 '<strong>충무로1가</strong>(동명) <strong>21-1</strong>(지번)'</li> <li id="bdnm_show" style="display:none; ">ex) 검색방법 : 서울시 중구 <strong>중앙우체국</strong> <br> 예) '<strong>서울</strong>' 및 '<strong>중구</strong>' 선택 후 '<strong>중앙우체국</strong>(건물명)'</li> <li id="pobox_show" style="display:none; ">ex) 검색방법 : 강원도 고성군 <strong>사서함 71-28</strong> <br> 예) '<strong>사서함 </strong>(사서함명) <strong>71-28</strong>(사서함번호)'</li> </ul> <dl class="dlline" style="line-height:7px;"> <dt><strong><label for="sido">시도</label></strong></dt> <dd> <input id="sido_h" name="sido_h" type="hidden"> <select id="sido" name="sido" style="width:99px; font-family:'돋움','돋움체',arial,serif,sans-serif; font-size:100%; vertical-align: middle;" onchange="jsGetCode(document.f.sido.value);" title="시도 선택"> <option value="" selected='selected'>전체</option> <option value="서울">서울특별시</option> <option value="부산">부산광역시</option> <option value="대구">대구광역시</option> <option value="인천">인천광역시</option> <option value="광주">광주광역시</option> <option value="대전">대전광역시</option> <option value="울산">울산광역시</option> <option value="세종">세종특별자치시</option> <option value="강원">강원도</option> <option value="경기">경기도</option> <option value="경남">경상남도</option> <option value="경북">경상북도</option> <option value="전남">전라남도</option> <option value="전북">전라북도</option> <option value="제주">제주특별자치도</option> <option value="충남">충청남도</option> <option value="충북">충청북도</option> </select> </dd> <dt><strong><label for="sigungu">시군구</label></strong></dt> <dd> <select id="sigungu" name="sigungu" style="width:110px; font-family:'돋움','돋움체',arial,serif,sans-serif; font-size:100%; vertical-align: middle;" style="width:120px;" title="시군구 선택"> <option value="">전체</option> </select> </dd> </dl> <dl style="text-align:center;"> <dd> <input id="txt_keyword2" type="TEXT" class="input_text" title="검색어입력" style="IME-MODE:active;width:206px;background:url(/images/al/searchInputBg1.gif) #fff no-repeat 2px 1px" onclick="this.style.backgroundImage='';" onkeydown="this.style.backgroundImage='';txt_keyword2_event();" onblur="eventonblur(this);"> <input type="image" src="/images/al/search.jpg" alt="검색" /> </dd> </dl> </div> </fieldset> <fieldset style="padding-top:10px;"> <legend><img style="border:0px;" src="/images/al/clip.gif" alt="" /> 검색결과 : <input id=ds_newZipCd_txt type=text value="0" style="border-width:0px; width:10px; line-height:140%; text-align:right; color:#000000; background-color:#ffffff; FONT-WEIGHT: bold;">건</legend> <div class="table_layout" style="width:300px; margin:0px;"> <!--Grid Component--> <comment id="__NOSCRIPT_ID__"> <object id="gr_newZipCd" classid="<%=LGauceId.GRID%>" class="comn" style="width:350px;height:150px;"> <param name="DataID" value="ds_newZipCd"> <Param Name="AutoResizing" value=true> <param name="ColSizing" value=true> <Param Name="SortView" value="Right"> <Param Name="Editable" value=False> <Param Name="Format" value=' <c> id=zipCd name="ZIP" sort=true width=52 align=center mask="XXX-XXX" </c> <c> id=dngAbAddr name="신 주 소" sort=true width=247 align=left </c> <c> id=dngAbAddrOld name="구 주 소" sort=true width=247 align=left </c> <c> id=dngAbADdrEn name="영 문 주 소" sort=true width=247 align=left </c> '> </object> </comment> <SCRIPT>__ShowEmbedObject(__NOSCRIPT_ID__);</SCRIPT> </div> </fieldset> </form> </div> </div> </div> </div> <!-- ---------------------------------------------------------------------------------------------------------------------------[ 久 ]--> <div width="100%" class="childtab" title=" (구)우편번호 "> <div style="width:360px" class="layout_popup_page"> <div style="width:360px" class="search"> <span class="text"> 읍/면/동/건물명 : </span> <input id="txt_keyword1" type="TEXT" class="input_text" onkeypress="f_KeyPress(1)"> <input type="button" class="button_search" onClick="f_Retrieve(1)" value="검색"> </div> <div style="width:360px" class="table_layout"> <!--Grid Component--> <comment id="__NOSCRIPT_ID__"> <object id="gr_zipCd" classid="<%=LGauceId.GRID%>" class="comn" style="width:358;height:340px;"> <param name="DataID" value="ds_zipCd"> <Param Name="AutoResizing" value=true> <param name="ColSizing" value=true> <Param Name="SortView" value="Right"> <Param Name="Editable" value=False> <Param Name="Format" value=' <c> id=zipCd name=우편번호 sort=true width=70 align=center mask="XXX-XXX" </c> <c> id=dngAbAddr name=주소 sort=true width=247 align=left </c> '> </object> </comment> <SCRIPT>__ShowEmbedObject(__NOSCRIPT_ID__);</SCRIPT> </div> </div> </div> </div>
</body>
</html> |