			function showInfo(text) 
			{
			
				
				
				
			}
			
			function HidInfo()
			{
				over.visibility = "hidden"
			}
			
			//添加
			function Add(sDisName,sInfo,sX,sY,imgSrc)
			{
				
				var objMainMap=document.all.MainMapRegion;
				var x = parseInt(sX)-parseInt(document.all[document.all.hidMapLastLeft_id.value].value);	
				var y = parseInt(sY)-parseInt(document.all[document.all.hidMapLastTop_id.value].value);		
				
				
				x=x*parseFloat(document.all.hidMapRate.value);
				y=y*parseFloat(document.all.hidMapRate.value);
				//x=x*0.36;
				//y=y*0.36;
				
				if(y<parseInt(objMainMap.height) && x<parseInt(objMainMap.width) && y>0 && x>0 )
				{
				
					x=x+objMainMap.offsetLeft-8;
					y=y+objMainMap.offsetTop-8;
					
					var imgStyle="position:absolute; Left:" +x+ "; Top:" +y+ ";";			
					x=x+15;
					y=y-5;
					var sStyle="background-color:#ffffff;BORDER-TOP:black 1px solid; position:absolute;BORDER-RIGHT:black 1px solid; BORDER-TOP:black 1px solid; BORDER-LEFT:black 1px solid; BORDER-BOTTOM:black 1px solid ; Left:" +x+ "; Top:" +y+ ";";			
					
					//var divNode = "<img src='"+imgSrc+"' align='left' style='"+imgStyle+"' ><div style='"+sStyle+"' onmouseover="+"showInfo('"+escape(sInfo)+"');" + " onmouseout=" + "HidInfo();" + " >"+sDisName+"</div>";
					var divNode = "<img src='"+imgSrc+"' align='left' style='"+imgStyle+"' onmouseover="+"showInfo('"+escape(sInfo)+"');" + " onmouseout=" + "HidInfo();>";
					
					document.all.GisMap.insertAdjacentHTML("beforeEnd",divNode);
				
				}
			}
			
			//初始化地图
			function IniMap()
			{
				
				try{
					var ReportDate="";
					
					var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
					xmlDoc.async = false;
					xmlDoc.loadXML(document.all[document.all.idOfhidMapDataXml.value].value);	
					
					//显示点位信息
					var Nodes = xmlDoc.selectNodes("Map/Place");
					document.all.GisMap.innerHTML="";
				
					for(var i=0;i<Nodes.length;i++)
						{
						
							
							Add(
								Nodes.item(i).getAttribute("areaname"),
								Nodes.item(i).getAttribute("info"),
								Nodes.item(i).getAttribute("ileft"),
								Nodes.item(i).getAttribute("itop"),
								Nodes.item(i).getAttribute("img")					
							);
							
						
						
							//ReportDate=Nodes.item(i).getAttribute("ReportDate");
						}
				
				
				
					
				
					//显示图例
					
					if(document.all.hidShowLegend.value=="1")
					{
						var LegendNode = xmlDoc.selectSingleNode("Map/Legend");
					
					
						
														
						
						var oDivLegend=document.all.DivLegend;
						
						oDivLegend.innerHTML=LegendNode.getAttribute("content");
						var offset = 2;
						switch(document.all.hidLegendPosition.value)
						{
							case "LeftTop":
								oDivLegend.style.left=document.all.MainMapRegion.offsetLeft+offset;
								oDivLegend.style.top=document.all.MainMapRegion.offsetTop+offset;
								break;
							case "LeftBottom":
								oDivLegend.style.left=document.all.MainMapRegion.offsetLeft+offset;
								oDivLegend.style.top=document.all.MainMapRegion.offsetTop+document.all.MainMapRegion.height-oDivLegend.offsetHeight-offset;
								break;
							case "RightTop":
								oDivLegend.style.left=document.all.MainMapRegion.offsetLeft+document.all.MainMapRegion.width-oDivLegend.offsetWidth-offset;
								oDivLegend.style.top=document.all.MainMapRegion.offsetTop+offset;
								break;
							case "RightBottom":
							default:
								oDivLegend.style.left=document.all.MainMapRegion.offsetLeft+document.all.MainMapRegion.width-oDivLegend.offsetWidth-offset;
								oDivLegend.style.top=document.all.MainMapRegion.offsetTop+document.all.MainMapRegion.height-oDivLegend.offsetHeight-offset;
								break;
						}
					}
						
						
					
					
				}
				catch(e)
				{
				}
				
				
				//if(ReportDate!="")
				//{
				//	document.all.divTitleDate.innerHTML="("+ReportDate+")";
				//}
				
				
			}
			
			
			
			function GetHidObject(objectID)
			{
				var obj;
				var objReturn;
				for(var i=0;i<document.forms[0].elements.length;i++)
				{
					
					obj=document.forms[0].elements[i];
					
					if(obj.id.indexOf(objectID)>0)
					{
						objReturn=obj;
						break;
					}
					
				}
				return objReturn;
			}
			
			
