<tr>
<td></td>
<td><input type="text" name="monHrs13" size="6" maxlength="6" oldvalue="0"
onblur="if (!(isANumber(this.value, 1))) {this.focus();}"
onchange="this.form.totHrs13.value=computeTotal( this, hidTot13 )"></td>
<td><input type="text" name="tueHrs13" size="6" maxlength="6" oldvalue="0"
onblur="if (!(isANumber(this.value, 1))) {this.focus();}"
onchange="this.form.totHrs13.value=computeTotal( this, hidTot13 )"></td>
<td><input type="text" name="wedHrs13" size="6" maxlength="6" oldvalue="0"
onblur="if (!(isANumber(this.value, 1))) {this.focus();}"
onchange="this.form.totHrs13.value=computeTotal( this, hidTot13 )"></td>
<td><input type="text" name="thuHrs13" size="6" maxlength="6" oldvalue="0"
onblur="if (!(isANumber(this.value, 1))) {this.focus();}"
onchange="this.form.totHrs13.value=computeTotal( this, hidTot13 )"></td>
<td><input type="text" name="friHrs13" size="6" maxlength="6" oldvalue="0"
onblur="if (!(isANumber(this.value, 1))) {this.focus();}"
onchange="this.form.totHrs13.value=computeTotal( this, hidTot13 )"></td>
<td><input type="text" name="satHrs13" size="6" maxlength="6" oldvalue="0"
onblur="if (!(isANumber(this.value, 1))) {this.focus();}"
onchange="this.form.totHrs13.value=computeTotal( this, hidTot13 )"></td>
<td><input type="text" name="sunHrs13" size="6" maxlength="6" oldvalue="0"
onblur="if (!(isANumber(this.value, 1))) {this.focus();}"
onchange="this.form.totHrs13.value=computeTotal( this, hidTot13 )"></td>
<td><input type="text" name="totHrs13" size="10" maxlength="10" value="0"
readonly ><input type="hidden" name="hidTot13" value=0></td>
<td><input type="text" name=Sick value="00534 | Sick/Personal" size=20 readonly ></td>
</tr>
<tr>
<td><input type="text" name="totHrs14" size="10" maxlength="10" value="0"
readonly ><input type="hidden" name="hidTot14" value=0> </td>
<td><input type=button name=calcTot value="Calculate Total" onclick="this.form.totHrs14.value=TotalForm( this, hidTot14 )" >
</tr>
<script type="text/javascript">
function isANumber(number, alrt) {
answer = 1;
period = 0;
//the first digit was numeric, so check the rest
for (var i=0; i<number.length; i++ ){
curChar = number.charAt(i);
if( curChar == "." ){
if( period == 1 ){
answer = 0;
if( alrt == 1 ){
alert("Please enter a numeric value\n"
+ "in the form of: <number>.<number>" );
}
break;
}
period = 1;
}
else if (( curChar != "0"

&& (!parseFloat(curChar)) ) {
answer = 0;
if( alrt == 1 ){
alert("Please enter a numeric value\n"
+ "in the form of: <number>.<number>" );
}
break;
}
}
return answer;
}
function computeTotal( field, hidTot ){
with( field.form ){
hidTot.value = eval( hidTot.value ) - eval( field.oldvalue );
if( field.value == "" ){
field.oldvalue = 0;
}
else if( isANumber( field.value, 0 ) != 1 ){
field.oldvalue = 0;
}
else{
field.oldvalue = eval( field.value );
hidTot.value = eval( hidTot.value ) + eval( field.value );
}
return( hidTot.value );
}
}
function TotalForm( field, hidTot){
hidTot.value = eval( field.form.totHrs01.value ) + eval( field.form.totHrs02.value ) + eval(
field.form.totHrs03.value ) + eval( field.form.totHrs04.value )
+ eval( field.form.totHrs05.value ) + eval( field.form.totHrs06.value ) + eval(
field.form.totHrs07.value ) +
eval( field.form.totHrs08.value ) + eval( field.form.totHrs09.value ) + eval(
field.form.totHrs10.value ) +
eval( field.form.totHrs11.value ) + eval( field.form.totHrs12.value ) + eval(
field.form.totHrs13.value );
return( hidTot.value );
}
</script>
This is the basic structure of my code. there are multiple rows formatted the same way as the above one.. the functions are fairly simple but basically each row gets its total calculated automatically and the column only gets totaled when you click hte button. i tried a call to the function that does the column total inside the row total function and it almost worked but it screwed with some things so i cant have that. if anyone can give me a simple solution. please do so. thanks