document.form['my-name-2']//document.getElementsByName('my-name-2')[0]
<br id="$_-" /> <script>alert(document.getElementById('$_-'));</script>