		var map = null;
      var pinid = 0;
	  var zoomLevel=14;
	  var shape;            
       
            
      function GetHouseMap()
      {
        try
		{
			  
			map = new VEMap('myMap');
		 	map.LoadMap(); 
			map.SetZoomLevel(zoomLevel);
			
		 	FindLoc();
			 
		}
		catch(e)
		{
		 	//alert(e.message);
		}
		
	  }
      
      
	  
	  function FindLoc()
	  {
	      
	  	try
		{
		    map.Find(null, document.getElementById('txtWhere').value,null,null,0,1,false,false,true,true,AddPinPoints);
			              
		}
		catch(e)
		{
		//	alert(e.message);
		}
	  }
	  
	  function AddPinPoints(layer, resultsArray, places, hasMore, veErrorMessage)
      {
		try
		{
			
			if(places != null)
			{
				var shape = new VEShape(VEShapeType.Pushpin, places[0].LatLong);
				shape.SetTitle(document.getElementById('txtLocationName').value);
				shape.SetDescription(document.getElementById('txtWhere').value);
				pinid++;
          		map.AddShape(shape);
				map.SetCenterAndZoom(places[0].LatLong, zoomLevel);
         	}
		}
		catch(e)
		{
		//	alert(e.message);
		}
	}
		
