This small script can be used to integrate a location picker into other applications. When called, it displays a Google Map. Clicking on a location, sends back the coordinates into the configured textfields.
View source for details on calling the GLocationPicker.js script.