//"; map.openInfoWindowHtml(this.getLatLng(), myHtml); }); map.addOverlay(marker); if (focusId != null && focusId == id) { map.setCenter(new GLatLng(lat, lng), 15); } } } }; var request = "xmlreq.php?"; request += "animal="+filter.animal.value+"&sex="+filter.sex.value+"&status="+filter.status.value+"&time="+filter.time.value; // alert(request); xhr.open("GET", request, true); xhr.send(null); } function setFilter(animal, sex, status, time) { if (animal == '') animal = "all"; if (sex == '') sex = "all"; if (status == '') status = "all"; if (time == '') time = "last"; filter = document.getElementById("filter"); filter.animal.value = animal; filter.sex.value = sex; filter.status.value = status; filter.time.value = time; } function showAddress(address) { if (this.geocoder) { this.geocoder.getLatLng( address, function(point) { if (point) { this.map.setCenter(point, 12); } } ); } } //]]>