 function SubmitPage()
 {
     //--- If the required fields are entered...
     if (Validate())
     {
         //--- Submit the page
         document.frmInfo.txtAction.value = "Submit";
         document.frmInfo.submit();
     }
 }
  
function Validate()
 {     
      //--- Make sure Check-in Month was selected
     if(document.frmInfo.checkin_month.value.length == 00){
         document.frmInfo.checkin_month.focus();
         alert("Please select the MONTH you would like to Check-in.");
         return false;
     }

      //--- Make sure Check-in Day was selected
     if(document.frmInfo.checkin_day.value.length == 00){
         document.frmInfo.checkin_day.focus();
         alert("Please select the DAY you would like to Check-in.");
         return false;
     }
     //--- Make sure Check-in Year  was selected
     if(document.frmInfo.checkin_year.value.length == 00){
         document.frmInfo.checkin_year.focus();
         alert("Please select the YEAR you would like to Check-in.");
         return false;
     }
           //--- Make sure Check-out Month was selected
     if(document.frmInfo.checkout_month.value.length == 00){
         document.frmInfo.checkout_month.focus();
         alert("Please select the MONTH you would like to Check-out.");
         return false;
     }
           //--- Make sure Check-out Day was selected
     if(document.frmInfo.checkout_day.value.length == 00){
         document.frmInfo.checkout_day.focus();
         alert("Please select the DAY you would like to Check-out.");
         return false;
     }

           //--- Make sure Check-out Year was selected
     if(document.frmInfo.checkout_year.value.length == 00){
         document.frmInfo.checkout_year.focus();
         alert("Please select the YEAR you would like to Check-out.");
         return false;
     }
    
      //--- Make sure Name was entered
     if(document.frmInfo.txtName.value.length == 0){
         document.frmInfo.txtName.focus();
         document.frmInfo.txtName.select();
         alert("Please enter your Name to continue.");
         return false;
     }

      //--- Make sure City was entered
     if(document.frmInfo.txtCity.value.length == 0){
         document.frmInfo.txtCity.focus();
         document.frmInfo.txtCity.select();
         alert("Please enter your City to continue.");
         return false;
     }
     
           //--- Make sure State was entered
     if(document.frmInfo.txtState.value.length == 0){
         document.frmInfo.txtState.focus();
         document.frmInfo.txtState.select();
         alert("Please enter your State to continue.");
         return false;
     }
     
           //--- Make sure either Email or Phone  was entered
     if(document.frmInfo.txtEmail.value.length == 0 && document.frmInfo.txtPhone.value.length == 0){
         document.frmInfo.txtEmail.focus();
         document.frmInfo.txtEmail.select();
         alert("Please provide some way for us to contact you, either Email or Phone.");
         return false;
     }
      //--- Make sure HowFound was selected
     if(document.frmInfo.txtHowFound.value.length == 00){
         document.frmInfo.txtHowFound.focus();
         alert("Please tell us how you found Winchester Lodge.");
         return false;
     }

      //--- Make sure HowFound2 was selected
     if(document.frmInfo.txtHowFound2.value.length == 00){
         document.frmInfo.txtHowFound2.focus();
         document.frmInfo.txtHowFound2.select();
         alert("Please provide more detail on where you learned about us.");
         return false;
     }
       
     return true;
 }
 