ストレス状態テストストレス状態テスト

 ストレス状態テスト <script language="javascript"> <!--// function Calc(){ var arrayAnswerName = new Array( "Ans01","Ans02","Ans03","Ans04","Ans05","Ans06","Ans07","Ans08","Ans09","Ans10" ,"Ans11","Ans12","Ans13","Ans14","Ans15","Ans16","Ans17","Ans18","Ans19","Ans20" ,"Ans21"); var AnswerMax = 21; var arrayScoreEach = new Array(AnswerMax); var PointSum = 0; var nRadioCount = 0; var nSelectMax = 0; var nChkCount = 0; for (nAnswer = 0; nAnswer < arrayAnswerName.length; nAnswer++){ nSelectMax = document.frmSample.elements[arrayAnswerName[nAnswer]].length; for (nRadioCount = 0; nRadioCount < nSelectMax; nRadioCount++){ if (document.frmSample.elements[arrayAnswerName[nAnswer]][nRadioCount].checked){ nChkCount++; arrayScoreEach[nAnswer] = document.frmSample.elements[arrayAnswerName[nAnswer]][nRadioCount].value; PointSum += eval(arrayScoreEach[nAnswer]); } } } if(nChkCount < AnswerMax){ var nRemain = AnswerMax - nChkCount; document.getElementById("msg").innerHTML = '<font color="red">' + 'あと' + nRemain + '問です' + '</font>'; }else{ document.frmSample.txtYes.value = PointSum; document.frmSample.txtNo.value = AnswerMax - PointSum; document.getElementById("msg").innerHTML = ''; } } function ResetForm() { document.getElementById("msg").innerHTML = ''; } //--></script> <noscript> <p class="text-center"> 注意! JavaScriptが無効です。<br /> テスト結果を算出するには、ブラウザのJavaScriptを有効にして下さい。<br /> </p> </noscript> <br /><h1>ストレス状態テスト</h1><br /> <p class="text-center">以下の項目で当てはまる○をクリックしてください</p> <blockquote> <form name="frmSample"> <table> <tbody> <tr> <th colspan="2">1.人生の先が見えてきたような気がする</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans01" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans01" class="choice" /></div></td> </tr> <tr> <th colspan="2">2.なんとなく憂うつになりやすい</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans02" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans02" class="choice" /></div></td> </tr> <tr> <th colspan="2">3.季節感を感じることが少なくなった</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans03" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans03" class="choice" /></div></td> </tr> <tr> <th colspan="2">4.注意力や集中力が続かなくなった</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans04" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans04" class="choice" /></div></td> </tr> <tr> <th colspan="2">5.人の名前が思い出せなくなった</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans05" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans05" class="choice" /></div></td> </tr> <tr> <th colspan="2">6.なんとなくイライラすることが多い</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans06" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans06" class="choice" /></div></td> </tr> <tr> <th colspan="2">7.最近大声で笑っていない</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans07" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans07" class="choice" /></div></td> </tr> <tr> <th colspan="2">8.やけに老後が心配になってきた</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans08" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans08" class="choice" /></div></td> </tr> <tr> <th colspan="2">9.一人で考え込む時間が増えた</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans09" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans09" class="choice" /></div></td> </tr> <tr> <th colspan="2">10.昔を懐かしんだり、昔は良かったと思うことが多い</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans10" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans10" class="choice" /></div></td> </tr> <tr> <th colspan="2">11.仕事がおっくうで疲れやすい</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans11" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans11" class="choice" /></div></td> </tr> <tr> <th colspan="2">12.決断力が鈍くなってきたように思う</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans12" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans12" class="choice" /></div></td> </tr> <tr> <th colspan="2">13.涙もろくなったように思う</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans13" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans13" class="choice" /></div></td> </tr> <tr> <th colspan="2">14.日々の仕事を終えても充実感がない</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans14" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans14" class="choice" /></div></td> </tr> <tr> <th colspan="2">15.いつもどおりに仕事ができなくなった</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans15" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans15" class="choice" /></div></td> </tr> <tr> <th colspan="2">16.退職や転職を考えることがある</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans16" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans16" class="choice" /></div></td> </tr> <tr> <th colspan="2">17.すっきりした気分になれない</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans17" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans17" class="choice" /></div></td> </tr> <tr> <th colspan="2">18.自分は役に立たない人間だと思う</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans18" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans18" class="choice" /></div></td> </tr> <tr> <th colspan="2">19.異性に興味が持てなくなった</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans19" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans19" class="choice" /></div></td> </tr> <tr> <th colspan="2">20.将来に希望が持てなくなった</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans20" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans20" class="choice" /></div></td> </tr> <tr> <th colspan="2">21.死んだら楽になると思ったことがある</th> </tr> <tr> <td>はい </td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="1" name="Ans21" class="choice" /></div></td> </tr> <tr> <td>いいえ</td><td nowrap="nowrap" class="enter"><div align="center"><input onclick="Calc()" type="radio" value="0" name="Ans21" class="choice" /></div></td> </tr> </tbody> </table> <div class="text-center"><span id="msg"></span> <br /><br /> はい: <input class="gokei" readonly size="5" name="txtYes" type="text" /> 個 / いいえ:<input class="gokei" readonly size="5" name="txtNo" type="text" /> 個<br class="d-block d-md-none"> <br><input type="reset" value="リセット" width="50" onClick="ResetForm()" class="resetbtn"> <br><br> </div> <br /> <table> <tbody> <tr> <td colspan="2" align="center">※ストレス状態テスト結果(『はい』の数)</td> </tr> <tr> <th>5個未満</th><td bgColor="#fffacd">ストレスはありません</td> </tr> <tr> <th>6~10個</th><td bgColor="#fffacd">軽度のストレスがかかっています</td> </tr> <tr> <th>11~15個</th><td bgColor="#fffacd">かなりのストレスがかかっています</td> </tr> <tr> <th>16個以上</th><td bgColor="#fffacd">非常に強いストレスがかかっています</td> </tr> </tbody> </table> <br /> </form> </blockquote> <div class="w-100 my-3"><p class="float-right"><a href="quick-check.html" class="btn btn-primary">診断テスト一覧</a></p></div> </div> </section> <section class="section-contact bg-creamyellow d-none d-md-block"> <div class="container notfront"> <p class="contact-text">体や心の不調、上記の症状などでお悩み方はまずは、お気軽にご相談ください!</p> <div class="row no-gutters"> <div class="col-md-7"> <h4 class="notfront">大阪「東梅田駅」徒歩<strong>1</strong>分。「泉の広場」すぐ</h4> <p class="contact-subtext">診療時間:平日<strong>21</strong>時まで、土日も終日診療</p> </div> <div class="col-md-5 yoyaku"> <p class="border-text">予約受付</p> <p class="text-number">06-7777-4070</p> <div class="btn-gra"><a class="btn" href="/reservation">オンライン予約はこちら <i class="fa fa-arrow-circle-right" aria-hidden="true"></i> </a></div> </div> </div> </div> </section> <section class="m-link d-block d-md-none fixed-bottom"> <div class="row"> <div class="col-6 b-yoyaku"><a href="/reservation">オンライン予約 <i class="fa fa-arrow-circle-right" aria-hidden="true"></i></a></div> <div class="col-6 b-access"><a href="about.html#access">アクセス <i class="fa fa-arrow-circle-right" aria-hidden="true"></i></a></div> </div> </section> <div id="back-top" class="scrolltotop"><a href="#top" class="btn btn-light btn-lg back-to-top" role="button">↑</a></div> </main> <!-- Footer --> <footer class="footer"> <div class="copy-right_text"> <div class="container"> <div class="row d-flex align-items-center mt-3"> <div class="col-md-6 d-none d-md-block"> <img src="/assets/templates/main/img/logo.png"></div> <div class="col-12 col-md-6 f-navi"> <ul> <li><a href="privacy.html">セキュリティーポリシー</a></li> <li><a href="privacy.html">プライバシーポリシー</a></li> </ul> <p>© Osaka Mental Clinic.</p> </div> </div> </div> </div> </footer> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script src='https://unpkg.com/tooltip.js/dist/umd/tooltip.min.js'></script> <script src="assets/templates/main/js/bootstrap.min.js" ></script> <script src="assets/templates/main/js/bootstrap.bundle.min.js" ></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script> <script src="https://unpkg.com/masonry-layout@4.2.1/dist/masonry.pkgd.min.js"></script> <script src="/assets/templates/main/js/main.js"></script> </body> </html>