function checkCmt(no) { var namecmt = eval('document.cmtpost_' + no + '.name.value.length'); var cmtcmt = eval('document.cmtpost_' + no + '.comment.value.length'); var passcmt = eval('document.cmtpost_' + no + '.password.value.length'); if (namecmt == 0) { alert('名前が未入力です'); return false; } else if (passcmt == 0) { alert('パスワードが未入力です'); return false; } else if (cmtcmt == 0) { alert('コメントが未入力です'); return false; } else { return true; } } function cmtview(no) { remoteURL = "https://www.bangboo.com/cms/security/p/cmt_view.php?no=" + no; cmtcont = document.getElementById("cmt" + no).innerHTML; if ( cmtcont == "" ){ self.frames.cmtviewfrm.location.href = remoteURL; }else{ if ( cmtcont.indexOf( "