YAHOO.example.ACJSArray = new function() {     // Instantiate first AutoComplete     this.oACDS = new YAHOO.widget.DS_XHR("/AjaxSearchServlet", ["\n", "\t"]);     this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;     this.oACDS.maxCacheEntries = 600;     this.oACDS.queryMatchSubset = true;         if(YAHOO.util.Dom.get('freeTextStart') != null) {     this.oAutoComp = new YAHOO.widget.AutoComplete('freeTextStart','fromcontainer', this.oACDS);     this.oAutoComp.prehighlightClassName = "yui-ac-prehighlight";     this.oAutoComp.typeAhead = false;     this.oAutoComp.useShadow = true;     this.oAutoComp.useIFrame = true;     this.oAutoComp.autoHighlight = true;     this.oAutoComp.allowBrowserAutocomplete = false;     this.oAutoComp.minQueryLength = 1;     this.oAutoComp.maxResultsDisplayed = 12;     this.oAutoComp.textboxFocusEvent.subscribe(function(){         var sInputValue = YAHOO.util.Dom.get('freeTextStart').value;         if(sInputValue.length === 0) {             var oSelf = this;             setTimeout(function(){oSelf.sendQuery(sInputValue);},0);         }     });     }         if(YAHOO.util.Dom.get('freeTextDestination') != null) {     this.oAutoComp1 = new YAHOO.widget.AutoComplete('freeTextDestination','tocontainer', this.oACDS);     this.oAutoComp1.prehighlightClassName = "yui-ac-prehighlight";     this.oAutoComp1.typeAhead = false;     this.oAutoComp1.useShadow = true;     this.oAutoComp1.useIFrame = true;     this.oAutoComp1.allowBrowserAutocomplete = false;     this.oAutoComp1.minQueryLength = 1;     this.oAutoComp1.maxResultsDisplayed = 12;     this.oAutoComp1.autoHighlight = true;     this.oAutoComp1.textboxFocusEvent.subscribe(function(){         var sInputValue = YAHOO.util.Dom.get('freeTextDestination').value;         if(sInputValue.length === 0) {             var oSelf = this;             setTimeout(function(){oSelf.sendQuery(sInputValue);},0);         }     });     } }; 