function XcAutocomplete( id, container_id )
{
  this.id = id;
  this.container_id = container_id;
  
  this.remoteQuery = function( url, minQueryLength )
  {
    // Use an XHRDataSource 
    var oDS = new YAHOO.util.XHRDataSource(url);
    
    // Set the responseType 
    oDS.responseType = YAHOO.util.XHRDataSource.TYPE_JSON;
    
    // Define the schema of the JSON results 
    oDS.responseSchema = 
    {
      resultsList: "Result", 
      fields: ["text"] 
    };
    
    // Instantiate the AutoComplete 
    var oAC = new YAHOO.widget.AutoComplete(this.id, this.container_id, oDS);
    
    // Throttle requests sent 
    oAC.queryDelay = 0;
    oAC.minQueryLength = minQueryLength || 2;
    oAC.maxResultsDisplayed = 30;
     
    return {
        oDS: oDS, 
        oAC: oAC
    };
  }
}