Widget:Atria: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly> <script type="text/javascript"> function calcScore(){ var score = 0; if(document.forms["ATRIA"]["input1"].checked == 1){ score += 3; } if(document.forms["ATRIA"]..." |
Undo revision 1491783 by Saeedeh Kowsarnia (talk) Tag: Undo |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div style="align: central"> | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
function calcScore(){ | function calcScore(){ | ||
Line 21: | Line 22: | ||
if(score == 0){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is < 1%";} | if(score == 0){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is < 1%";} | ||
if(score == 1){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is < 1%";} | if(score == 1){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is < 1%";} | ||
if(score == 2){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a | if(score == 2){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is < 1%";} | ||
if(score == 3){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a | if(score == 3){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is < 1%";} | ||
if(score == 4){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a | if(score == 4){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is 2-3%";} | ||
if(score >= 5 && score <= 10){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is > 5%";} | if(score >= 5 && score <= 10){document.forms["ATRIA"]["longanswer"].value = "Predicted bleeding risk through a year is > 5%";} | ||
} | } | ||
Line 38: | Line 39: | ||
<input type="text" size="80" name="longanswer" /> | <input type="text" size="80" name="longanswer" /> | ||
</form> | </form> | ||
</div> | |||
</includeonly> | </includeonly> |