function MM_swapImgRestore(){var e,o,n=document.MM_sr;for(e=0;n&&e0&&parent.frames.length&&(o=parent.frames[e.substring(n+1)].document,e=e.substring(0,n)),!(r=o[e])&&o.all&&(r=o.all[e]),t=0;!r&&t=e)){var o=document.form2;o.room_id.value=e,o.submit()}}function countCheck(e){var o=document.form1,n=o.elements["room_id[]"],t=(o.elements["line_id[]"],"");if(n.length)for(var r=0;r0?(setcookie("room_id","/"+a.join("/")+"/"),setcookie("room_url","/"+i.join("/")+"/")):(setcookie("room_id",""),setcookie("room_url","")),alert("お気に入りから削除しました"),location.reload()}}function setcookie(e,o){var n=2592e6;today=new Date;var t=Date.parse(today.toUTCString())+n;limitdate=new Date(t),document.cookie=e+"="+escape(o)+"; expires="+limitdate.toGMTString()+"; path=/"}function getcookie(e){for(var o=document.cookie.split("; "),n=0;n1?unescape(t[1]):""}return""}function jumppage(e){var o=document.form4;saveselstatus(o),o.pageno.value=e,o.submit()} var curSortOrder = '27'; function saveselstatus(e){var a=document.form1,l=document.form4,v=l.pageno.value-1,u=a.elements["room_id[]"];if(u){var t=e.elements["sel_status[]"];if(t.length)var s=t[v];else var s=t;if(s.value="",u.length)for(var n=0;n0&&(s.value=s.value.substr(0,r-1))}} function list_p() { var f = document.form4; saveselstatus(f); f.pict.value = 1; f.submit(); } function akiariSubmit(e){ o=document.form4; if(e.checked == true){ o.akiari_flg.value=1; }else{ o.akiari_flg.value=""; } jumppage(1) } function itemCheck(){var e=document.form3;return e.yachin_low.value>=0&&e.yachin_hi.value>=0&&new Number(e.yachin_low.value).valueOf()>=new Number(e.yachin_hi.value).valueOf()?(alert("賃料の上限と下限の関係を正しく選択してください"),e.yachin_low.focus(),!1):e.menseki_low.value>=0&&e.menseki_hi.value>=0&&new Number(e.menseki_low.value).valueOf()>=new Number(e.menseki_hi.value).valueOf()?(alert("専有面積の上限と下限の関係を正しく選択してください"),e.menseki_low.focus(),!1):!0}function setdir(e){for(var t=e.sort_order,o=0;o0&&e.sort_order2.value>0&&jumppage(1),!1}function popupimg(e,t){var o="popupele",n=document.getElementById(e),i=getElementPosition(n);document.getElementById(o)&&document.body.removeChild(document.getElementById(o));var r=document.createElement("IMG");r.id=o,r.style.position="absolute",r.style.border="1px solid #cccccc",document.body.appendChild(r);var l=document.getElementById(o);return l.src=t,document.body.scrollTop<=i.top-l.height?(l.style.top=parseInt(i.top)-parseInt(l.height)+"px",l.style.left=parseInt(i.left)+parseInt(n.clientWidth)+"px"):(l.style.top=parseInt(i.top)+parseInt(n.clientHeight)+"px",l.style.left=parseInt(i.left)+parseInt(n.clientWidth)+"px"),!0}function unpopupimg(){var e="popupele";document.getElementById(e)&&document.body.removeChild(document.getElementById(e))}function getElementPosition(e){for(var t="string"==typeof e?document.getElementById(e):e,o=10,n=50;t;)o+=t.offsetLeft,n+=t.offsetTop,t=t.offsetParent;return-1!=navigator.userAgent.indexOf("Mac")&&"undefined"!=typeof document.body.leftMargin&&(o+=document.body.leftMargin,n+=document.body.topMargin),{left:o,top:n}}function dispSwitch(e){var t=document.getElementById("searchBlock_"+e),o=!1;t.style.display="none"==t.style.display?"":"none";for(var n=1;2>=n;n++)if("none"!=document.getElementById("searchBlock_"+n).style.display){o=!0;break}document.getElementById("searchBlock_fs").style.display=o?"":"none"}function seltab(e,t,o,n){if(document.getElementById)for(i=0;i<=o;i++)document.getElementById(e+i)&&(i==n?(document.getElementById(e+i).style.visibility="visible",document.getElementById(e+i).style.position="",document.getElementById(t+i).className="open"):(document.getElementById(e+i).style.visibility="hidden",document.getElementById(e+i).style.position="absolute",document.getElementById(t+i).className="close"))}function setcookie(e,t){var o=2592e6;today=new Date;var n=Date.parse(today.toUTCString())+o;limitdate=new Date(n),document.cookie=e+"="+escape(t)+"; expires="+limitdate.toGMTString()+"; path=/"}function getcookie(e){for(var t=document.cookie.split("; "),o=0;o1?unescape(n[1]):""}return""}function setfavorite(e,t){var o=getcookie("room_id"),n="/"+e+"/";if(""!=o&&o.indexOf(n)>=0)return void alert("既に登録されています");""==o&&(o="/"),o+=e+"/",setcookie("room_id",o);var i=getcookie("room_url");""==i&&(i="/");var r=/\+/g;i+=t.replace(r,"#")+"/",setcookie("room_url",i);var l=getfavoritelistnum();$(".fa_waku").text(l),alert("お気に入りに登録しました"),anaWriteFavoriteLog(e)}function getfavoritelistnum(){var e=getcookie("room_id"),t=e.split("/");t.shift(),t.pop();var o=0;for(var n in t)t.hasOwnProperty(n)&&o++;return o}