	function runReset(which) { 
		alert('test');
	
	}
	function resetIndustry() {
		$('#userIndustry').html('<option value=""></option>');
		$('#userIndustry-TB').val('');
	}
	function resetService() {
		$('#userService').html('<option value=""></option>');
		$('#userService-TB').val('');
	}
	function resetFields() { 
		$('#formLoadMore').html('<p>Select your location and what you are looking for. We will ask you for a few more details before we let you submit!</p>');
	}
	
	function GBOnextStepRun(whatChanged) {
		switch ( whatChanged ) {
			case 'userLocation':
				resetIndustry(); resetService(); resetFields();
				$.get('/support/doStuff.php?do=get_industries&which='+$('#userLocation').val(),function(data){
					$('#userIndustry').html(data);
				});
				//mmd_run_ajax({'action' : 'get_industries', 'which' : $('#userLocation').val(), 'fill' : '#userIndustry'  });
				$('#userIndustry').removeAttr('disabled');
				break;
			case 'userIndustry':
				resetService(); resetFields();
				$.get('/support/doStuff.php?do=get_services&which='+$('#userIndustry').val(),function(data){
					$('#userService').html(data);
				});
				//mmd_run_ajax({'action' : 'get_services', 'which' : $('#userIndustry').val(), 'fill' : '#userService'  });
				$('#userService').removeAttr('disabled');
			break;
			case 'userService':
				$('#captcha_show').show();
				$.get('/support/doStuff.php?do=get_service_fields&which='+$('#userService').val(),function(data){
					$('#formLoadMore').html(data);
				});
				//mmd_run_ajax({'action' : 'get_service_fields', 'which' : $('#userService').val(), 'fill' : '#formLoadMore'  });
			break;
			default:
			resetIndustry(); resetService(); resetFields();
		}
	}
$(document).ready(function() { 
	$('#submitRequest').live('click',function() {
		Recaptcha.reload();
		$.post('/support/doStuff.php?do=submit_service_request&which='+$('#userService').val(), $('#home-searchform').serialize(), function(data) {
		  var thisInfo = $.parseJSON(data);
		  if ( thisInfo['status'] == '1' ) $('#home-searchform').html(thisInfo['message']);
		  else if ( thisInfo['status'] == '0' ) {
			  alert(thisInfo['message']);
			  $(thisInfo['required'],'#home-searchform').closest('p').addClass('needsInput');					  
		  }
		  else alert(thisInfo['message']);
		});
	});
	
	
});
