function set_values() { 

	var select_type = document.searchform.section; 
	var select_value_min = document.searchform.min_price;
	var select_value = document.searchform.max_price;
	//var select_area = document.searchform.area;
	var selected_type = select_type.options[select_type.selectedIndex].value;
	
	select_value_min.options.length=0; 
	select_value.options.length=0;

	if (selected_type == 'let'){
		for(var i=0; i<tolet.length; i++)   
			select_value_min.options[i] = new Option( tolet[i], toletval[i]);
			//document.searchform.action = "tolet_search_results.aspx";
	} 
	
	if (selected_type == 'let'){
		for(var i=0; i<tolet.length; i++)   
			select_value.options[i] = new Option(tolet[i], toletval[i]);
			//document.searchform.action = "tolet_search_results.aspx";
			select_value.selectedIndex = i-1
	} 
	
	if ((selected_type == 'buy') || (selected_type == 'sell')){ 
		for(var i=0; i<buy.length; i++) 
			select_value_min.options[i] = new Option(buy[i], buyval[i]);
			//document.searchform.action = "buy_search_results.aspx";
	}
	
	if ((selected_type == 'buy') || (selected_type == 'sell')){ 
		for(var i=0; i<buy.length; i++) 
			select_value.options[i] = new Option(buy[i], buyval[i]);
			//document.searchform.action = "buy_search_results.aspx";
			select_value.selectedIndex = i-1
	}
} 





function buylet()
{
if (document.profilesearch.type.value==1) { document.profilesearch.action='buy_profilesearch.aspx'; }
else { document.profilesearch.action='tolet_profilesearch.aspx'; }
}