1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script language="javascript">
function formOK(){
if(document.myfom.totalmonday.value>1){
alert('The workload for monday is too high ');
return false;
}
if(document.myfom.totaltuesday.value>1){
alert('The workload for tuesday is too high ');
return false;
}
if(document.myfom.totalwednesday.value>1){
alert('The workload for wednesday is too high ');
return false;
}
if(document.myfom.totalthursday.value>1){
alert('The workload for thursday is too high ');
return false;
}
if(document.myfom.totalfriday.value>1){
alert('The workload for friday is too high ');
return false;
}
return true;
}
</script> |