Widget:TIMI STEMI: Difference between revisions

Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
if(document.forms["TIMI_STEMI"]["input7"].checked == 1){score += 1;}
if(document.forms["TIMI_STEMI"]["input7"].checked == 1){score += 1;}
if(document.forms["TIMI_STEMI"]["input8"].checked == 1){score += 1;}
if(document.forms["TIMI_STEMI"]["input8"].checked == 1){score += 1;}
if(document.forms["TIMI_STEMI"]["input9"].checked == 1){score += 1;
if(document.forms["TIMI_STEMI"]["input9"].checked == 1){score += 1;}
}
 
document.forms["TIMI_STEMI"]["result"].value = score;
document.forms["TIMI_STEMI"]["result"].value = score;
if(score == 0){document.forms["TIMI_STEMI"]["longanswer"].value = "0.8%";}
if(score == 0){document.forms["TIMI_STEMI"]["longanswer"].value = "0.8%";}
if(score == 1){document.forms["TIMI_STEMI"]["longanswer"].value = "1.6%";}
if(score == 1){document.forms["TIMI_STEMI"]["longanswer"].value = "1.6%";}
Line 19: Line 20:
if(score == 3){document.forms["TIMI_STEMI"]["longanswer"].value = "4.4%";}
if(score == 3){document.forms["TIMI_STEMI"]["longanswer"].value = "4.4%";}
if(score == 4){document.forms["TIMI_STEMI"]["longanswer"].value = "7.3%";}
if(score == 4){document.forms["TIMI_STEMI"]["longanswer"].value = "7.3%";}
if(score == 5){document.forms["TIMI_STEMI"]["longanswer"].value = “12.4%";}
if(score == 5){document.forms["TIMI_STEMI"]["longanswer"].value = "12.4%";}
if(score == 6){document.forms["TIMI_STEMI"]["longanswer"].value = "16.1%";}
if(score == 6){document.forms["TIMI_STEMI"]["longanswer"].value = "16.1%";}
if(score == 7){document.forms["TIMI_STEMI"]["longanswer"].value = "23.4%";}
if(score == 7){document.forms["TIMI_STEMI"]["longanswer"].value = "23.4%";}

Latest revision as of 21:39, 13 November 2018