<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp" -->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (getconfig("SK_Office")="0" AND (Session("Manager")="1" OR (JudgePopedomTF(Session("UserName"),"SK100000000") AND JudgePopedomTF(Session("UserName"),"SK100000701")))) then Call ReturnError()%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>电子地图查询</title>
<META http-equiv=Page-Enter content=SKCRM>
<META http-equiv=Page-Exit content=SKCRM>
<META content="MSHTML 6.00.3790.2858" name=GENERATOR>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../Inc/Check.js"></script>
<script language="javascript" src="../Inc/Calendar.js"></script>
<script language="javascript" src="../Inc/jquery.js"></script>
<SCRIPT language=javascript src="../inc/Openwin.js"></SCRIPT>
<SCRIPT language=javascript src="js/newSelectCity.js"></SCRIPT>
<SCRIPT language=JavaScript src="js/cityOptionfunction.js"></SCRIPT>
<SCRIPT type=text/JavaScript>
<!--

function printAll(){
	document.maplet.focus();
	document.maplet.print();
}
function openHelp() {
	window.open('','','menubar=no,height=318,width=684,scrollbars=no, resizable=no')
}

	function checks(t){
	  szMsg="[#_%&'\",;:=!^]";
	  alertStr="";
	  for(i=1;i<szMsg.length+1;i++){
		if(t.indexOf(szMsg.substring(i-1,i))>-1){
		  alertStr="请勿包含非法字符如[#_%&'\",;:=!^]";
		  break;
		}
	  }
	  if(alertStr != ""){
		alert(alertStr);
		return false;
	  }
	  return true;
	}
function nameToCode(obj_value){
	var cityN = TextCopy(obj_value);
	var districtCode 	= cityN[2];
	maplet.location.href = "map.asp";
}
function nameToCode2(obj_value){
	alert("strName="+obj_value);
	maplet.location.href = "SK.MapIndex.asp?City="+obj_value;
}


function addPoint(strlatlon,slabel,html){	
	maplet.maplet.clean();
	maplet.maplet.addIcon('../images/logo.gif',strlatlon,slabel,html,1);
	maplet.maplet.refresh();
}

function makeIt(){
	maplet.maplet.setMode("bookmark", callback);
}

function foundCity(str){
 var cityResult ="";
 for(var i=0;i<str.length;i++){//从第二个字符开始
  var strcity1=str.substring(0,i+1); //香港
  if(TextCopy(strcity1)[0]==""){
   var strcity2=str.substring(0,i+1)+"市";
   if(TextCopy(strcity2)[0]!=""){
    cityResult=strcity2;
    break;
   }
  }
  else{
   cityResult=strcity1;
   break;
  }
 }
 return cityResult;
}


function cityOption(city){
	city = foundCity(city);
	if(city=="")city="深圳市";
	var city2 = document.getElementById("selectCityId2");
	city2.value = city;
	if (city.indexOf("省") > 0 || city.indexOf("自治区") > 0 || city.indexOf("行政区") > 0 || city == "内蒙古") {
      alert("请选择省会中的城市.");
      return;
     }
	
	var cityN = TextCopy(city);
	returnSelectCity(cityN);
}
function returnSelectCity(cityN) {
	var  	strlatlon	= cityN[0];
	var i 				= cityN[1];
	var districtCode 	= cityN[2];
	if(maplet.maplet &&strlatlon  ){
		maplet.maplet.setCenter(strlatlon);		
		maplet.maplet.setZoomLevel(8);
		if(i =="全国")
		{
			maplet.maplet.setZoomLevel(1);
		}
	}
}
		
function operatePoiInfoFrame()	{

	document.getElementById("PoiInfo").style.display = "block";
	if(parseInt(PoiInfoForm.poiFrameHrefSign.value)==1) {
		document.getElementById("PoiInfoFrame").style.display = "none";
		document.getElementById("poiFrameShow").style.display = "block";
		document.getElementById("poiFrameHide").style.display = "none";
		PoiInfoForm.poiFrameHrefSign.value="0";
	} else {
		document.getElementById("PoiInfoFrame").style.display = "block";
		document.getElementById("poiFrameShow").style.display = "none";
		document.getElementById("poiFrameHide").style.display = "block";
		PoiInfoForm.poiFrameHrefSign.value="1";
	}
}

		function hideAddPoiInfo()	{
			PoiInfo.style.display = "none";
			var poiObj = parent.getPoiById("UserMark");
			if(poiObj!=null) {
				delPoi(poiObj);
			}
		}
		var xCtr = "";
function submitForm(obj){
	document.subform.query.value = obj;
	subform.submit()
}
function initcity(city){
	city = foundCity(city)||"深圳市";

(document.getElementById("selectCityId2")).value=city;
}	

//-->
</SCRIPT>
<style type="text/css">
<!--
body {
margin: 5px 0px 5px 0px;
overflow-x: hidden;
}
-->
</style>
</head>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<TBODY>
<tr>
<td class="SK_Td_Top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="25"><img src="../images/tab_03.gif" width="12" height="25" /></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46%" valign="middle">电子地图查询</td>
<td width="54%"></td>
</tr>
</table></td>
<td width="16"><img src="../images/tab_07.gif" width="16" height="25" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" background="../images/tab_12.gif"></td>
<td>

<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
<tr>
  <td width="38%" class="SK_Text"><a href="javascript:void(0)" onClick="javascript:maplet.maplet.setMode(1)"><img src="../images/SK_07.gif" alt="放大地图" name="Image3"  border="0" id="Image3" /></a><a href="javascript:void(0)" onClick="javascript:maplet.maplet.setMode(2)"><img src="../images/SK_08.gif" alt="缩小地图" name="Image4"  border="0" id="Image4" /></a><a href="javascript:void(0)" onClick="javascript:maplet.maplet.setMode(3)"><img src="../images/sk_09.gif" alt="移动地图" name="Image5"  border="0" id="Image5" /></a><A onClick="window.print()" href="javascript:void(0)"><img src="../images/sk_14.gif" border="0" alt="打印当前地图"></A><A onClick="javascript:maplet.maplet.setMode(11)" href="javascript:void(0)"><img src="../images/sk_13.gif" border="0" alt="测距"></A></td>
  <td width="62%" class="SK_Text1"><select id=selectCityId2 style="WIDTH: 120px" 
            onchange=javascript:cityOption(this.value) name=City>
          <script>document.write(initCityOption("","","&nbsp;├","&nbsp;└"));</script>
        </select></td>
</tr>
<tr>
<td colspan="2" class="SK_Text">
<iframe id="" name=maplet marginwidth=0 marginheight=0 src="SK.GetMap.asp" frameborder=0 width=100%                   scrolling=no height=600></iframe>
</td>
</tr>
</table>

</td>
<td width="8" background="../images/tab_15.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="SK_Td_Foot">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" height="20"><img src="../images/tab_18.gif" width="12" height="20" /></td>
<td width="98%" class="SK_Td_Page"></td>
<td width="1%"><img src="../images/tab_20.gif" width="16" height="20" /></td>
</tr>
</table>

</td>
</tr>
</TBODY>
</table>
</body>
<%
Call CloseDB()
%>
</html>