     
     
     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.Map.addListener( "Map24.Event.MapClick", mapClicked );  
    }

    /*function OpenPopUp() 
    {           
        //window.open("http://www.google.de","myWin","toolbar=0, height=400 , width=500" );
        window.open('http://localhost:49573/OnlineBrowser.aspx','myWin','toolbar=0, height=400 , width=500' )
        window.focus();            
    }*/
    
    function mapClicked( e )
    {
        var content = "<br /><center><b>It was clicked on the following coordinates of the map:</b></center><hr />"+
                        "Longitude: "+ e.Coordinate.Longitude +"<br />  Latitude: " +e.Coordinate.Latitude +
                        "<br />  Stadt: " +loc.getCity();
        document.getElementById("coordinates").innerHTML = content;         
        e.stop();    
    }
  
   function ShowCoor()
   {
        var lat = myLoc.getLatitude();    
        var log = myLoc.getLongitude();    
        alert("Latitude: "+lat);
        alert("Longitude: "+log);
   }

