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');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){}});}
if($('#step2_sel2').attr('checked')==true){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){}});}
var data=new Object();$.ajax({url:'getrailwaymst.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_railway'+json[i].RAILWAY_NO).attr('checked')==true){StationMstGet(json[i].LINE_CD);}}},error:function(res,status,e){}});if($.cookie('cookie_tab')=="tabs-1"){$('#tab01_img').attr('src',"./images/common/tab01_02.jpg");$('#tab02_img').attr('src',"./images/common/tab02_01.jpg");}else if($.cookie('cookie_tab')=="tabs-2"){$('#tab01_img').attr('src',"./images/common/tab01_01.jpg");$('#tab02_img').attr('src',"./images/common/tab02_02.jpg");}else if($.cookie('cookie_tab')==""){$.cookie('cookie_tab','',{expires:-1});$.cookie('cookie_tab','tabs-1',{expires:2});}
$("#tabs").tabs("option","selected",$.cookie('cookie_tab'));}
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){}});}
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=document.srch_frm1.rent_price_fr;doc2=document.srch_frm1.rent_price_to;if(window.document.srch_frm1.elements['g1'].checked){doc1.length=18;doc1.options[0].text="下限なし";if(chk_value_fr==""){doc1.selectedIndex=0;}
doc1.options[1].text="100,000";doc1.options[1].value=100000;if(chk_value_fr=="100000"){doc1.selectedIndex=1;}
doc1.options[2].text="150,000";doc1.options[2].value=150000;if(chk_value_fr=="150000"){doc1.selectedIndex=2;}
doc1.options[3].text="200,000";doc1.options[3].value=200000;if(chk_value_fr=="200000"){doc1.selectedIndex=3;}
doc1.options[4].text="250,000";doc1.options[4].value=250000;if(chk_value_fr=="250000"){doc1.selectedIndex=4;}
doc1.options[5].text="300,000";doc1.options[5].value=300000;if(chk_value_fr=="300000"){doc1.selectedIndex=5;}
doc1.options[6].text="400,000";doc1.options[6].value=400000;if(chk_value_fr=="400000"){doc1.selectedIndex=6;}
doc1.options[7].text="500,000";doc1.options[7].value=500000;if(chk_value_fr=="500000"){doc1.selectedIndex=7;}
doc1.options[8].text="600,000";doc1.options[8].value=600000;if(chk_value_fr=="600000"){doc1.selectedIndex=8;}
doc1.options[9].text="700,000";doc1.options[9].value=700000;if(chk_value_fr=="700000"){doc1.selectedIndex=9;}
doc1.options[10].text="800,000";doc1.options[10].value=800000;if(chk_value_fr=="800000"){doc1.selectedIndex=10;}
doc1.options[11].text="900,000";doc1.options[11].value=900000;if(chk_value_fr=="900000"){doc1.selectedIndex=11;}
doc1.options[12].text="1,000,000";doc1.options[12].value=1000000;if(chk_value_fr=="1000000"){doc1.selectedIndex=12;}
doc1.options[13].text="1,500,000";doc1.options[13].value=1500000;if(chk_value_fr=="1500000"){doc1.selectedIndex=13;}
doc1.options[14].text="2,000,000";doc1.options[14].value=2000000;if(chk_value_fr=="2000000"){doc1.selectedIndex=14;}
doc1.options[15].text="3,000,000";doc1.options[15].value=3000000;if(chk_value_fr=="3000000"){doc1.selectedIndex=15;}
doc1.options[16].text="4,000,000";doc1.options[16].value=4000000;if(chk_value_fr=="4000000"){doc1.selectedIndex=16;}
doc1.options[17].text="5,000,000";doc1.options[17].value=5000000;if(chk_value_fr=="5000000"){doc1.selectedIndex=17;}
doc2.length=18;doc2.options[0].text="上限なし";if(chk_value_to==""){doc2.selectedIndex=0;}
doc2.options[1].text="100,000";doc2.options[1].value=100000;if(chk_value_to=="100000"){doc2.selectedIndex=1;}
doc2.options[2].text="150,000";doc2.options[2].value=150000;if(chk_value_to=="150000"){doc2.selectedIndex=2;}
doc2.options[3].text="200,000";doc2.options[3].value=200000;if(chk_value_to=="200000"){doc2.selectedIndex=3;}
doc2.options[4].text="250,000";doc2.options[4].value=250000;if(chk_value_to=="250000"){doc2.selectedIndex=4;}
doc2.options[5].text="300,000";doc2.options[5].value=300000;if(chk_value_to=="300000"){doc2.selectedIndex=5;}
doc2.options[6].text="400,000";doc2.options[6].value=400000;if(chk_value_to=="400000"){doc2.selectedIndex=6;}
doc2.options[7].text="500,000";doc2.options[7].value=500000;if(chk_value_to=="500000"){doc2.selectedIndex=7;}
doc2.options[8].text="600,000";doc2.options[8].value=600000;if(chk_value_to=="600000"){doc2.selectedIndex=8;}
doc2.options[9].text="700,000";doc2.options[9].value=700000;if(chk_value_to=="700000"){doc2.selectedIndex=9;}
doc2.options[10].text="800,000";doc2.options[10].value=800000;if(chk_value_to=="800000"){doc2.selectedIndex=10;}
doc2.options[11].text="900,000";doc2.options[11].value=900000;if(chk_value_to=="900000"){doc2.selectedIndex=11;}
doc2.options[12].text="1,000,000";doc2.options[12].value=1000000;if(chk_value_to=="1000000"){doc2.selectedIndex=12;}
doc2.options[13].text="1,500,000";doc2.options[13].value=1500000;if(chk_value_to=="1500000"){doc2.selectedIndex=13;}
doc2.options[14].text="2,000,000";doc2.options[14].value=2000000;if(chk_value_to=="2000000"){doc2.selectedIndex=14;}
doc2.options[15].text="3,000,000";doc2.options[15].value=3000000;if(chk_value_to=="3000000"){doc2.selectedIndex=15;}
doc2.options[16].text="4,000,000";doc2.options[16].value=4000000;if(chk_value_to=="4000000"){doc2.selectedIndex=16;}
doc2.options[17].text="5,000,000";doc2.options[17].value=5000000;if(chk_value_to=="5000000"){doc2.selectedIndex=17;}}else if(window.document.srch_frm1.elements['g2'].checked){doc1.length=13;doc1.options[0].text="下限なし";if(chk_value_fr==""){doc1.selectedIndex=0;}
doc1.options[1].text="10,000";doc1.options[1].value=10000;if(chk_value_fr=="10000"){doc1.selectedIndex=1;}
doc1.options[2].text="12,000";doc1.options[2].value=12000;if(chk_value_fr=="12000"){doc1.selectedIndex=2;}
doc1.options[3].text="14,000";doc1.options[3].value=14000;if(chk_value_fr=="14000"){doc1.selectedIndex=3;}
doc1.options[4].text="16,000";doc1.options[4].value=16000;if(chk_value_fr=="16000"){doc1.selectedIndex=4;}
doc1.options[5].text="18,000";doc1.options[5].value=18000;if(chk_value_fr=="18000"){doc1.selectedIndex=5;}
doc1.options[6].text="20,000";doc1.options[6].value=20000;if(chk_value_fr=="20000"){doc1.selectedIndex=6;}
doc1.options[7].text="25,000";doc1.options[7].value=25000;if(chk_value_fr=="25000"){doc1.selectedIndex=7;}
doc1.options[8].text="30,000";doc1.options[8].value=30000;if(chk_value_fr=="30000"){doc1.selectedIndex=8;}
doc1.options[9].text="35,000";doc1.options[9].value=35000;if(chk_value_fr=="35000"){doc1.selectedIndex=9;}
doc1.options[10].text="40,000";doc1.options[10].value=40000;if(chk_value_fr=="40000"){doc1.selectedIndex=10;}
doc1.options[11].text="45,000";doc1.options[11].value=45000;if(chk_value_fr=="45000"){doc1.selectedIndex=11;}
doc1.options[12].text="50,000";doc1.options[12].value=50000;if(chk_value_fr=="50000"){doc1.selectedIndex=12;}
doc2.length=13;doc2.options[0].text="上限なし";if(chk_value_to==""){doc2.selectedIndex=0;}
doc2.options[1].text="10,000";doc2.options[1].value=10000;if(chk_value_to=="10000"){doc2.selectedIndex=1;}
doc2.options[2].text="12,000";doc2.options[2].value=12000;if(chk_value_to=="12000"){doc2.selectedIndex=2;}
doc2.options[3].text="14,000";doc2.options[3].value=14000;if(chk_value_to=="14000"){doc2.selectedIndex=3;}
doc2.options[4].text="16,000";doc2.options[4].value=16000;if(chk_value_to=="16000"){doc2.selectedIndex=4;}
doc2.options[5].text="18,000";doc2.options[5].value=18000;if(chk_value_to=="18000"){doc2.selectedIndex=5;}
doc2.options[6].text="20,000";doc2.options[6].value=20000;if(chk_value_to=="20000"){doc2.selectedIndex=6;}
doc2.options[7].text="25,000";doc2.options[7].value=25000;if(chk_value_to=="25000"){doc2.selectedIndex=7;}
doc2.options[8].text="30,000";doc2.options[8].value=30000;if(chk_value_to=="30000"){doc2.selectedIndex=8;}
doc2.options[9].text="35,000";doc2.options[9].value=35000;if(chk_value_to=="35000"){doc2.selectedIndex=9;}
doc2.options[10].text="40,000";doc2.options[10].value=40000;if(chk_value_to=="40000"){doc2.selectedIndex=10;}
doc2.options[11].text="45,000";doc2.options[11].value=45000;if(chk_value_to=="45000"){doc2.selectedIndex=11;}
doc2.options[12].text="50,000";doc2.options[12].value=50000;if(chk_value_to=="50000"){doc2.selectedIndex=12;}}}
function change_price_type2(chk_value_fr,chk_value_to){doc1=document.srch_frm2.rent_price_fr;doc2=document.srch_frm2.rent_price_to;if(window.document.srch_frm2.elements['b1'].checked){doc1.length=18;doc1.options[0].text="下限なし";if(chk_value_fr==""){doc1.selectedIndex=0;}
doc1.options[1].text="100,000";doc1.options[1].value=100000;if(chk_value_fr=="100000"){doc1.selectedIndex=1;}
doc1.options[2].text="150,000";doc1.options[2].value=150000;if(chk_value_fr=="150000"){doc1.selectedIndex=2;}
doc1.options[3].text="200,000";doc1.options[3].value=200000;if(chk_value_fr=="200000"){doc1.selectedIndex=3;}
doc1.options[4].text="250,000";doc1.options[4].value=250000;if(chk_value_fr=="250000"){doc1.selectedIndex=4;}
doc1.options[5].text="300,000";doc1.options[5].value=300000;if(chk_value_fr=="300000"){doc1.selectedIndex=5;}
doc1.options[6].text="400,000";doc1.options[6].value=400000;if(chk_value_fr=="400000"){doc1.selectedIndex=6;}
doc1.options[7].text="500,000";doc1.options[7].value=500000;if(chk_value_fr=="500000"){doc1.selectedIndex=7;}
doc1.options[8].text="600,000";doc1.options[8].value=600000;if(chk_value_fr=="600000"){doc1.selectedIndex=8;}
doc1.options[9].text="700,000";doc1.options[9].value=700000;if(chk_value_fr=="700000"){doc1.selectedIndex=9;}
doc1.options[10].text="800,000";doc1.options[10].value=800000;if(chk_value_fr=="800000"){doc1.selectedIndex=10;}
doc1.options[11].text="900,000";doc1.options[11].value=900000;if(chk_value_fr=="900000"){doc1.selectedIndex=11;}
doc1.options[12].text="1,000,000";doc1.options[12].value=1000000;if(chk_value_fr=="1000000"){doc1.selectedIndex=12;}
doc1.options[13].text="1,500,000";doc1.options[13].value=1500000;if(chk_value_fr=="1500000"){doc1.selectedIndex=13;}
doc1.options[14].text="2,000,000";doc1.options[14].value=2000000;if(chk_value_fr=="2000000"){doc1.selectedIndex=14;}
doc1.options[15].text="3,000,000";doc1.options[15].value=3000000;if(chk_value_fr=="3000000"){doc1.selectedIndex=15;}
doc1.options[16].text="4,000,000";doc1.options[16].value=4000000;if(chk_value_fr=="4000000"){doc1.selectedIndex=16;}
doc1.options[17].text="5,000,000";doc1.options[17].value=5000000;if(chk_value_fr=="5000000"){doc1.selectedIndex=17;}
doc2.length=18;doc2.options[0].text="上限なし";if(chk_value_to==""){doc2.selectedIndex=0;}
doc2.options[1].text="100,000";doc2.options[1].value=100000;if(chk_value_to=="100000"){doc2.selectedIndex=1;}
doc2.options[2].text="150,000";doc2.options[2].value=150000;if(chk_value_to=="150000"){doc2.selectedIndex=2;}
doc2.options[3].text="200,000";doc2.options[3].value=200000;if(chk_value_to=="200000"){doc2.selectedIndex=3;}
doc2.options[4].text="250,000";doc2.options[4].value=250000;if(chk_value_to=="250000"){doc2.selectedIndex=4;}
doc2.options[5].text="300,000";doc2.options[5].value=300000;if(chk_value_to=="300000"){doc2.selectedIndex=5;}
doc2.options[6].text="400,000";doc2.options[6].value=400000;if(chk_value_to=="400000"){doc2.selectedIndex=6;}
doc2.options[7].text="500,000";doc2.options[7].value=500000;if(chk_value_to=="500000"){doc2.selectedIndex=7;}
doc2.options[8].text="600,000";doc2.options[8].value=600000;if(chk_value_to=="600000"){doc2.selectedIndex=8;}
doc2.options[9].text="700,000";doc2.options[9].value=700000;if(chk_value_to=="700000"){doc2.selectedIndex=9;}
doc2.options[10].text="800,000";doc2.options[10].value=800000;if(chk_value_to=="800000"){doc2.selectedIndex=10;}
doc2.options[11].text="900,000";doc2.options[11].value=900000;if(chk_value_to=="900000"){doc2.selectedIndex=11;}
doc2.options[12].text="1,000,000";doc2.options[12].value=1000000;if(chk_value_to=="1000000"){doc2.selectedIndex=12;}
doc2.options[13].text="1,500,000";doc2.options[13].value=1500000;if(chk_value_to=="1500000"){doc2.selectedIndex=13;}
doc2.options[14].text="2,000,000";doc2.options[14].value=2000000;if(chk_value_to=="2000000"){doc2.selectedIndex=14;}
doc2.options[15].text="3,000,000";doc2.options[15].value=3000000;if(chk_value_to=="3000000"){doc2.selectedIndex=15;}
doc2.options[16].text="4,000,000";doc2.options[16].value=4000000;if(chk_value_to=="4000000"){doc2.selectedIndex=16;}
doc2.options[17].text="5,000,000";doc2.options[17].value=5000000;if(chk_value_to=="5000000"){doc2.selectedIndex=17;}}else if(window.document.srch_frm2.elements['b2'].checked){doc1.length=13;doc1.options[0].text="下限なし";if(chk_value_fr==""){doc1.selectedIndex=0;}
doc1.options[1].text="10,000";doc1.options[1].value=10000;if(chk_value_fr=="10000"){doc1.selectedIndex=1;}
doc1.options[2].text="12,000";doc1.options[2].value=12000;if(chk_value_fr=="12000"){doc1.selectedIndex=2;}
doc1.options[3].text="14,000";doc1.options[3].value=14000;if(chk_value_fr=="14000"){doc1.selectedIndex=3;}
doc1.options[4].text="16,000";doc1.options[4].value=16000;if(chk_value_fr=="16000"){doc1.selectedIndex=4;}
doc1.options[5].text="18,000";doc1.options[5].value=18000;if(chk_value_fr=="18000"){doc1.selectedIndex=5;}
doc1.options[6].text="20,000";doc1.options[6].value=20000;if(chk_value_fr=="20000"){doc1.selectedIndex=6;}
doc1.options[7].text="25,000";doc1.options[7].value=25000;if(chk_value_fr=="25000"){doc1.selectedIndex=7;}
doc1.options[8].text="30,000";doc1.options[8].value=30000;if(chk_value_fr=="30000"){doc1.selectedIndex=8;}
doc1.options[9].text="35,000";doc1.options[9].value=35000;if(chk_value_fr=="35000"){doc1.selectedIndex=9;}
doc1.options[10].text="40,000";doc1.options[10].value=40000;if(chk_value_fr=="40000"){doc1.selectedIndex=10;}
doc1.options[11].text="45,000";doc1.options[11].value=45000;if(chk_value_fr=="45000"){doc1.selectedIndex=11;}
doc1.options[12].text="50,000";doc1.options[12].value=50000;if(chk_value_fr=="50000"){doc1.selectedIndex=12;}
doc2.length=13;doc2.options[0].text="上限なし";if(chk_value_to==""){doc2.selectedIndex=0;}
doc2.options[1].text="10,000";doc2.options[1].value=10000;if(chk_value_to=="10000"){doc2.selectedIndex=1;}
doc2.options[2].text="12,000";doc2.options[2].value=12000;if(chk_value_to=="12000"){doc2.selectedIndex=2;}
doc2.options[3].text="14,000";doc2.options[3].value=14000;if(chk_value_to=="14000"){doc2.selectedIndex=3;}
doc2.options[4].text="16,000";doc2.options[4].value=16000;if(chk_value_to=="16000"){doc2.selectedIndex=4;}
doc2.options[5].text="18,000";doc2.options[5].value=18000;if(chk_value_to=="18000"){doc2.selectedIndex=5;}
doc2.options[6].text="20,000";doc2.options[6].value=20000;if(chk_value_to=="20000"){doc2.selectedIndex=6;}
doc2.options[7].text="25,000";doc2.options[7].value=25000;if(chk_value_to=="25000"){doc2.selectedIndex=7;}
doc2.options[8].text="30,000";doc2.options[8].value=30000;if(chk_value_to=="30000"){doc2.selectedIndex=8;}
doc2.options[9].text="35,000";doc2.options[9].value=35000;if(chk_value_to=="35000"){doc2.selectedIndex=9;}
doc2.options[10].text="40,000";doc2.options[10].value=40000;if(chk_value_to=="40000"){doc2.selectedIndex=10;}
doc2.options[11].text="45,000";doc2.options[11].value=45000;if(chk_value_to=="45000"){doc2.selectedIndex=11;}
doc2.options[12].text="50,000";doc2.options[12].value=50000;if(chk_value_to=="50000"){doc2.selectedIndex=12;}}}
