function mapInit() {

var lat=document.getElementById('lat').value;
var lng=document.getElementById('lng').value;

 // Set the options to be used when creating the map
 var myOptions = {
 	zoom: 0,
 	center: new google.maps.LatLng(0, 0),
 	mapTypeId: google.maps.MapTypeId.ROADMAP
 };

 // Crea el mapa en el div indicado
 map = new google.maps.Map(document.getElementById("map"), myOptions);

 // Create a new latlng based on the latitude and longitude from the user's position
 var user_lat_long = new google.maps.LatLng(lat, lng);

 // Add a marker using the user_lat_long position
 var marker = new google.maps.Marker({
 	position: user_lat_long,
 	map: map
 });


 map.setCenter(user_lat_long);
 map.setZoom(14);

 
 }

 google.setOnLoadCallback(mapInit);
