var start = new Date(document.getElementById('year').value); var y = start.getFullYear();