change fill color of esri.toolbars.Draw.EXTENT

Discussion created by on Apr 27, 2010
Latest reply on May 9, 2010 by
I want to change the fill color of the esri.toolbars.Draw.EXTENT box on the fly while it is being drawn on the map to show the user has reached some limit.  How do I do that?  Through Firebug I've found the node that contains the fill information and it looks like this:
<g id="map_graphics_layer" style="display: block;" transform="matrix(1, 0, 0, 1, 0, 0)"><rect fill="rgb(0, 0, 0)" fill-opacity="0.25" stroke="rgb(255, 0, 0)" stroke-opacity="1" stroke-width="2" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="522" y="177" width="26" height="19" stroke-dasharray="none" dojoGfxStrokeStyle="solid" fill-rule="evenodd"/></g>

Programmatically, I'm able to  get that node using var extentBox = dojo.byId("map_graphics_layer").  And I can see the rect element but how do I edit the fill attribute?

Any help would be appreciated.