 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 the Name was entered
     if(document.frmInfo.txtName.value.length == 0){
         document.frmInfo.txtName.focus();
         document.frmInfo.txtName.select();
         alert("Please enter a valid Email address so we can reply.");
         return false;
     }
     
     //--- Make sure the From was entered
     if(document.frmInfo.txtFrom.value.length == 0){
         document.frmInfo.txtFrom.focus();
         document.frmInfo.txtFrom.select();
         alert("Please tell us where you are visiting from.");
         return false;
     }
     
     //--- Make sure the Email Address was entered
     if(document.frmInfo.txtEmail.value.length == 0){
         document.frmInfo.txtEmail.focus();
         document.frmInfo.txtEmail.select();
         alert("Please enter an email address in case we need to contact you - we will NOT share this contact information with anyone.");
         return false;
     }
     
     //--- Make sure the Message was entered
     if(document.frmInfo.txtComments.value.length == 0){
         document.frmInfo.txtComments.focus();
         document.frmInfo.txtComments.select();
         alert("Please tell us how your stay was at Winchester Lodge.");
         return false;
     }
     return true;
 }
 
 function StartUp()
 {
     //--- Set the focus to the Email textbox
     document.frmInfo.txtName.focus();
 }
