ArcGIS API for JavaScript: Search/report_service (MapServer)
Built using the ArcGIS API for JavaScript