Widget:IMPROVEDDScore: Difference between revisions
Jump to navigation
Jump to search
Tarek Nafee (talk | contribs) No edit summary |
Tarek Nafee (talk | contribs) No edit summary |
||
Line 25: | Line 25: | ||
score += 1; | score += 1; | ||
} | } | ||
document.forms["IMPROVEDDScore"][" | document.forms["IMPROVEDDScore"]["result1"].value = score; | ||
if(score == 0){document.forms["IMPROVEDDScore"][" | if(score == 0){document.forms["IMPROVEDDScore"]["longanswer1"].value = "0.4%";} | ||
if(score == 1){document.forms["IMPROVEDDScore"][" | if(score == 1){document.forms["IMPROVEDDScore"]["longanswer1"].value = "0.6%";} | ||
if(score == 2){document.forms["IMPROVEDDScore"][" | if(score == 2){document.forms["IMPROVEDDScore"]["longanswer1"].value = "0.8%";} | ||
} | } | ||
if(score == 3){document.forms["IMPROVEDDScore"][" | if(score == 3){document.forms["IMPROVEDDScore"]["longanswer1"].value = "1.2%";} | ||
} | } | ||
if(score == 4){document.forms["IMPROVEDDScore"][" | if(score == 4){document.forms["IMPROVEDDScore"]["longanswer1"].value = "1.6%";} | ||
} | } | ||
if(score >= 5){document.forms["IMPROVEDDScore"][" | if(score >= 5){document.forms["IMPROVEDDScore"]["longanswer1"].value = "2.2%";} | ||
} | } | ||
Line 52: | Line 52: | ||
<tr><td>Age more than 60 years</td><td><input type="checkbox" name="input7" value="1.0" onchange="calcScore();" /></td></tr> | <tr><td>Age more than 60 years</td><td><input type="checkbox" name="input7" value="1.0" onchange="calcScore();" /></td></tr> | ||
</table> | </table> | ||
Score: <input type="text" name=" | Score: <input type="text" name="result1" /><br /> | ||
<input type="text" size="60" name=" | <input type="text" size="60" name="longanswer1" /> | ||
</form> | </form> | ||
</includeonly> | </includeonly> |