function arregla_fechas()
{
	desdetemp=$('#desdetemp').val();
	desdetemp1=desdetemp.substr(0,6);
	desdetemp2=desdetemp.substr(8,2);
	hastatemp=$('#hastatemp').val();
	hastatemp1=hastatemp.substr(0,6);
	hastatemp2=hastatemp.substr(8,2);
	$('#desde').val(desdetemp1+desdetemp2);
	$('#hasta').val(hastatemp1+hastatemp2);
}

var map=null;
var ruta=null;
var iniQuery=0;
function google_map(){
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("mapa"));		
		map.setCenter(new GLatLng(41.8555052, 3.1399011), 9);

/*		Icono = new GIcon(G_DEFAULT_ICON);	
		Icono.image = base_url+"templates/css/imagenes/icono_google_map.png";
		Icono.iconSize = new GSize(38,46);
		Icono.shadow="";		
		markerOptions = { icon:Icono};*/
		var geocoder = new GClientGeocoder();
		geocoder.getLatLng(
			"Josep Pla 43, 17230, Palamos, Girona, ES",
			function(point) {
			  if (!point) {
				alert(address + " not found");
			  } else {
				var marker = new GMarker(point);
//				crea_evento(marker);
				map.addOverlay(marker);
			  }
			}
		  );
		map.setUIToDefault();
		map.disableScrollWheelZoom();
	}
}
