Expand|Select|Wrap|Line Numbers
- function checkUnitFields(x){
- var num=x; // item number
- var firstBlankField=null; // variable to be used to move focus to first field that needs attention
- var secondBlankField=null; // variable to be used to move focus to second field that needs attention
- var thirdBlankField=null; // variable to be used to move focus to third field that needs attention
- var fourthBlankField=null; // variable to be used to move focus to fourth field that need attention
- var fifthBlankField=null; // variable to be used to move focus to fifth field that needs attendtion
- if(isEmpty(document.getElementById('modelYear'+num).value)==true){
- document.getElementById('modelYear'+num).style.border="1px solid #FF0000";
- if(firstBlankField==null){
- firstBlankField="modelYear";
- }
- }
- if(isEmpty(firstBlankField)!=true){
- document.getElementById(firstBlankField).focus();
- }