	function ajj(val)
	{	
		if (val!='')
		{
		$.ajax({
   			 // the URL for the request
   			 url : 'http://www.igun.com.ua/test3.php',

   				 // whether this is a POST or GET request
  			 method : 'GET',
  			  
  			 
  			 data : { category : val },

  				  // the type of data we expect back
 			 dataType : 'text',

 			   // code to run if the request succeeds;
 				   // the response is passed to the function
    		 success : function(text) {
      			 $('#values').html($(text));
  				  }

			});}
	}
	
	function ajj_2()
	{	
			$('#values').html('');
	}
	
		function ajj_4(loc,phrase,search)
	{	
			top.location.href=loc;
		
			$.ajax({
   			 // the URL for the request
   			 url : 'http://www.igun.com.ua/test4.php',

  			  // the data to send 
   			 // (will be converted to a query string)
   			 data : { phrase_set : phrase, phrase_search : search },

   				 // whether this is a POST or GET request
  			  method : 'GET'
			})
			
	}
		
	function ajj_3(cat)
	{	
			$('#input').attr('value', cat);
			
	}
	
	
		
/*
$(document).ready(function() {
		$.ajax({
   			 // the URL for the request
   			 url : 'test1.php',

  			  // the data to send 
   			 // (will be converted to a query string)
   			 data : { country_id : 1 },

   				 // whether this is a POST or GET request
  			  method : 'GET',

  				  // the type of data we expect back
 			   dataType : 'text',

 			   // code to run if the request succeeds;
 				   // the response is passed to the function
    		success : function(text) {
      			 $('#text1').html($(text));
  				  }
		})
		
		function setfocus() {
			$('#input').focus()
						}
		
		setfocus();

				
	$('#text1').change(function(){
		$.ajax({
   			 // the URL for the request
   			 url : 'test2.php',

  			  // the data to send 
   			 // (will be converted to a query string)
   			 data : { category : $("#text1 :selected").html() },

   				 // whether this is a POST or GET request
  			  method : 'GET',

  				  // the type of data we expect back
 			   dataType : 'text',

 			   // code to run if the request succeeds;
 				   // the response is passed to the function
    		success : function(text) {
      			 $('#text2').html($(text));
  				  }

			});
		})
		
	
		
    
});*/