function ProjectSearcher() {}
ProjectSearcher.prototype = new Searcher();
ProjectSearcher.prototype.name = "projectSearch";
ProjectSearcher.prototype.doAfterInit = function () {
    YAHOO.util.Event.addListener("projectSearchSubmit", "click", function () {
        projectSearcher.handleSubmit();
    });
    YAHOO.util.Event.addListener("projectSearchCancel", "click", function () {
        projectSearcher.handleCancel();
    });
};
ProjectSearcher.prototype.validateUserInputs = function () {
	// Fetch the user input in the search field.
	var keyword = $("projectSearchField").value;

    // If no keyword is entered then display an error message and return.
	if (keyword == null || keyword == "") {
		alert("Please enter a project number to search.");
        return false;
	}
    
    return true;
};
ProjectSearcher.prototype.getUserInputs = function () {
    // Fetch the user input in the search field.
    var keyword = $("projectSearchField").value;

    var params = new Array();
    params.push("projectSearchField=" + keyword);
    params.push("sector=" + currentViewId);

    return params;
};

var projectSearcher = new ProjectSearcher();
searchers.set(projectSearcher.name, projectSearcher);
