function initCartridgeSearch()
{
	$('cartridgeBrands').Ajax = new Ajax(config[0], 
		{
			onComplete: function (response)
			{
				optionCollection = Json.evaluate(response);
				$each(optionCollection,
					function (value, index)
					{
						$('cartridgeTypes').adopt(
							new Element('option', {'value':index}).appendText(value)
						);
					}
				);
			}
		}
	);
	
	$('cartridgeBrands').addEvent('change', 
		function ()
		{
			if (this.value != '')
			{
				$('cartridgeTypes').length = 1;
				$('cartridgeModels').length = 1;
				this.Ajax.url = config[0] + '/cartridge/' + this.value.toUpperCase();
				this.Ajax.request();
			}
			else
			{
				$('cartridgeTypes').length = 1;
				$('cartridgeModels').length = 1;
			}
		}
	);
	
	$('cartridgeTypes').Ajax = new Ajax(config[0], 
		{
			onComplete: function (response)
			{
				optionCollection = Json.evaluate(response);
				$each(optionCollection,
					function (value, index)
					{
						$('cartridgeModels').adopt(
							new Element('option', {'value':index}).appendText(value)
						);
					}
				);
			}
		}
	);
	
	$('cartridgeTypes').addEvent('change', 
		function ()
		{
			if (this.value != '')
			{
				$('cartridgeModels').length = 1;
				this.Ajax.url = config[0] + '/cartridge/' + $('cartridgeBrands').value.toUpperCase() + '/' + this.value;
				this.Ajax.request();
			}
			else
			{
				$('cartridgeModels').length = 1;
			}
		}
	);
}
