function filterWebSearchables(objectId, scope, type, callId, tags, wsListId) {    if (futureFilterCalls[wsListId + "_" + type] != callId) {        // filterWebSearchablesHandler() has been called again since this        // timeout was set, so ignore as another timeout will be along        // shortly        return;    }    var object = document.getElementById(objectId);    var value = object.value;    var filterAction = document.getElementById('filterAction' + '_' + wsListId + '_' + type).value;    if ((value != null && value.length > 1) || (tags != null && tags.length > 1)) {        function filterCallBack(cbResult) {            var callId = cbResult[0];            var filteredList = cbResult.slice(1);            if (currentFilterCallbacks[wsListId + "_" + type] != callId) {                // we've started another call since this one started, so                // ignore this one                return;            }            do_filtering(filteredList, type, wsListId);        }        $(wsListId + '_' + type + '_spinner').style.visibility = 'visible';        currentFilterCallbacks[wsListId + "_" + type] = callId;        var tagList = null;                /*  can only be one of these options:        1. favourite        2. aspect:<aspect>        3. aspect:<aspect>|favourite        4. null         */                if(tags != null && tags.length > 1) {	        tagList = new Array();			if (tags.match("|")) {				        	var a = new Array();	        	    	    	a = tags.split('|');        		        		for (var i=0, l=a.length; i<l; ++i) {        			tagList[i] = a[i];         		}        	} else {        		tagList[0] = tags;        	}        }                /*  filterAction toggles favourites off and on */        AjaxServices.filterWebSearchables(scope, type, tagList, object.value, filterAction,                                           callId++, filterCallBack);    } else {        showAll(wsListId, type);    }    futureFilterCalls[wsListId + "_" + type] = 0;}
5150	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5150/c3f14c6f8a7198dfc816e090b80859f53bab5190/imdwr.js/clean/intermine/webapp/main/resources/webapp/js/imdwr.js