function update_total_initial(status)
{
	$.ajax({
		type: 'post',
		url: 'http://fordcountry.com/wp-content/themes/fordcountry/search_functions.php',
		data: 'new=' + status,
		success: function(msg)
		{
			$('#search_active_resultsfound').text(msg);
		}
	});
}
function update_total(status, column, selectId)
{
	var val = $('#' + selectId).val();
	$.ajax({
		type: 'post',
		url: 'http://fordcountry.com/wp-content/themes/fordcountry/search_functions.php',
		data: 'new=' + status + '&column=' + column + '&vars=' + val,
		success: function(msg)
		{
			$('#search_active_resultsfound').text(msg);
		}
	});
}
function update_total_multiple(status, make, model, makevar, modelvar)
{
	var modelvar = $('#' + modelvar).val();
	$.ajax({
		type: 'post',
		url: 'http://fordcountry.com/wp-content/themes/fordcountry/search_multiple_functions.php',
		data: 'new=' + status + '&make=' + make + '&model=' + model + '&makevar=' + makevar + '&modelvar=' + modelvar,
		success: function(msg)
		{
			$('#search_active_resultsfound').text(msg);
		}
	});
}
function load_model(status, selectId)
{
	var make = $('#' + selectId).val();
	$.ajax({
		type: 'post',
		url: 'http://fordcountry.com/wp-content/themes/fordcountry/load_model.php',
		data: 'new=' + status + '&vars=' + make,
		success: function(list)
		{
			$('#search_model_loader').html(list);
		}
	});
	//update_total('False','Body','search_style');
	update_total_multiple('False','Make','Model',make,'search_model');
}
function reset_select(fieldId, hide)
{
	$('#' + fieldId).find('option:first').attr('selected', 'selected').parent('select');
	if(hide == 'true')
	{
		$('#search_model').html('');
		$('#search_model').hide();
	}
}
