0 == false
evaluates to true
in javascript, due to the concept of truthiness. That's why your if clause evaluates to false
every time.
It appears that you want to verify the Number(document.form1.baseline_du_115.value)
is defined. Here are some ways you can write that:
document.form1.baseline_du_115.value != null
document.form1.baseline_du_115.value !== undefined
!isNaN(Number(document.form1.baseline_du_115.value))