function load( lat, lon, img_logo, nombre, direccion, codigo_postal, 
		ciudad, zona, web_href, mail, verficha )
{
	if( GBrowserIsCompatible() )
	{
		var map = new GMap2( document.getElementById( "map" ) );
        
		// centrado y zoom (10 es toda la isla)"
		map.setCenter( new GLatLng( lat, lon ), 17 );	

		map.addControl( new GLargeMapControl() );
		map.addControl( new GMapTypeControl() );
		map.addControl( new GOverviewMapControl() );
		
		
		var icon = new GIcon();
 		icon.image = "images/logo_tu_en_googlemap.jpg";
 		icon.shadow = "images/sombra_logo_tu_en_googlemap.png";
 		icon.iconSize = new GSize( 50, 38 );
 		icon.shadowSize = new GSize( 75.0, 38.0 );
 		icon.iconAnchor = new GPoint ( 15, 40 );
 		icon.infoWindowAnchor = new GPoint( 15, 1 );
 
		var M_TU = new GMarker( new GPoint( lon, lat ), icon );
					
 		map.addOverlay( M_TU );

		GEvent.addListener( M_TU, "click", 
			function()
			{
				M_TU.openInfoWindowHtml(
					'<p align="justify" class="www">' +
						unescape( img_logo ) + '<b>' + nombre + '</b><br> ' + 
						direccion + '. ' + codigo_postal + '. ' + ciudad + 
						'<br> ' + zona + '<br> ' + unescape( web_href ) + 
						'<br> ' + mail + ' ' + verficha +
					'</p> ' +
					'<img src="images/logo_tu_en_googlemap_texto.gif" ' + 
							'width="124"  height="23" border="0"  ' +
							'alt="Tarjeta &Uacute;til">' );
		 	} );
	}
}

function Trim(cadena)
{
	for(i=0; i<cadena.length; )
	{
		if(cadena.charAt(i)==" ")
			cadena=cadena.substring(i+1, cadena.length);
		else
			break;
	}

	for(i=cadena.length-1; i>=0; i=cadena.length-1)
	{
		if(cadena.charAt(i)==" ")
			cadena=cadena.substring(0,i);
		else
			break;
	}
	
	return cadena;
}

function email_es_valido(str) {

	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)

	if (lat==-1 || lat==0 || lat==lstr){
	   return false
	}

	if (ldot==-1 || ldot==0 || ldot==lstr){
	    return false
	}

	 if (str.indexOf(at,(lat+1))!=-1){
	    return false
	 }

	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	    return false
	 }

	 if (str.indexOf(dot,(lat+2))==-1){
	    return false
	 }
	
	 if (str.indexOf(" ")!=-1){
	    return false
	 }

	 return true					
}	