ArcGIS API for JavaScript: IMGP_POLYGON_POLYGON (MapServer)
Built using the ArcGIS API for JavaScript