function checkFields(eForm) {

	// *** Check rescue type ***
	var repOption = -1;
	for (i=0; i<eForm.RescueType.length; i++) {
		if (eForm.RescueType[i].checked) {
			repOption = i;
			var rescueType = eForm.RescueType[i].value;
		}
	}
	if (repOption == -1) {
		alert("Please select a Report Option at the top");
		return false;
	}

	var str = eForm.RepFirstName.value;
	if (str.indexOf("<script")>=0 || str.indexOf("Visitor")>=0)
		return false;

	// *** Check First Name ***
	if (str == "") {
		alert("Please enter your First Name");
		return false;
	}
  
	if (rescueType=="Surrender") {
		// *** Check Last Name ***
		if (eForm.RepLastName.value == "") {
			alert("Please enter your Last Name");
			return false;
		}
		// *** Check Address Fields ***
		if (eForm.RepHomePhone.value == "" && eForm.RepWorkPhone.value == "" && eForm.RepCellPhone.value == "") {
			alert("Please enter a Contact Phone Number");
			return false;
		}
		if (eForm.LocationAddress.value == "" || eForm.LocationCity.value == "" || eForm.LocationState.value == "" || eForm.LocationZip.value == "" ) {
			alert("Please enter your complete Location Address");
			return false;
		}
	
	}

	// *** Check E-mail ***
	var emailStr = eForm.RepEmail.value;
	if (emailStr == "") {
		alert("Please enter your E-mail Address");
		return false;
	}
	var emailReg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
	var emailReg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,6}|[0-9]{1,3})(\]?)$/; // valid
	if (!(!emailReg1.test(emailStr) && emailReg2.test(emailStr))) { // if syntax is valid
		alert("Your E-mail Address has an invalid format\n\nIt should look something like: YourName@domain.net");
		return false;
	}

	if (eForm.LocationName.value == "") {
		alert("Please enter the Location");
		return false;
	}
	
  var TodaysDate = new Date();
  var ThisYear = TodaysDate.getYear();
  var nmonth=TodaysDate.getMonth() + 1;
  var nday=TodaysDate.getDate();

  if (ThisYear < 1900) { ThisYear = ThisYear + 1900; }

  if (nmonth<10)
   nmonth="0"+nmonth;

  if (nday<10)
   nday="0"+nday;

  eForm.SubmitDate.value = nmonth+"/"+nday+"/"+ThisYear;

  return true;
}