<script>
navigator.geolocation.getCurrentPosition(GetLocation);
function GetLocation(location) {
document.getElementById('item2_text_1').value=location.coords.latitude;
document.getElementById('item4_text_1').value=location.coords.longitude;
}</script>