or if you are just interested in how many they used, not whether they are empty or not, you could use something like this:
<script>
var boxes = new Array();
function focused(x)
{
boxes[boxes.length] = x.name;
}
</script>
<inpu type="text" name="bob" onfocus="focused(this);"> luciddream@subdimension.com