Problem with printing Javascript
<p>I'm not the best with Javascript and I seem to have got stuck.</p>

<p>I have a map in place and I need the Lat/Long for a location (that's fine) but the output comes in an alert box. I just need the values themselves.</p>

<p><strong>E.g</strong> document.write(latt); document.write(longg);</p>

<p>At the moment this is the code that outputs the box:</p>

<pre><code>function showPointLatLng(point)
{
    alert("Latitude: " + point.lat() + "\nLongitude: " + point.lng());
}
</code></pre>

<p>Any help would be great, Thanks!</p>

<p><strong>P.S</strong></p>

<p>I think this is the controller:</p>

<pre><code>function usePointFromPostcode(postcode, callbackFunction) {

    localSearch.setSearchCompleteCallback(null, 
        function() {

            if (localSearch.results[0])
            {       
                var resultLat = localSearch.results[0].lat;
                var resultLng = localSearch.results[0].lng;
                var point = new GLatLng(resultLat,resultLng);
                callbackFunction(point);
            }else{
                alert("Postcode not found!");
            }
        }); 

    localSearch.execute(postcode + ", UK");
}
</code></pre>
