$(document).ready(function(){ 
    $("#search_lookingfor").change(function() 
    { 
        var lookingfor 
 
        lookingfor = $("#search_lookingfor").val(); 
	

	 if(lookingfor == 1){ 
	   $("#propertytype_1").attr('checked', true);
	   $("#propertytype_3").attr('checked', false);
	   $("#propertytype_5").attr('checked', false);
	   
	   $("#basiclocation_8").attr('checked', true);	 
	   $("#basiclocation_9").attr('checked', false);	
	   $("#basiclocation_10").attr('checked', false);
	   
	   $("#municipality_50").attr('checked', false);
	}


	 if(lookingfor == 2){ 
	   $("#propertytype_1").attr('checked', false);
	   $("#propertytype_3").attr('checked', true);
	   $("#propertytype_5").attr('checked', true);
	   
	   $("#basiclocation_9").attr('checked', true);	
	   $("#basiclocation_9").attr('checked', false);
	   $("#basiclocation_10").attr('checked', false);
	   
	   
	   $("#municipality_50").attr('checked', false);
	}


	 if(lookingfor == 3){ 
	   $("#propertytype_1").attr('checked', false);
	   $("#propertytype_3").attr('checked', true);
	   $("#propertytype_5").attr('checked', false);
	   
	   $("#basiclocation_8").attr('checked', false);	 
	   $("#basiclocation_9").attr('checked', false);
	   $("#basiclocation_10").attr('checked', true);	  
	   
	   $("#municipality_50").attr('checked', false);	   
	}
	
	 if(lookingfor == 4){ 
	   $("#propertytype_1").attr('checked', false);
	   $("#propertytype_3").attr('checked', true);
	   $("#propertytype_5").attr('checked', false);

	   
	   $("#basiclocation_8").attr('checked', false);	 
	   $("#basiclocation_9").attr('checked', true);
	   $("#basiclocation_10").attr('checked', false);
	   
	   $("#municipality_50").attr('checked', true);	   
	}

	

    }); 
}); 
