function MM_swapImgRestore(){var e,r,n=document.MM_sr;for(e=0;n&&e0&&parent.frames.length&&(r=parent.frames[e.substring(n+1)].document,e=e.substring(0,n)),!(M=r[e])&&r.all&&(M=r.all[e]),t=0;!M&&t=selcount)return void alert("路線を選択してください");var select_sid=f.elements["station_id[]"];for(select_sid.innerHTML="",i=0;selcount>i;i++){var lid=selarray[i];eval("var linenamestr = linename_"+lid),eval("var starray = stations_"+lid);var opt_line=document.createElement("option");opt_line.text="----"+linenamestr+"----",opt_line.value=0,_safari?select_sid.appendChild(opt_line):select_sid.options.add(opt_line);for(var stcount=starray.length,stbd=document.createElement("tbody"),j=0;stcount>j;j++){var darray=starray[j].split(","),opt_station=document.createElement("option");opt_station.text="|-"+darray[0],opt_station.value=darray[1],_safari?select_sid.appendChild(opt_station):select_sid.options.add(opt_station)}}select_lid.style.display="none",select_sid.style.display="inline",f.disp_station.style.display="none",f.hide_station.style.display="inline"}function displines(){var e=document.form1,t=e.elements["line_id[]"];t.style.display="inline";var i=e.elements["station_id[]"];i.style.display="none",e.disp_station.style.display="inline",e.hide_station.style.display="none"}function itemCheck(){var e=document.form1;if(e.yachin_low.value>=0&&e.yachin_hi.value>=0&&new Number(e.yachin_low.value).valueOf()>=new Number(e.yachin_hi.value).valueOf())return alert("賃料の上限と下限の関係を正しく選択してください"),e.yachin_low.focus(),!1;if(e.menseki_low.value>=0&&e.menseki_hi.value>=0&&new Number(e.menseki_low.value).valueOf()>=new Number(e.menseki_hi.value).valueOf())return alert("敷地面積の上限と下限の関係を正しく選択してください"),e.menseki_low.focus(),!1;var t=e.elements["city_id[]"];t.options[0].selected&&(t.options[0].selected=!1);var i=e.elements["line_id[]"];return i.options[0].selected&&(i.options[0].selected=!1),!0}function stationSearch(e){var t=e.action;e.action="search.php",e.submit(),e.action=t}var _safari=-1!=navigator.userAgent.toLowerCase().indexOf("safari");