function verify(f)
{
var msg = '';;
var errors = '';
RegExp.multiline = true;
var notblank = /\S+/;
var numbers = /[\d]+/;
var checked = false;

if (f.Title.value.search(notblank) == -1)
   errors += "Please enter a title for the ride.\n";

if (f.Time.value.search(notblank) == -1)
   errors += "Please enter the time the ride will meet.\n";

if (f.Month.value.length == 0)
   errors += "Please select the month for the ride fromthe drop down menu.\n";

if (f.Day.value.length == 0)
   errors += "Please select the day for the ride from the drop down menu.\n";

if (f.Distance.value.search(numbers) == -1)
   errors += "Please enter a distance for the ride.\n";
else
   {
   var v = parseFloat(f.Distance.value);
   if (isNaN(v) || v < 1)
     {
     errors += "The ride distance must be a number";
     if (v < 1)
       errors += " that is more than 0"
     errors += ".\n"
     }
   }

if (f.Terrain.value.length == 0)
   errors += "Please select the ride terrain from the drop down menu.\n";

if (f.Category.value.length == 0)
   errors += "Please select the ride category from the drop down menu.\n";

if (f.RideDetails.value.search(notblank) == -1)
   errors += "Please enter the detailed description of the ride.\n";
	
if (f.StdPlaces.value.length == 0 && f.MeetingPlace.value.search(notblank) == -1)
   {
   errors += "Please enter a ride meeting place.\n";
	}
else
if (f.StdPlaces.value.length > 0 && f.MeetingPlace.value.search(notblank) > -1)
   {
   errors += "You have chosen both a standard and a non-standard meeting location.\n";
   errors += "   Please choose one or the other.\n";
	}
else	
if (f.MeetingPlace.value.search(notblank) > -1 && f.Directions.value.search(notblank) == -1)
   {
	errors += "Please enter directions to the meeting place.\n";
	}
	
if (f.CondTemp.value.search(numbers) == -1)
   {
   var v = parseFloat(f.CondTemp.value);
   if (isNaN(v) || v < 1)
     {
     errors += "The minimum ride temperature must be a number.\n";
     }
   }

if (f.Leader1.value.search(notblank) == -1)
   {
	errors += "Please enter the ride leader's name.\n";
	}
	
if (f.Leader1Phone.value.search(notblank) == -1)
   {
	errors += "Please enter the ride leader's telephone number.\n";
	}
if (!errors) return true;

msg  = "___________________________________________________________\n\n";
msg += "We could not submit your ride due to the following error(s).\n";
msg += "Please correct the error(s) and try again.\n";
msg += "___________________________________________________________\n\n";

msg += errors;
alert(msg);
return false;
}
