I tried to show the distance between two markers with the following
script:

******************************************


<script = "text/javascript">


function showDistance() {
GLatLng(marker1.getPoint().distanceFrom(marker2.getPoint());



}


</script>

<body>


<form>
<input type="button"
onclick="showDistance()"
value="Distance">
</form>


</body>


******************************************************


Could you possibly check to see if there is anything wrong with this
short bit of code.


Do I need to name the markers or are there any other mistake that you
can see.


Thanks for your help.