document.write(""); document.write("
"); document.write(""); var objHTTP=null; var XML_FileName="xml_subway.asp"; var si_idx; var gu_idx; var OutZipList; var a_RIM=RegExp("BlackBerry").test(navigator.userAgent); var a_IE=RegExp("MSIE ").test(navigator.userAgent); var a_OperaMobile=RegExp("Opera Mobi").test(navigator.userAgent); var a_Opera=RegExp("Opera").test(navigator.userAgent); var a_Webkit=RegExp(" AppleWebKit/").test(navigator.userAgent); var a_Apple=RegExp("iPhone").test(navigator.userAgent); var a_iPhone3=RegExp("OS 3").test(navigator.userAgent); var a_Android=RegExp("Android").test(navigator.userAgent); var a_Android2=RegExp("Android 2").test(navigator.userAgent); var a_WebOS=RegExp("webOS").test(navigator.userAgent); if (a_RIM) a_IE=false; if (a_OperaMobile) a_IE=false; if (a_Opera) a_IE=false; if (a_Webkit) a_IE=false; if (a_Apple) a_IE=false; if (a_iPhone3) a_IE=false; if (a_Android) a_IE=false; if (a_Android2) a_IE=false; if (a_WebOS) a_IE=false; //function $(objectName) { return document.getElementById(objectName); }; function show_loadingIcon() { if (!document.getElementById("loading_img")) return; document.getElementById('loading_img').style.display = "block"; if (document.getElementById("Loading_ErrorMsg")) { document.getElementById('Loading_ErrorMsg').style.display = "none"; } }; function hide_loadingIcon() { if (!document.getElementById("loading_img")) return; document.getElementById('loading_img').style.display = "none"; if (document.getElementById("Loading_ErrorMsg")) { document.getElementById('Loading_ErrorMsg').style.display = "none"; } }; function show_ErrorMsg() { if (!document.getElementById("Loading_ErrorMsg")) return; document.getElementById('Loading_ErrorMsg').style.display = "block"; if (document.getElementById("loading_img")) { document.getElementById('loading_img').style.display = "none"; } }; function hide_ErrorMsg() { if (!document.getElementById("Loading_ErrorMsg")) return; document.getElementById('Loading_ErrorMsg').style.display = "none"; if (document.getElementById("loading_img")) { document.getElementById('loading_img').style.display = "none"; } }; ///////////// JSON Verson///////////////// var JSON_FileName="http://OpenAPI.emmaru.com/addr/json_add.asp"; function GetInfoAddress_JSON() { if ((event.keyCode == 13) || (event.keyCode == 0) || (event.keyCode == undefined) ) { // 13:enter Å°, 0:·Î±×ÀÎ ¹öÆ° ¸¦ ÃÆÀ» °æ¿ì submit var URL = JSON_FileName; var Parms = "SType="+ document.getElementById("SType").value + "&LName="+ document.getElementById("LName").value + "&callback=obj.pongSearch"; URL += "?" + Parms; obj.pingSearch(URL); } }; var waiting_time=0; var obj = { init : function() { }, // °Ë»öÀ» ¿äûÇÏ´Â ÇÔ¼ö pingSearch : function(url) { obj.s = document.createElement('script'); obj.s.type ='text/javascript'; obj.s.charset ='euc-kr'; obj.s.src = url; document.getElementsByTagName('head')[0].appendChild(obj.s); obj.s.onreadystatechange=function() { cur_pingSate=obj.s.readyState; if(obj.s.readyState=='complete'){ waiting_time=0; hide_loadingIcon(); } } show_loadingIcon(); waiting_time=1; setTimeout(function(){if (waiting_time!=0) { hide_loadingIcon(); show_ErrorMsg(); setTimeout(hide_ErrorMsg, 2000); }},5000) }, // °Ë»ö °á°ú¸¦ »Ñ¸®´Â ÇÔ¼ö pongSearch : function(z) { waiting_time=0; hide_loadingIcon(); if (z.channel.item.length<=0) { alert("°Ë»ö °á°ú°¡ ¾ø½À´Ï´Ù."); } var lineStr, outList, OutZipList; OutZipList="" + document.getElementById("SType").value + " > " + document.getElementById("LName").value + " °á°ú "+z.channel.item.length+"