<input name="id" type="text" onchange="checkIt()">
<script> function checkIt() { theGroup = document.theForm.id } </script>