 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 Email Address was entered
     if(document.frmInfo.txtEmail.value.length == 0){
         document.frmInfo.txtEmail.focus();
         document.frmInfo.txtEmail.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("It would help us to know where you are from.");
         return false;
     }
     
     //--- Make sure the Message was entered
     if(document.frmInfo.txtComments.value.length == 0){
         document.frmInfo.txtComments.focus();
         document.frmInfo.txtComments.select();
         alert("Did you forget to type your message?");
         return false;
     }
     
     return true;
 }
 
 function StartUp()
 {
     //--- Set the focus to the Email textbox
     document.frmInfo.txtEmail.focus();
 }
 
