function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) { setcookie("room_id", "/" + newIdArray.join("/") + "/"); setcookie("room_url", "/" + newUrlArray.join("/") + "/"); } else { setcookie("room_id", ""); setcookie("room_url", ""); } alert("お気に入りから削除しました"); location.reload(); } function setcookie(sName, sValue) { var days30 = 60 * 60 * 24 * 30 * 1000; today = new Date(); var ts = Date.parse(today.toUTCString()) + days30; limitdate = new Date(ts); document.cookie = sName + "=" + escape(sValue) + "; expires=" + limitdate.toGMTString() + "; path=/"; } function getcookie(sName) { var aCookie = document.cookie.split("; "); for (var i=0; i 1) { return unescape(aCrumb[1]); } return ""; } } return ""; } function jumppage(v) { var f4 = document.form4; saveselstatus(f4); f4.pageno.value = v; f4.submit(); } var curSortOrder = 5; function saveselstatus(f) { var f1 = document.form1; var f4 = document.form4; var pno = f4.pageno.value - 1; var carray = f1.elements["room_id[]"]; if (!carray) { return; } var sarray = f.elements["sel_status[]"]; if (sarray.length) { var sarray2 = sarray[pno]; } else { var sarray2 = sarray; } sarray2.value = ""; if (carray.length) { for (var i=0; i 0) { sarray2.value = sarray2.value.substr(0, slen - 1); } } function list_p() { var f = document.form4; saveselstatus(f); f.pict.value = 1; f.submit(); } function itemCheck() { var f = document.form3; if (f.yachin_low.value >= 0 && f.yachin_hi.value >= 0) { if ((new Number(f.yachin_low.value)).valueOf() >= (new Number(f.yachin_hi.value)).valueOf()) { alert("賃料の上限と下限の関係を正しく選択してください"); f.yachin_low.focus(); return false; } } if (f.menseki_low.value >= 0 && f.menseki_hi.value >= 0) { if ((new Number(f.menseki_low.value)).valueOf() >= (new Number(f.menseki_hi.value)).valueOf()) { alert("専有面積の上限と下限の関係を正しく選択してください"); f.menseki_low.focus(); return false; } } return true; } function setdir(f) { var so = f.sort_order; for (var i=0; i 1) { return unescape(aCrumb[1]); } return ""; } } return ""; } function setfavorite(v,u) { // 旧データの削除 //document.cookie = "room_id=; expires=" + new Date().toGMTString(); //document.cookie = "room_url=; expires=" + new Date().toGMTString(); var rid = getcookie("room_id"); var idstr = "/" + v + "/"; if (rid != "" && rid.indexOf(idstr) >= 0) { alert("既に登録されています"); return; } if (rid == "") { rid = "/"; } rid += v + "/"; setcookie("room_id", rid); var ustr = getcookie("room_url"); if (ustr == "") { ustr = "/"; } var re = /\+/g; ustr += u.replace(re, "#") + "/"; setcookie("room_url", ustr); var fimg = document.createElement("IMG"); fimg.src = "/php_common/favorite.php?room_id=" + v; alert("お気に入りに登録しました"); anaWriteFavoriteLog( v ); }