<input type="checkbox" id="checkdost" value="checkbox" /> if (document.getElementById('checkdost').checked == true) {d=75} else {d=0}