Actually, I'd argue that relying on magical global variables mapping to page elements is bad practice in the first place.
If you want an element by ID, that's what document.getElementByID is for (or $ if you're using a JS framework). If you want a form element by its name (why not it's id?), you should go out to get that specifically.