function validate(thisForm)
{
 var test=false;
   if (! validateEmail(document.calendar.ConsumerEmail.value)) 
 { 
    alert ('Please enter a valid email address.'); 
    document.calendar.ConsumerEmail.focus(); 
    document.calendar.ConsumerEmail.select(); 
    return test; 
 }
 
 if   (document.calendar.ConsumerEmail.value == "")
 { 
    alert ('Please enter a valid email address.'); 
    document.calendar.ConsumerEmail.focus(); 
    return test; 
 }
 if (document.calendar.FirstName.value == ""  || document.calendar.LastName.value == "")
 { 
    alert ('Please enter your First and Last Name.'); 
    if (document.calendar.FirstName.value == "") {
        document.calendar.FirstName.focus(); 
    } else {
        document.calendar.LastName.focus(); 
    }
    
    return test; 
 }
 

 if (document.calendar.AppointmentDate.value == "")
 { 
    alert ('Please enter the date for your Appointment.'); 
    document.calendar.AppointmentDate.focus(); 
    return test; 
 }
if (document.calendar.Reason.value == "")
 { 
    alert ('Please enter the Reason for your Appointment.'); 
    document.calendar.Reason.focus(); 
    return test; 
 }
else
 test = true;
 return test;
}