function cw_showDirSection(section){
	jQuery('#congressweb #cw_legDetailContainer').children('div').hide();
	jQuery('#congressweb #cw_display' + section).show();
	jQuery('#congressweb .cw_basictab').children('li').each(function(){
		if (jQuery(this).children('a:first').html().replace(' ','').replace(' ','') == section)
			jQuery(this).attr('class','cw_selected');
		else
			jQuery(this).removeAttr('class');
	});
	return false;
}

function cw_congressSearch(){
	var lastname = jQuery('#congressweb #cw_congressSearch input[name=lastname]').val();
	var state = jQuery('#congressweb #cw_congressSearch select[name=state]').val();
	var chamber = jQuery('#congressweb #cw_congressSearch select[name=chamber]').val();
	var party = jQuery('#congressweb #cw_congressSearch select[name=party]').val();
	
	if (!lastname.length && !state.length && !chamber.length && !party.length) {
		jQuery('.cw_error').html('You must select at least one field');
		enableSubmit();
		return false;
	}	
	
	return true;
}

function cw_demographics(subsection){
	jQuery('#cw_subSections').children('div').hide();
	jQuery('#cw_displayDemographics' + subsection).show();
	return false;
}

