// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function updateLocation(lat_field, lon_field, point) {
	document.getElementById(lat_field).value = point.y;
	document.getElementById(lon_field).value = point.x;
}

function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
}