function toggle_search_filter(filter_name)
{
	if ($('div#'+filter_name).hasClass('filter_title_enabled'))
	{
		//disable the filter
		$('div#'+filter_name).removeClass('filter_title_enabled');
		$('div#'+filter_name).addClass('filter_title_disabled');
		$('div#'+filter_name+'_contents').removeClass('filter_contents_enabled');
		$('div#'+filter_name+'_contents').addClass('filter_contents_disabled');
	}
	else if ($('div#'+filter_name).hasClass('filter_title_disabled'))
	{
		//enable the filter
		$('div#'+filter_name).removeClass('filter_title_disabled');
		$('div#'+filter_name).addClass('filter_title_enabled');
		$('div#'+filter_name+'_contents').removeClass('filter_contents_disabled');
		$('div#'+filter_name+'_contents').addClass('filter_contents_enabled');
	}
}


function expand_more_filters(filter_name)
{
	$('div#'+filter_name+'_contents div.extra_filter_entry').css('display', 'block');
	$('div#'+filter_name+'_contents div.filter_more_link').css('display', 'none');
}


function toggle_url_field()
{
	if ($('select#manage_applicants').val()==376)
	{
		$('div#post_single_job_apply_url').css('display', 'none');
	}
	else
	{
		$('div#post_single_job_apply_url').css('display', 'block');
	}
}

