removed commented code and cleaned getObjectColor()
Removed dependency on graphics_moz.js SetAttribute()
removed lastx,lasty,is_selected variables inside annotation.js and ClosePolygon()