Example of using Polygons/Polylines with the Google Maps API

Example of using Polygons/Polylines with the Google Maps API

  
Hello all:

I have a real estate search engine that uses the google map api to map out properties returned by the search engine. I now want to take the next step and allow users the ability to draw polygons on the map to change the coordinates of their search. I seen a few brief references in the forum but no one has posted an example. Does anyone have one that I can learn from?? Any help is greatly appreciated.

Julius