﻿function validateSearch(sender, args)
{
	var searchQueryTextBox = document.getElementById('mainContentPlaceHolder_searchQueryTextBox');
	var productsDropDownList = document.getElementById('mainContentPlaceHolder_productsDropDownList');

	var trimmedSearchQuery = searchQueryTextBox.value.trim();

	args.IsValid = (trimmedSearchQuery.length > 0 || productsDropDownList.selectedIndex > 0);
}
