function valForm()
    {
      myOption = -1;
       for (i=document.undgform.entering_session.length-1; i > -1; i--) { 
       if (document.undgform.entering_session[i].checked) {
        myOption = i; i = -1;
         }
        }
       if (myOption == -1) {
       alert("You must select Entering Session");
       return false;
       }
        
    if(!valid_required(document.undgform.firstname.value))
        {
    alert("First name is required field!")
        document.undgform.firstname.focus();
         document.undgform.firstname.select();
        return false;
        }
         if(!valid_required(document.undgform.lastname.value))
        {
    alert("Last name is required field!")
        document.undgform.lastname.focus();
         document.undgform.lastname.select();
        return false;
        }
        //call ValidDate function to validate date field value 
        if(!ValidDate(document.undgform.date_of_birth.value))
         {
         document.undgform.date_of_birth.focus();
         document.undgform.date_of_birth.select();
        return false;
         }
       myOption1 = -1;
       for (i=document.undgform.gender.length-1; i > -1; i--) { 
       if (document.undgform.gender[i].checked) {
        myOption1 = i; i = -1;
         }
        }
       if (myOption1 == -1) {
       alert("Please select your Gender");
       return false;
       }

         //call ValidEmail function to validate email field value 
        if(!EmailValid(document.undgform.email.value))
         {
          document.undgform.email.focus();
         document.undgform.email.select();
        return false;
         }
         if(!valid_required(document.undgform.address.value))
        {
    alert("Street Address is required field!")
         document.undgform.address.focus();
         document.undgform.address.select();
        return false;
        }
        if(!valid_required(document.undgform.city.value))
        {
     alert("City is required field!")
         document.undgform.city.focus();
         document.undgform.city.select();
        return false;
        }
       if(!valid_required(document.undgform.zip.value))
        {
     alert("Zip code is required field!")
         document.undgform.zip.focus();
         document.undgform.zip.select();
        return false;
         } 

       hisOption = -1;
       for (i=document.undgform.us_citizen.length-1; i > -1; i--) { 
       if (document.undgform.us_citizen[i].checked) {
        hisOption = i; i = -1;
         }
        }
       if (hisOption == -1) {
       alert("Please select US Citizen or not US Citizen button");
       return false;
       }            
        
      if(!valid_required(document.undgform.home_phone.value))
        {
       alert("Home Phone is required field!")
        document.undgform.home_phone.focus();
         document.undgform.home_phone.select();
        return false;
        }
 
        //call ValidCEEB function to validate CEEB value
         if(!ValidCEEB(document.undgform.highschool.value))
         {
         document.undgform.highschool.focus();
         document.undgform.highschool.select();
         return false;
         }  
         //call ValidDYearHS function to validate Graduation Year
       if(!ValidYearHS(document.undgform.graduation_year.value))
        {
        document.undgform.graduation_year.focus();
        document.undgform.graduation_year.select();
        return false;
        }
       
          
      my1Option = -1;
       for (i=document.undgform.transfer_student.length-1; i > -1; i--) { 
       if (document.undgform.transfer_student[i].checked) {
        my1Option = i; i = -1;
         }
        }
       if (my1Option == -1) {
       alert("You must indicate if you are a Transfer Student");
       return false;
       }


       herOption = -1;
       for (i=document.undgform.ethnicity.length-1; i > -1; i--) { 
       if (document.undgform.ethnicity[i].checked) {
        herOption = i; i = -1;
         }
        }
       if (herOption == -1) {
       alert("Please select Ethnicity");
       return false;
       }     


    return true;
}
