// JavaScript Document
//検索条件入力画面　初期表示
function search_init_dsp2() {
	$("#tabs").tabs("option", "selected", $('#select_tab').val());
	
	alert($.cookie('cookie_area'));
}

function search_init_dsp() {
   	$('#select_area').val($.cookie('cookie_area'));
   	$('#select_town').val($.cookie('cookie_town'));
   	$('#select_sta').val($.cookie('cookie_sta'));

	if($('#step2_sel1').attr('checked')==true){

		hideLAYER('city_list');
		showLAYER('area_list');

	}

	if($('#step2_sel2').attr('checked')==true){
		
		hideLAYER('area_list');
		showLAYER('city_list');

	}

}

//検索条件入力画面 STEP2でエリアを選択がチェックされた場合
function area_search_chk_dsp() {
		hideLAYER('city_list');
		showLAYER('area_list');

		var data = new Object();

		$.ajax({
			url:'getcitymst.php',
			type:'POST',
			data:data,
			dataType:'text',
			success:function(res_json) {

				results = res_json.split(",");
			
				var json = eval("(["+decodeURIComponent(results[0])+"])");

				for (var i = 0; i < json.length; i++) {
	
					if($('#search_city'+json[i].VIEW_ORDER).attr('checked')==true){
						AreaMstGet(json[i].CITY_CODE);
					}

				}
			
			},
			error:function(res, status, e) {
			}
		});

}


//検索条件入力画面 STEP2で住所一覧から選択がチェックされた場合
function addr_search_chk_dsp() {
		hideLAYER('area_list');
		showLAYER('city_list');

		var data = new Object();

		$.ajax({
			url:'getcitymst.php',
			type:'POST',
			data:data,
			dataType:'text',
			success:function(res_json) {
		
				results = res_json.split(",");
			
				var json = eval("(["+decodeURIComponent(results[0])+"])");

				for (var i = 0; i < json.length; i++) {
	
					if($('#search_city'+json[i].VIEW_ORDER).attr('checked')==true){
						TownMstGet(json[i].CITY_CODE,json[i].CITY_NAME);
					}

				}
			
			},
			error:function(res, status, e) {
			}
		});

}



function change_price_type1(chk_value_fr,chk_value_to) {

	doc1 = $('#rent_price_fr');
    doc2 = $('#rent_price_to');
    if ($('#g1').attr('checked')==true) {

		$('#rent_price_fr').clearOptions();

		$('#rent_price_to').clearOptions();

		
		$('#rent_price_fr').append(jQuery('<option value="">下限なし</option>'));
		
		if(chk_value_fr==""){
			$("#rent_price_fr").attr("selectedIndex",0);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="100000">100,000</option>'));
		
		if(chk_value_fr=="100000"){
			$("#rent_price_fr").attr("selectedIndex",1);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="150000">150,000</option>'));
		
		if(chk_value_fr=="150000"){
			$("#rent_price_fr").attr("selectedIndex",2);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="200000">200,000</option>'));
		
		if(chk_value_fr=="200000"){
			$("#rent_price_fr").attr("selectedIndex",3);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="250000">250,000</option>'));
		
		if(chk_value_fr=="250000"){
			$("#rent_price_fr").attr("selectedIndex",4);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="300000">300,000</option>'));
		
		if(chk_value_fr=="300000"){
			$("#rent_price_fr").attr("selectedIndex",5);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="400000">400,000</option>'));
		
		if(chk_value_fr=="400000"){
			$("#rent_price_fr").attr("selectedIndex",6);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="500000">500,000</option>'));
		
		if(chk_value_fr=="500000"){
			$("#rent_price_fr").attr("selectedIndex",7);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="600000">600,000</option>'));
		
		if(chk_value_fr=="600000"){
			$("#rent_price_fr").attr("selectedIndex",8);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="700000">700,000</option>'));
		
		if(chk_value_fr=="700000"){
			$("#rent_price_fr").attr("selectedIndex",9);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="800000">800,000</option>'));
		
		if(chk_value_fr=="800000"){
			$("#rent_price_fr").attr("selectedIndex",10);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="900000">900,000</option>'));
		
		if(chk_value_fr=="900000"){
			$("#rent_price_fr").attr("selectedIndex",11);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="1000000">1,000,000</option>'));
		
		if(chk_value_fr=="1000000"){
			$("#rent_price_fr").attr("selectedIndex",12);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="1500000">1,500,000</option>'));
		
		if(chk_value_fr=="1500000"){
			$("#rent_price_fr").attr("selectedIndex",13);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="2000000">2,000,000</option>'));
		
		if(chk_value_fr=="2000000"){
			$("#rent_price_fr").attr("selectedIndex",14);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="3000000">3,000,000</option>'));
		
		if(chk_value_fr=="3000000"){
			$("#rent_price_fr").attr("selectedIndex",15);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="4000000">4,000,000</option>'));
		
		if(chk_value_fr=="4000000"){
			$("#rent_price_fr").attr("selectedIndex",16);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="5000000">5,000,000</option>'));
		
		if(chk_value_fr=="5000000"){
			$("#rent_price_fr").attr("selectedIndex",17);
		}



		$('#rent_price_to').append(jQuery('<option value="">上限なし</option>'));
		
		if(chk_value_to==""){
			$("#rent_price_to").attr("selectedIndex",0);
		}
		
		$('#rent_price_to').append(jQuery('<option value="100000">100,000</option>'));
		
		if(chk_value_to=="100000"){
			$("#rent_price_to").attr("selectedIndex",1);
		}
		
		$('#rent_price_to').append(jQuery('<option value="150000">150,000</option>'));
		
		if(chk_value_to=="150000"){
			$("#rent_price_to").attr("selectedIndex",2);
		}
		
		$('#rent_price_to').append(jQuery('<option value="200000">200,000</option>'));
		
		if(chk_value_to=="200000"){
			$("#rent_price_to").attr("selectedIndex",3);
		}
		
		$('#rent_price_to').append(jQuery('<option value="250000">250,000</option>'));
		
		if(chk_value_to=="250000"){
			$("#rent_price_to").attr("selectedIndex",4);
		}
		
		$('#rent_price_to').append(jQuery('<option value="300000">300,000</option>'));
		
		if(chk_value_to=="300000"){
			$("#rent_price_to").attr("selectedIndex",5);
		}
		
		$('#rent_price_to').append(jQuery('<option value="400000">400,000</option>'));
		
		if(chk_value_to=="400000"){
			$("#rent_price_to").attr("selectedIndex",6);
		}
		
		$('#rent_price_to').append(jQuery('<option value="500000">500,000</option>'));
		
		if(chk_value_to=="500000"){
			$("#rent_price_to").attr("selectedIndex",7);
		}
		
		$('#rent_price_to').append(jQuery('<option value="600000">600,000</option>'));
		
		if(chk_value_to=="600000"){
			$("#rent_price_to").attr("selectedIndex",8);
		}
		
		$('#rent_price_to').append(jQuery('<option value="700000">700,000</option>'));
		
		if(chk_value_to=="700000"){
			$("#rent_price_to").attr("selectedIndex",9);
		}
		
		$('#rent_price_to').append(jQuery('<option value="800000">800,000</option>'));
		
		if(chk_value_to=="800000"){
			$("#rent_price_to").attr("selectedIndex",10);
		}
		
		$('#rent_price_to').append(jQuery('<option value="900000">900,000</option>'));
		
		if(chk_value_to=="900000"){
			$("#rent_price_to").attr("selectedIndex",11);
		}
		
		$('#rent_price_to').append(jQuery('<option value="1000000">1,000,000</option>'));
		
		if(chk_value_to=="1000000"){
			$("#rent_price_to").attr("selectedIndex",12);
		}
		
		$('#rent_price_to').append(jQuery('<option value="1500000">1,500,000</option>'));
		
		if(chk_value_to=="1500000"){
			$("#rent_price_to").attr("selectedIndex",13);
		}
		
		$('#rent_price_to').append(jQuery('<option value="2000000">2,000,000</option>'));
		
		if(chk_value_to=="2000000"){
			$("#rent_price_to").attr("selectedIndex",14);
		}
		
		$('#rent_price_to').append(jQuery('<option value="3000000">3,000,000</option>'));
		
		if(chk_value_to=="3000000"){
			$("#rent_price_to").attr("selectedIndex",15);
		}
		
		$('#rent_price_to').append(jQuery('<option value="4000000">4,000,000</option>'));
		
		if(chk_value_to=="4000000"){
			$("#rent_price_to").attr("selectedIndex",16);
		}
		
		$('#rent_price_to').append(jQuery('<option value="5000000">5,000,000</option>'));
		
		if(chk_value_to=="5000000"){
			$("#rent_price_to").attr("selectedIndex",17);
		}

	} else if ($('#g2').attr('checked')==true) {

		$('#rent_price_fr').clearOptions();

		$('#rent_price_to').clearOptions();

		
		$('#rent_price_fr').append(jQuery('<option value="">下限なし</option>'));
		
		if(chk_value_fr==""){
			$("#rent_price_fr").attr("selectedIndex",0);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="10000">10,000</option>'));
		
		if(chk_value_fr=="10000"){
			$("#rent_price_fr").attr("selectedIndex",1);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="12000">12,000</option>'));
		
		if(chk_value_fr=="12000"){
			$("#rent_price_fr").attr("selectedIndex",2);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="14000">14,000</option>'));
		
		if(chk_value_fr=="14000"){
			$("#rent_price_fr").attr("selectedIndex",3);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="16000">16,000</option>'));
		
		if(chk_value_fr=="16000"){
			$("#rent_price_fr").attr("selectedIndex",4);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="18000">18,000</option>'));
		
		if(chk_value_fr=="18000"){
			$("#rent_price_fr").attr("selectedIndex",5);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="20000">20,000</option>'));
		
		if(chk_value_fr=="20000"){
			$("#rent_price_fr").attr("selectedIndex",6);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="25000">25,000</option>'));
		
		if(chk_value_fr=="25000"){
			$("#rent_price_fr").attr("selectedIndex",7);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="30000">30,000</option>'));
		
		if(chk_value_fr=="30000"){
			$("#rent_price_fr").attr("selectedIndex",8);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="35000">35,000</option>'));
		
		if(chk_value_fr=="35000"){
			$("#rent_price_fr").attr("selectedIndex",9);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="40000">40,000</option>'));
		
		if(chk_value_fr=="40000"){
			$("#rent_price_fr").attr("selectedIndex",10);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="45000">45,000</option>'));
		
		if(chk_value_fr=="45000"){
			$("#rent_price_fr").attr("selectedIndex",11);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="50000">50,000</option>'));
		
		if(chk_value_fr=="50000"){
			$("#rent_price_fr").attr("selectedIndex",12);
		}

		
		$('#rent_price_to').append(jQuery('<option value="">上限なし</option>'));
		
		if(chk_value_to==""){
			$("#rent_price_to").attr("selectedIndex",0);
		}
		
		$('#rent_price_to').append(jQuery('<option value="10000">10,000</option>'));
		
		if(chk_value_to=="10000"){
			$("#rent_price_to").attr("selectedIndex",1);
		}
		
		$('#rent_price_to').append(jQuery('<option value="12000">12,000</option>'));
		
		if(chk_value_to=="12000"){
			$("#rent_price_to").attr("selectedIndex",2);
		}
		
		$('#rent_price_to').append(jQuery('<option value="14000">14,000</option>'));
		
		if(chk_value_to=="14000"){
			$("#rent_price_to").attr("selectedIndex",3);
		}
		
		$('#rent_price_to').append(jQuery('<option value="16000">16,000</option>'));
		
		if(chk_value_to=="16000"){
			$("#rent_price_to").attr("selectedIndex",4);
		}
		
		$('#rent_price_to').append(jQuery('<option value="18000">18,000</option>'));
		
		if(chk_value_to=="18000"){
			$("#rent_price_to").attr("selectedIndex",5);
		}
		
		$('#rent_price_to').append(jQuery('<option value="20000">20,000</option>'));
		
		if(chk_value_to=="20000"){
			$("#rent_price_to").attr("selectedIndex",6);
		}
		
		$('#rent_price_to').append(jQuery('<option value="25000">25,000</option>'));
		
		if(chk_value_to=="25000"){
			$("#rent_price_to").attr("selectedIndex",7);
		}
		
		$('#rent_price_to').append(jQuery('<option value="30000">30,000</option>'));
		
		if(chk_value_to=="30000"){
			$("#rent_price_to").attr("selectedIndex",8);
		}
		
		$('#rent_price_to').append(jQuery('<option value="35000">35,000</option>'));
		
		if(chk_value_to=="35000"){
			$("#rent_price_to").attr("selectedIndex",9);
		}
		
		$('#rent_price_to').append(jQuery('<option value="40000">40,000</option>'));
		
		if(chk_value_to=="40000"){
			$("#rent_price_to").attr("selectedIndex",10);
		}
		
		$('#rent_price_to').append(jQuery('<option value="45000">45,000</option>'));
		
		if(chk_value_to=="45000"){
			$("#rent_price_to").attr("selectedIndex",11);
		}
		
		$('#rent_price_to').append(jQuery('<option value="50000">50,000</option>'));
		
		if(chk_value_to=="50000"){
			$("#rent_price_to").attr("selectedIndex",12);
		}

	}

}



function change_price_type2(chk_value_fr,chk_value_to) {

	doc1 = $('#rent_price_fr');
    doc2 = $('#rent_price_to');
    if ($('#g1').attr('checked')==true) {

		$('#rent_price_fr').clearOptions();

		$('#rent_price_to').clearOptions();

		
		$('#rent_price_fr').append(jQuery('<option value="1">下限なし</option>'));
		
		if(chk_value_fr==""){
			$("#rent_price_fr").attr("selectedIndex",0);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="2">100,000</option>'));
		
		if(chk_value_fr=="100000"){
			$("#rent_price_fr").attr("selectedIndex",1);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="3">150,000</option>'));
		
		if(chk_value_fr=="150000"){
			$("#rent_price_fr").attr("selectedIndex",2);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="4">200,000</option>'));
		
		if(chk_value_fr=="200000"){
			$("#rent_price_fr").attr("selectedIndex",3);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="5">250,000</option>'));
		
		if(chk_value_fr=="250000"){
			$("#rent_price_fr").attr("selectedIndex",4);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="6">300,000</option>'));
		
		if(chk_value_fr=="300000"){
			$("#rent_price_fr").attr("selectedIndex",5);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="7">400,000</option>'));
		
		if(chk_value_fr=="400000"){
			$("#rent_price_fr").attr("selectedIndex",6);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="8">500,000</option>'));
		
		if(chk_value_fr=="500000"){
			$("#rent_price_fr").attr("selectedIndex",7);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="9">600,000</option>'));
		
		if(chk_value_fr=="600000"){
			$("#rent_price_fr").attr("selectedIndex",8);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="10">700,000</option>'));
		
		if(chk_value_fr=="700000"){
			$("#rent_price_fr").attr("selectedIndex",9);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="11">800,000</option>'));
		
		if(chk_value_fr=="800000"){
			$("#rent_price_fr").attr("selectedIndex",10);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="12">900,000</option>'));
		
		if(chk_value_fr=="900000"){
			$("#rent_price_fr").attr("selectedIndex",11);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="13">1,000,000</option>'));
		
		if(chk_value_fr=="1000000"){
			$("#rent_price_fr").attr("selectedIndex",12);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="14">1,500,000</option>'));
		
		if(chk_value_fr=="1500000"){
			$("#rent_price_fr").attr("selectedIndex",13);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="15">2,000,000</option>'));
		
		if(chk_value_fr=="2000000"){
			$("#rent_price_fr").attr("selectedIndex",14);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="16">3,000,000</option>'));
		
		if(chk_value_fr=="3000000"){
			$("#rent_price_fr").attr("selectedIndex",15);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="17">4,000,000</option>'));
		
		if(chk_value_fr=="4000000"){
			$("#rent_price_fr").attr("selectedIndex",16);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="18">5,000,000</option>'));
		
		if(chk_value_fr=="5000000"){
			$("#rent_price_fr").attr("selectedIndex",17);
		}



		$('#rent_price_to').append(jQuery('<option value="1">上限なし</option>'));
		
		if(chk_value_to==""){
			$("#rent_price_to").attr("selectedIndex",0);
		}
		
		$('#rent_price_to').append(jQuery('<option value="2">100,000</option>'));
		
		if(chk_value_to=="100000"){
			$("#rent_price_to").attr("selectedIndex",1);
		}
		
		$('#rent_price_to').append(jQuery('<option value="3">150,000</option>'));
		
		if(chk_value_to=="150000"){
			$("#rent_price_to").attr("selectedIndex",2);
		}
		
		$('#rent_price_to').append(jQuery('<option value="4">200,000</option>'));
		
		if(chk_value_to=="200000"){
			$("#rent_price_to").attr("selectedIndex",3);
		}
		
		$('#rent_price_to').append(jQuery('<option value="5">250,000</option>'));
		
		if(chk_value_to=="250000"){
			$("#rent_price_to").attr("selectedIndex",4);
		}
		
		$('#rent_price_to').append(jQuery('<option value="6">300,000</option>'));
		
		if(chk_value_to=="300000"){
			$("#rent_price_to").attr("selectedIndex",5);
		}
		
		$('#rent_price_to').append(jQuery('<option value="7">400,000</option>'));
		
		if(chk_value_to=="400000"){
			$("#rent_price_to").attr("selectedIndex",6);
		}
		
		$('#rent_price_to').append(jQuery('<option value="8">500,000</option>'));
		
		if(chk_value_to=="500000"){
			$("#rent_price_to").attr("selectedIndex",7);
		}
		
		$('#rent_price_to').append(jQuery('<option value="9">600,000</option>'));
		
		if(chk_value_to=="600000"){
			$("#rent_price_to").attr("selectedIndex",8);
		}
		
		$('#rent_price_to').append(jQuery('<option value="10">700,000</option>'));
		
		if(chk_value_to=="700000"){
			$("#rent_price_to").attr("selectedIndex",9);
		}
		
		$('#rent_price_to').append(jQuery('<option value="11">800,000</option>'));
		
		if(chk_value_to=="800000"){
			$("#rent_price_to").attr("selectedIndex",10);
		}
		
		$('#rent_price_to').append(jQuery('<option value="12">900,000</option>'));
		
		if(chk_value_to=="900000"){
			$("#rent_price_to").attr("selectedIndex",11);
		}
		
		$('#rent_price_to').append(jQuery('<option value="13">1,000,000</option>'));
		
		if(chk_value_to=="1000000"){
			$("#rent_price_to").attr("selectedIndex",12);
		}
		
		$('#rent_price_to').append(jQuery('<option value="14">1,500,000</option>'));
		
		if(chk_value_to=="1500000"){
			$("#rent_price_to").attr("selectedIndex",13);
		}
		
		$('#rent_price_to').append(jQuery('<option value="15">2,000,000</option>'));
		
		if(chk_value_to=="2000000"){
			$("#rent_price_to").attr("selectedIndex",14);
		}
		
		$('#rent_price_to').append(jQuery('<option value="16">3,000,000</option>'));
		
		if(chk_value_to=="3000000"){
			$("#rent_price_to").attr("selectedIndex",15);
		}
		
		$('#rent_price_to').append(jQuery('<option value="17">4,000,000</option>'));
		
		if(chk_value_to=="4000000"){
			$("#rent_price_to").attr("selectedIndex",16);
		}
		
		$('#rent_price_to').append(jQuery('<option value="18">5,000,000</option>'));
		
		if(chk_value_to=="5000000"){
			$("#rent_price_to").attr("selectedIndex",17);
		}

	} else if ($('#g2').attr('checked')==true) {

		$('#rent_price_fr').clearOptions();

		$('#rent_price_to').clearOptions();

		
		$('#rent_price_fr').append(jQuery('<option value="1">下限なし</option>'));
		
		if(chk_value_fr==""){
			$("#rent_price_fr").attr("selectedIndex",0);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="2">10,000</option>'));
		
		if(chk_value_fr=="10000"){
			$("#rent_price_fr").attr("selectedIndex",1);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="3">12,000</option>'));
		
		if(chk_value_fr=="12000"){
			$("#rent_price_fr").attr("selectedIndex",2);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="4">14,000</option>'));
		
		if(chk_value_fr=="14000"){
			$("#rent_price_fr").attr("selectedIndex",3);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="5">16,000</option>'));
		
		if(chk_value_fr=="16000"){
			$("#rent_price_fr").attr("selectedIndex",4);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="6">18,000</option>'));
		
		if(chk_value_fr=="18000"){
			$("#rent_price_fr").attr("selectedIndex",5);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="7">20,000</option>'));
		
		if(chk_value_fr=="20000"){
			$("#rent_price_fr").attr("selectedIndex",6);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="8">25,000</option>'));
		
		if(chk_value_fr=="25000"){
			$("#rent_price_fr").attr("selectedIndex",7);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="9">30,000</option>'));
		
		if(chk_value_fr=="30000"){
			$("#rent_price_fr").attr("selectedIndex",8);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="10">35,000</option>'));
		
		if(chk_value_fr=="35000"){
			$("#rent_price_fr").attr("selectedIndex",9);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="11">40,000</option>'));
		
		if(chk_value_fr=="40000"){
			$("#rent_price_fr").attr("selectedIndex",10);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="12">45,000</option>'));
		
		if(chk_value_fr=="45000"){
			$("#rent_price_fr").attr("selectedIndex",11);
		}
		
		$('#rent_price_fr').append(jQuery('<option value="13">50,000</option>'));
		
		if(chk_value_fr=="50000"){
			$("#rent_price_fr").attr("selectedIndex",12);
		}

		
		$('#rent_price_to').append(jQuery('<option value="1">上限なし</option>'));
		
		if(chk_value_to==""){
			$("#rent_price_to").attr("selectedIndex",0);
		}
		
		$('#rent_price_to').append(jQuery('<option value="2">10,000</option>'));
		
		if(chk_value_to=="10000"){
			$("#rent_price_to").attr("selectedIndex",1);
		}
		
		$('#rent_price_to').append(jQuery('<option value="3">12,000</option>'));
		
		if(chk_value_to=="12000"){
			$("#rent_price_to").attr("selectedIndex",2);
		}
		
		$('#rent_price_to').append(jQuery('<option value="4">14,000</option>'));
		
		if(chk_value_to=="14000"){
			$("#rent_price_to").attr("selectedIndex",3);
		}
		
		$('#rent_price_to').append(jQuery('<option value="5">16,000</option>'));
		
		if(chk_value_to=="16000"){
			$("#rent_price_to").attr("selectedIndex",4);
		}
		
		$('#rent_price_to').append(jQuery('<option value="6">18,000</option>'));
		
		if(chk_value_to=="18000"){
			$("#rent_price_to").attr("selectedIndex",5);
		}
		
		$('#rent_price_to').append(jQuery('<option value="7">20,000</option>'));
		
		if(chk_value_to=="20000"){
			$("#rent_price_to").attr("selectedIndex",6);
		}
		
		$('#rent_price_to').append(jQuery('<option value="8">25,000</option>'));
		
		if(chk_value_to=="25000"){
			$("#rent_price_to").attr("selectedIndex",7);
		}
		
		$('#rent_price_to').append(jQuery('<option value="9">30,000</option>'));
		
		if(chk_value_to=="30000"){
			$("#rent_price_to").attr("selectedIndex",8);
		}
		
		$('#rent_price_to').append(jQuery('<option value="10">35,000</option>'));
		
		if(chk_value_to=="35000"){
			$("#rent_price_to").attr("selectedIndex",9);
		}
		
		$('#rent_price_to').append(jQuery('<option value="11">40,000</option>'));
		
		if(chk_value_to=="40000"){
			$("#rent_price_to").attr("selectedIndex",10);
		}
		
		$('#rent_price_to').append(jQuery('<option value="12">45,000</option>'));
		
		if(chk_value_to=="45000"){
			$("#rent_price_to").attr("selectedIndex",11);
		}
		
		$('#rent_price_to').append(jQuery('<option value="13">50,000</option>'));
		
		if(chk_value_to=="50000"){
			$("#rent_price_to").attr("selectedIndex",12);
		}

	}

}

