$(function() {
	// Spa Appointment Request
		$('#services1').change(function() {
			$('#options1').hide().before('<span>loading services...</span>');
			$.get('treatment-list.php', {cat_id:$(this).val()},function(data) { 
				$('#options1').html(data);$('#options1').show().prev().remove(); 
				if ( $('#services1').val() == 2 )
					$('#treatment-length-field1').show();
				else 
					$('#treatment-length-field1').hide();
			});
		});
		$('#servicesalt1').change(function() {
			$('#optionsalt1').hide().before('<span>loading services...</span>');
			$.get('treatment-list.php', {cat_id:$(this).val()},function(data) { 
				$('#optionsalt1').html(data);$('#optionsalt1').show().prev().remove(); 
				if ( $('#servicesalt1').val() == 2 )
					$('#alt-treatment-length-field1').show();
				else 
					$('#alt-treatment-length-field1').hide();
			});
		});
		$('#services2').change(function() {
			$('#options2').hide().before('<span>loading services...</span>');
			$.get('treatment-list.php', {cat_id:$(this).val()},function(data) { 
				$('#options2').html(data);$('#options2').show().prev().remove(); 
				if ( $('#services2').val() == 2 )
					$('#treatment-length-field2').show();
				else 
					$('#treatment-length-field2').hide();
			});
		});
		$('#servicesalt2').change(function() {
			$('#optionsalt2').hide().before('<span>loading services...</span>');
			$.get('treatment-list.php', {cat_id:$(this).val()},function(data) { 
				$('#optionsalt2').html(data);$('#optionsalt2').show().prev().remove(); 
				if ( $('#servicesalt2').val() == 2 )
					$('#alt-treatment-length-field2').show();
				else 
					$('#alt-treatment-length-field2').hide();				
			});
		});		
});

  
		