    var map; 
    var coder;

    function muti(id, cim) {
		$(id).style.display='none';
		
		if (GBrowserIsCompatible()) {	
		    coder = new GClientGeocoder();
		    coder.setBaseCountryCode('hu');
    		
		    coder.getLocations(cim+', Hungary', function(response) {
			 
			    if (response && response.Status.code != 200) {
					alert('Nem áll rendelkezésre térkép');
			    } else { 
		    		$(id).style.width="640px";
					$(id).style.height="480px";
			
					$(id).style.display="block";
					$(id).style.border="3px solid black";
					$(id).style.margin="10px 0";
					
			    	map = new GMap2($(id), new GSize(640, 480));

				    map.addControl(new GLargeMapControl());
				    map.addControl(new GMapTypeControl());
		    
		    		var place = response.Placemark[0];
					var point = new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]);
		    		map.setCenter(point, 16);
					/*map.addOverlay(new GMarker(point));*/
		    		map.openInfoWindowHtml(point, place.address);
			    }
			
			});
		} else {
			alert('A böngésző nem támogatja a térképalkalmazást');
		}
    }
    
