
function RemoteStateSuggestions(){if(typeof XMLHttpRequest!="undefined"){this.http=new XMLHttpRequest();}else if(typeof ActiveXObject!="undefined"){this.http=new ActiveXObject("MSXML2.XmlHttp");}else{alert("No XMLHttpRequest object available. This functionality will not work.");}}
var fds_url=document.URL.replace(/\?.*$/,'');RemoteStateSuggestions.prototype.requestSuggestions=function(oAutoSuggestControl,bTypeAhead){var oHttp=this.http;if(oHttp.readyState!=0){oHttp.abort();}
var sel=0,a=document.fdsForm.Sel;for(var i=0;i<a.length;i++){if(a[i].checked){sel=a[i].value;break;}}
var sURL=fds_url+"?ajax-asg-"+encodeURIComponent(document.fdsForm.Depts.value)+'---'
+encodeURIComponent(encodeURIComponent(oAutoSuggestControl.textbox.value))+'-'+sel;if(typeof AutoSuggestOrderAlpha!="undefined")sURL+='-a';oHttp.open("get",sURL,true);oHttp.onreadystatechange=function(){if(oHttp.readyState==4){var aSuggestions=eval(oHttp.responseText);oAutoSuggestControl.autosuggest(aSuggestions,bTypeAhead);}};oHttp.send(null);};