	$(document).ready(function() {
   		
		<!-- ajax requests for category search -->
		
		$("#make").livequery('change', function()
		{		
			var x = $(this).val();
			if(x)
			{
			$.ajax({
   				type: "GET",
   				url: "admin/israel_mod/ajax.php",
  				data: "type=pre-owned&make=" + x,
				dataType: "html",
   				success: function(html){
     				$("#model_cont").html(html);
  				},
				error: function(msg){
     			alert( "An Error: " + msg );
  				}
 			});
			} //end if
			else
			{
				$("#model").attr('disabled', true);
			}			
			
 		});	
		
		$("#make-new").livequery('change', function()
		{		
			var x = $(this).val();
			if(x)
			{
			$.ajax({
   				type: "GET",
   				url: "admin/israel_mod/ajax.php",
  				data: "type=new&make=" + x,
				dataType: "html",
   				success: function(html){
     				$("#model_cont-new").html(html);
  				},
				error: function(msg){
     			alert( "An Error: " + msg );
  				}
 			});
			} //end if
			else
			{
				$("#model-new").attr('disabled', true);
			}			
			
 		});	
		
		$("#myb_make").livequery('change', function()
		{		
			var x = $(this).val();
			if(x)
			{
			$.ajax({
   				type: "GET",
   				url: "myb_ajax.php",
  				data: "type=pre-owned&make=" + x,
				dataType: "html",
   				success: function(html){
     				$("#model_cont").html(html);
  				},
				error: function(msg){
     			alert( "An Error: " + msg );
  				}
 			});
			} //end if
			else
			{
				$("#model").attr('disabled', true);
			}			
			
 		});	
		 
// end document ready		
 	});		
