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+"
"; //OutZipList+= z.channel.sql + "("+ z.channel.result+")"; outList=""; for (var i = 0; i < z.channel.item.length; i++) { if ((i % 2)==0) { tBgcolor="#FFFFFF"; } else { tBgcolor="#E8E8E8"; } v_StationType =obj.escapeHtml(z.channel.item[i].StationType); v_SiDo =obj.escapeHtml(z.channel.item[i].SiDo); v_LineNumber =obj.escapeHtml(z.channel.item[i].LineNumber); v_StationName =obj.escapeHtml(z.channel.item[i].StationName); v_StationNumber =obj.escapeHtml(z.channel.item[i].StationNumber); v_Addr_Full =obj.escapeHtml(z.channel.item[i].Addr_Full); v_X_longitude =obj.escapeHtml(z.channel.item[i].X_longitude); v_Y_latitude =obj.escapeHtml(z.channel.item[i].Y_latitude); v_transferStation=obj.escapeHtml(z.channel.item[i].transferStation); tarUrl="onclick='disPosInfo(\""+v_StationType+"\", \""+v_StationName+"\", \""+v_Addr_Full+"\", \""+v_X_longitude+"\", \""+v_Y_latitude+"\");'"; cur_FullAddr=v_StationName; if (v_transferStation.length>0) { cur_FullAddr=cur_FullAddr+' (ȯ½Â:'+v_transferStation+')'; } lineStr="
"; lineStr+=""; lineStr+=cur_FullAddr; lineStr+=""; lineStr+="
"; //lineStr="
"+cur_FullAddr+""; OutZipList+=lineStr; } document.getElementById("resultlist_DIV").style.display="block"; document.getElementById("resultlist_DIV").focus(); //alert("outList="+outList); document.getElementById("resultlist_DIV").innerHTML=OutZipList; }, // HTMLÅÂ±× ¾È ¸Ô°Ô ÇÏ´Â ÇÔ¼ö escapeHtml : function(str) { str = str.replace(/&/g, "&"); str = str.replace(/</g, "<"); str = str.replace(/>/g, ">"); return str; } }; ///////////// JSON Verson///////////////// var ArryForAct_setPos= new Array(200); function HandleErrFullPage(strIn) { var errorWin; if (strIn>"") { try { errorWin = window.open('', 'errorWin'); errorWin.document.body.innerHTML = strIn; }catch(e){ alert('¼­¹ö Åë½ÅÁß¿¡ ¿¡·¯°¡ ¹ß»ýÇß½À´Ï´Ù. Áö¼ÓÀûÀ¸·Î ¹®Á¦°¡ ¹ß»ýÇÏ¸é °³¹ßÀÚ¿¡°Ô ¹®ÀÇÇϼ¼¿ä.'); } } else { alert('¼­¹ö Åë½ÅÁß¿¡ ¿¡·¯°¡ ¹ß»ý. Áö¼ÓÀûÀ¸·Î ¹®Á¦ ¹ß»ýÇÏ¸é °³¹ßÀÚ¿¡°Ô ¹®ÀÇ ¿ä¸Á.'); } }; /* 500 error ó¸®ÇÔ¼ö... */ function redirect(x) { var Fm = document.SubWay; var LNameOpt=Fm.LName; for (m=LNameOpt.options.length-1; m>=0; m--) { LNameOpt.options[m]=null; } if (document.getElementById("SType").value=="ÁöÇÏö¿ª") { for (i=0;(i