function updatetot() { var runtot = 0; runtot = parseInt(document.checklist.Q1Scr.value); runtot = runtot + parseInt(document.checklist.Q2Scr.value); runtot = runtot + parseInt(document.checklist.Q3Scr.value); runtot = runtot + parseInt(document.checklist.Q4Scr.value); runtot = runtot + parseInt(document.checklist.Q5Scr.value); runtot = runtot + parseInt(document.checklist.Q6Scr.value); document.checklist.total.value = runtot; if (runtot>=6 && runtot<=6){ document.checklist.days.value="3 days."; } if (runtot>=7 && runtot<=8){ document.checklist.days.value="4 days."; } if (runtot>=9 && runtot<=11){ document.checklist.days.value="5 days."; } if (runtot>=12 && runtot<=14){ document.checklist.days.value="6 days."; } if (runtot>=15 && runtot<=17){ document.checklist.days.value="7 days."; } if (runtot>=18 && runtot<=20){ document.checklist.days.value="8 days."; } if (runtot>=21 && runtot<=23){ document.checklist.days.value="9 days."; } if (runtot>=24 && runtot<=27){ document.checklist.days.value="10 days."; } if (runtot>=26){ document.checklist.days.value="12 days."; } if (runtot>=28){ document.checklist.days.value="14 days."; } } function qupdate(thisform) { var question = thisform; if (question == 'Q1.1') { document.checklist.Q1Scr.value='5'; } else if (question == 'Q1.2') { document.checklist.Q1Scr.value='3'; } else if (question == 'Q1.3') { document.checklist.Q1Scr.value='2'; }else if (question == 'Q1.4') { document.checklist.Q1Scr.value='1'; } if (question == 'Q2.1') { document.checklist.Q2Scr.value='5'; } else if (question == 'Q2.2') { document.checklist.Q2Scr.value='3'; } else if (question == 'Q2.3') { document.checklist.Q2Scr.value='2'; }else if (question == 'Q2.4') { document.checklist.Q2Scr.value='1'; } if (question == 'Q3.1') { document.checklist.Q3Scr.value='5'; } else if (question == 'Q3.2') { document.checklist.Q3Scr.value='3'; } else if (question == 'Q3.3') { document.checklist.Q3Scr.value='2'; }else if (question == 'Q3.4') { document.checklist.Q3Scr.value='1'; } if (question == 'Q4.1') { document.checklist.Q4Scr.value='5'; } else if (question == 'Q4.2') { document.checklist.Q4Scr.value='3'; } else if (question == 'Q4.3') { document.checklist.Q4Scr.value='2'; }else if (question == 'Q4.4') { document.checklist.Q4Scr.value='1'; } if (question == 'Q5.1') { document.checklist.Q5Scr.value='5'; } else if (question == 'Q5.2') { document.checklist.Q5Scr.value='3'; } else if (question == 'Q5.3') { document.checklist.Q5Scr.value='2'; }else if (question == 'Q5.4') { document.checklist.Q5Scr.value='1'; } if (question == 'Q6.1') { document.checklist.Q6Scr.value='5'; } else if (question == 'Q6.2') { document.checklist.Q6Scr.value='3'; } else if (question == 'Q6.3') { document.checklist.Q6Scr.value='2'; }else if (question == 'Q6.4') { document.checklist.Q6Scr.value='1'; } updatetot(); }