
var quickFindLocationBox = quickFindServiceBox = null;

function patchQuickFindSelectBoxes() {
	quickFindLocationBox = document.getElementById('quickFindLocationSelector');
	quickFindServiceBox = document.getElementById('quickFindServiceSelector');
	if (quickFindLocationBox && quickFindServiceBox) {
		quickFindLocationBox.onchange = updateQuickFind;
		quickFindServiceBox.onchange = updateQuickFind;
	}
}

function updateQuickFind() {
	var selectedLocation = quickFindLocationBox.selectedIndex;
	var selectedService = quickFindServiceBox.selectedIndex;
	if (selectedLocation > 0 && selectedService > 0) quickFindLocationBox.form.submit();
}
