(function($){
	
	var nf = '#Form_SideBarSearch_search_by_name';
	var yf = '#Form_SideBarSearch_search_by_year';

	$(nf)[0].def = "BY NAME";
	$(yf)[0].def = "BY YEAR";

	$(nf + ' , ' +  yf).focus(function(){
		var el = $(this);
		if(el.val() == el[0].def){
			el.val('');
		}
	})

	$(nf + ' , ' +  yf).blur(function(){
		var el = $(this);
		if(el.val() == ''){
			el.val(el[0].def);
		}
	})

	$('#Form_InducteeSearchForm').submit(function(){
		if($('#Form_searchInductees_search_by_name').val() == "BY NAME" &&
			$('#Form_searchInductees_search_by_year').val() =='BY YEAR'){
			return false;
		}else{
			$('#Form_InducteeSearchForm').attr('disabled','disabled');
			return true;
		}
	})

})(jQuery);