function goMap24() {
    //Load core API and wrapper classes
    Map24.loadApi( ["core_api", "wrapper_api"] , map24ApiLoaded );
  }

  //If function name was defined in the loadApi() function,  
  //this function is called when the API was loaded
  function map24ApiLoaded(){
    //Initialize mapping client
    Map24.MapApplication.init( { NodeName: "maparea" } );
	
	
	Map24.MapApplication.center( {
		Longitude:-2631.244384765625, 
		Latitude:-1199.5111083984375, 
		MinimumWidth: 1000
	} );
	
	//Create a new location. 
    myLoc = new Map24.Location({
      Longitude: -2631.244384765625,
      Latitude: -1199.5111083984375
    });
    //Commit the location. Only after calling commit() it is possible 
    //to execute further operations on the location such as hide and show.
    myLoc.commit();
  }
  
  //Geocode an address.
  //The address is provided in the searchText parameter as free text.
  function geocode( searchText ){
    if(Map24.trim( searchText ) == "") { alert("Please enter an address."); return; }
  
    var geocoder = new Map24.GeocoderServiceStub();
    //Geocodes the address. The address is passed in the Search field. The Alternatives field defines the number
    //of geocoded addresses that are returned in the response. You must pass the name of the callback function
    //that is called as soon as the client has received the response.
    geocoder.geocode( { SearchText: Map24.trim( searchText ), MaxNoOfAlternatives: 10, CallbackFunction: printResult } );
  }
    
  //Callback function that is called after the client has received the response.
  //This function accesses the array of geocoded addresses and shows them in a list.
  //The elements of this array are objects of the type Map24.Location.
  function printResult( locs ){
    //Center the map view on the first element in the array of geocoded addresses. A Map24.Location object has several
    //methods and properties which you can find in the API documentation for the corresponding class.
    Map24.MapApplication.center( { Longitude: locs[0].getLongitude(), Latitude: locs[0].getLatitude(), MinimumWidth: 2500 } );
    
    //Create a list that shows the results.
    var result = "<br /><center><b>Search results:</b></center><hr />";
    
    //Iterate through the array of locations.
    for( var i=0; i<locs.length; i++ ){
      
      //Output all relevant properties of all locations.
      result += "<b>Result Nr."+(i+1)+"</b><br />";  
      
      result += "Longitude "+[i+1]+": "+locs[i].getLongitude()+"<br />";
      result += "Latitude "+[i+1]+": "+locs[i].getLatitude()+"<br />";
 
      result += "City: "+locs[i].getCity()+"<br />";
      result += "Zip: "+locs[i].getZip()+"<br />";
      result += "County: "+locs[i].getCounty()+"<br />";
      result += "State: "+locs[i].getState()+"<br />";
      result += "Country: "+locs[i].getCountry()+"<br />";
      result += "<input type=\"button\" value=\"Center on Result\" onclick=\"Map24.MapApplication.center( {Longitude: "+locs[i].getLongitude()+", Latitude: "+locs[i].getLatitude()+"});\" />";            
      result += "<hr/>";
    }
    document.getElementById("geocodingresults").innerHTML = result;      
  }