var ProductSorter = new Class ({
	initialize: function(form_id) {
		self.form_id = form_id;
		// Hide the submit button
		if ($(form_id)) {
			$(form_id).getElement('input').set('styles', {'display' : 'none'});
			// Submit the form when the value is changed
			$(form_id).getElement('select').addEvent('change', function() {
				$(form_id).submit();
			});
		}
	}
});
