function change_model_manuf(loc)
{
	r = $('list_model_search');
	new Form.Element.Observer(
  		'list_manufac_search',
  		1,  // 100 milliseconds
  		function(el, value)
  		{
        	new Ajax.Request("ajax/change_list.php?id="+value+"&pos=manufac&item=&location="+loc,
          	{
	            method:"get",
    		    onSuccess: function(transport)
    		    {
            		r.show();
					var sel = document.getElementById('list_model_search');
					while (sel.options.length)
					{
						sel.options[0] = null;
					}
					var firstRes = new String(transport.responseText);
					var resArray = firstRes.split(",");
					//alert(resArray.length);
					for (var i = 0; i < resArray.length; i++)
					{
						var resString = new String(resArray[i]);
						valArray = null;
						valArray = resString.split(":");
						var newOpt = new Option(valArray[1], valArray[0]);
						sel.options[i] = newOpt;
					}
            	},
            	onFailure: function()
            	{
					alert("nothing");
            		r.innerHTML = null;
            	}
          	});
  		})
}
