window.addEvent('domready', function() {
	

	$('industry').addEvent('change', function(e) {
		

		var req = new Request.HTML({url:'includes/views/sector_search.php?industry='+$('industry').get('value'), 
			
			onSuccess: function(html) {
				//Clear the text currently inside the results div.
				$('sector').set('text', '');
				//Inject the new DOM elements into the results div.
				$('sector').adopt(html);
			},
			//Our request will most likely succeed, but just in case, we'll add an
			//onFailure method which will let the user know what happened.
			onFailure: function() {
				$('sector').set('text', 'The request failed.');
			}
		});
		e = req.send();
		
	});


});