Widget:Apgarscore: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
function calcScore(){ | function calcScore(){ | ||
var score = 0; | var score = 0; | ||
if(document.forms["Apgarscore"]["input4"].checked == 1){score += 2;} | if(document.forms["Apgarscore"]["input4"].checked == 1){score += 2;} | ||
if(document.forms["Apgarscore"]["input5"].checked == 1){score += 1;} | if(document.forms["Apgarscore"]["input5"].checked == 1){score += 1;} |