SearchResults.instance = function() {
	if (!SearchResults._instance) {
		SearchResults._instance = new SearchResults();
	}
	
	return SearchResults._instance;
}
SearchResults._instance = null;
function SearchResults() {
}
SearchResults.prototype = new DXMLHttpRequestShell();
SearchResults.constructor = SearchResults;
SearchResults.prototype.getSearchResultsCount = function(searchText) {
	if (searchText) {
		this.init();
		this.fastPostUrl(BASE_URL + "searchresults", "lang=" + LANG + "&search_text=" + searchText);

		hideSearchResults();
		putSearchText(searchText);
	}
}
SearchResults.prototype.onLoad = function() {
	try {
		putSearchResultsCount(this.getResponseText());
		showSearchResults();
	} catch (e) {
		alert(e.message)
	}
}
