﻿<!--

	var dong = setLocation_GetClickDongData(x, y);  // setLocation.js
	
	if(dong == "-999") {
		alert("지도상의 위치를 잘못 클릭하였습니다. 다시클릭해 주십시오.");
		return;
	} else {
		if (code == 3) {//출발지 선택
			top.leftFrame.startField.innerHTML = dong ;
			top.leftFrame.startButton.innerHTML = "";
	        top.leftFrame.startSelectMap.innerHTML = "<a href='#' onclick='onSearch_route_selectStartMap()';><img src='/image/MapService/map_bu009.gif' width='55' height='18' border='0' align='absmiddle' onClick='routeRestart();' style='cursor:hand' border='0'></a>";
            top.leftFrame.routeSearch.start_x.value = Math.round(x);
            top.leftFrame.routeSearch.start_y.value = Math.round(y);

		}
		else if (code == 4) {//도착지 선택
			top.leftFrame.endField.innerHTML = dong ;
			top.leftFrame.endButton.innerHTML = "";
	        top.leftFrame.endSelectMap.innerHTML = "<a href='#' onclick='onSearch_route_selectEndMap()';><img src='/image/MapService/map_bu009.gif' width='55' height='18' border='0' align='absmiddle' onClick='routeReEnd();' style='cursor:hand' border='0'></a>";
            top.leftFrame.routeSearch.arrival_x.value = Math.round(x);
            top.leftFrame.routeSearch.arrival_y.value = Math.round(y);

		}
		else if (code == 1) { 

            top.leftFrame.document.myLocation_selectMap.pointX.value = x;
            top.leftFrame.document.myLocation_selectMap.pointY.value = y;
            top.leftFrame.document.myLocation_selectMap.dong.value = dong;
            
            setLocation_resetMap();
            setLocation_DrawBufferCircle(x, y);
            
	        top.leftFrame.document.myLocation_selectMap.action = "lineInfo_myLocation_BusstopList.asp";
	        top.leftFrame.document.myLocation_selectMap.target = "busstopList";

	        top.leftFrame.document.lineList.location.replace('blank.asp');
	        top.leftFrame.document.myLocation_selectMap.submit();	
		}
	}

-->


