function onLocationFound(e) { var a = e.latlng window.latr = String(a).substring(7,15); window.lngr = String(a).substring(16,25); ......