function helpPop(a){$("help-title").innerHTML=title[a];$("help-comment").innerHTML=comments[a]}function attentPop(a){$("attent-title").innerHTML=title[a];$("attent-comment").innerHTML=comments[a]}function ImageCaption(a){$("imageCaption").innerHTML=a}function pointPop(a){$("point-title").innerHTML=title[a];$("point-comment").innerHTML=comments[a]}function chkall(d){var b=document.getElementsByTagName("input");for(var c=0,a=b.length;c<a;c++){if((b[c].type=="checkbox")&&((b[c].getAttribute("ozein_allchk_mode"))==1)){b[c].checked=d}}}function oppsend(b){var a=document.getElementById("opmessage");if(!a.value){alert("入力してください");return}else{if(a.value.length>1000){alert("1000文字以上は入力できません");a.value=a.value.substring(0,1000);return}}b.disabled=true;new Ajax.Request("/opinion/",{method:"post",postBody:Form.serialize("opform"),onSuccess:function(c){$("messageop").innerHTML='<p><b>ありがとうございました</b>頂いたご意見にはスタッフが必ず目を通します。<br />個々のご意見にお返事できませんので、予めご了承ください。<span><a href="http://inquire.homes.co.jp/consumer/request.php">お返事が必要な<br />お問い合わせはこちら</a></span></p>'},onFailure:function(c){$("messageop").innerHTML='<p><b>送信に失敗しました</b>申し訳ありませんが再度お試しください。<span><a href="http://inquire.homes.co.jp/consumer/request.php">お返事が必要な<br />お問い合わせはこちら</a></span></p>'},onException:function(c){$("messageop").innerHTML='<p><b>送信に失敗しました</b>申し訳ありませんが再度お試しください。<span><a href="http://inquire.homes.co.jp/consumer/request.php">お返事が必要な<br />お問い合わせはこちら</a></span></p>'}})}function ShowLength(d){var c;if(d.length==0){var a=document.getElementById("opbtn");a.disabled=true;c=d.length}else{if(d.length>1000){alert("1000文字以上は入力できません");var b=document.getElementById("opmessage");b.value=b.value.substring(0,1000);c=1000}else{var a=document.getElementById("opbtn");a.disabled=false;c=d.length}}document.getElementById("inputlength").innerHTML="<span>"+c+"</span>/1000文字"}function delayJump(b,a){a=a||false;setTimeout(function(){if(a){window.open(b)}else{window.location.href=b}},100)}function trackJump(a){var c=a.getAttribute("href","2"),b=a.getAttribute("target");if(!c){return}delayJump(c,b==="_blank")}function trackSubmit(a){var b=a.form;if(b){setTimeout(function(){b.submit()},100)}};
