function ExpCalc () {
document.SurveyTakeForm.DQuestion_13781.value = 0
wenn (document.SurveyTakeForm.DQuestion_13745.value! = "")
{
varA = parseFloat (document.SurveyTakeForm.DQuestion_13745.value.replace (/[,] /g, ""))
}
sonst {
varA = 0
}
wenn (document.SurveyTakeForm.DQuestion_13746.value! = "")
{
varB = parseFloat (document.SurveyTakeForm.DQuestion_13746.value.replace (/[,] /g, ""))
}
sonst {
varB = 0
}
wenn (document.SurveyTakeForm.DQuestion_13747.value! = "")
{
varC = parseFloat (document.SurveyTakeForm.DQuestion_13747.value.replace (/[,] /g, ""))
}
sonst {
varC = 0
}
var ExpCalc = parseFloat (varA) + parseFloat (varB) + parseFloat (varC)
ExpCalc = ExpCalc.toFixed (2)
document.SurveyTakeForm.DQuestion_13781.value = ExpCalc
}
|