﻿var Search = {
	Validate: function(text) {
		if (text != null && text.length > 0)
			return true;
		else
			return false;
	},
	ShowResults: function(text) {
		if (Search.Validate(text))
			window.location = "/Result.aspx?q=" + encodeURIComponent(text);
	},
	ShowArchiveResults: function(text) {
		if (Search.Validate(text))
			window.location = "/ArchiveResult.aspx?q=" + encodeURIComponent(text);
	},
	LatestTendersResult: function() {
		window.location = "/LatestTendersResult.aspx";
	}
};
