document.getElementById('idForm').getElementsByTag Name('input')[0]...
qui stai usando i metodi del DOM