The error Uncaught TypeError: Cannot read property 'value' of null is alerted for the following JavaScript, even though the HTML has the same id name.
Script
var ctdwnSec = document.getElementById("ctdwnTimeDispSec").value;
HTML
<input type="text" value="0" id="ctdwnTimeDispSec"/>