This is my javascript code...

var map = new nokia.maps.map.Display(mapContainer,
{
center: [21.00, 73.0],
zoomLevel: 10,
components:
[
infoBubble,
new nokia.maps.map.component.ZoomBar(),
new nokia.maps.map.component.Behavior()
]
});
var coord=map.pixelToGeo();
var lat,lon;
map.addListener("click",function(evt)
{
coord = map.pixelToGeo(evt.displayX, evt.displayY);
lat = coord.latitude;
lon = coord.longitude;
myfunction(lat,lon);
},true);
function myfunction(lat,lon)
{
var marker = new nokia.maps.map.Marker([lat, lon],
{
draggable: true
});
marker.addListener("click", function (evt)
{
alert("clicked on marker");
});
map.objects.add(marker);
}

my problem is, when i click on marker, it is considered both as "click on map" and "click on marker", and puts another marker on map.... i dont want new marker.. need help..