Hi there Grizz,
here is my possible solution to your problem...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>check inputs for numbers</title>
<style type="text/css">
#table1 {
float:left;
clear:left;
width:300px;
border:1px outset #666;
margin-bottom:10px;
}
#table1 td {
padding:3px;
border:1px inset #666;
text-align:center;
}
#but {
clear:both;
display:block;
}
.indicate{
border-style:solid;
border-color:#f00;
}
</style>
<script type="text/javascript">
function init() {
document.getElementById('but').onclick=function() {
nf=[];
inps=document.getElementById('table1').getElementsByTagName('input');
for(c=0;c<inps.length;c++) {
inps[c].className='';
if((inps[c].value=='')||(isNaN(inps[c].value))) {
inps[c].className='indicate';
nf.push(c+1);
}
}
if(nf!='') {
alert('input(s)...\n\n'+nf+'\n\n...require your attention');
}
}
}
window.addEventListener?
window.addEventListener('load',init,false):
window.attachEvent('onload',init);
</script>
</head>
<body>
<div>
<table id="table1"><tr>
<td><input type="text" size="1" name="group1"></td>
<td><input type="text" size="1" name="group2"></td>
<td><input type="text" size="1" name="group3"></td>
<td><input type="text" size="1" name="group4"></td>
<td><input type="text" size="1" name="group5"></td>
<td><input type="text" size="1" name="group6"></td>
</tr><tr>
<td><input type="text" size="1" name="group1"></td>
<td><input type="text" size="1" name="group2"></td>
<td><input type="text" size="1" name="group3"></td>
<td><input type="text" size="1" name="group4"></td>
<td><input type="text" size="1" name="group5"></td>
<td><input type="text" size="1" name="group6"></td>
</tr><tr>
<td><input type="text" size="1" name="group1"></td>
<td><input type="text" size="1" name="group2"></td>
<td><input type="text" size="1" name="group3"></td>
<td><input type="text" size="1" name="group4"></td>
<td><input type="text" size="1" name="group5"></td>
<td><input type="text" size="1" name="group6"></td>
</tr></table>
<input id="but" type="button" value="check">
</div>
</body>
</html>