How to change the attributes of a marker on google map
<p>I am creating a marker on google map</p>

<pre><code>function initialize() {
var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
var mapOptions = {
zoom: 6,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
 }

var map = new google.maps.Map(document.getElementById('map'), mapOptions);

var marker = new google.maps.Marker({
position: myLatlng,
map: map,
draggable: true,
title: 'Hello World!',
type: 'point'
icon : blue.png  
});
}
</code></pre>

<p>Now here if I want to change the Position of the Marker I can use </p>

<pre><code>var lat=43.88632569, var lon=-83.53269589
var position = new google.maps.LatLng(lat, lon);
marker.setPosition(position);
</code></pre>

<p>Is there any way through which I can change the Icon of the Existing Marker
like </p>

<pre><code>marker.seticon(green.png);
</code></pre>