
function confirmDelete(id) {
	var decision = confirm("Are you SURE you want to completely delete this form/application record?");
	if (decision == true) { document.location="delete_rec.php?id="+id; }
	else { document.location="index.php"; }
}


/* Turn off form-field validation functionality, as per Rocky's request, 20070909 - by BDE
function validateForm(form) {  
   if (!form.FirstName.value)
   { 
   alert("You must enter your first name.");
   return false;
   }

   if (!form.LastName.value)
   { 
   alert("You must enter your last name.");
   return false;
   }   

   if (!form.Age.value)
   { 
   alert("You must enter your age.");
   return false;
   } 
         
   if (form.Gender.selectedIndex=="") {
   alert("You must indicate your gender in the drop-down list.");
   return false;
   }
   
   if (!form.WeightinPounds.value)
   { 
   alert("You must enter your weight in pounds.");
   return false;
   }

   if (!form.StreetAddress.value)
   { 
   alert("You must enter your street address.");
   return false;
   }
   
   if (!form.City.value)
   { 
   alert("You must enter your city.");
   return false;
   }
   
   if (!form.StateorProvince.value)
   { 
   alert("You must enter your state or province.");
   return false;
   }

   if (!form.ZiporPostalCode.value)
   { 
   alert("You must enter your zip or postal code.");
   return false;
   }
   
   if (!form.Country.value)
   { 
   alert("You must enter your country.");
   return false;
   }
   
   if (!form.PrimaryPhone.value)
   { 
   alert("You must enter your primary phone.");
   return false;
   }
   
   if (!form.EmailAddress.value)
   { 
   alert("You must enter your email address.");
   return false;
   }

   if (!form.EmergencyContactFullName.value)
   { 
   alert("You must enter your emergency contact's full name.");
   return false;
   }

   if (!form.EmergencyContactPrimaryPhone.value)
   { 
   alert("You must enter your emergency contact's primary phone.");
   return false;
   }  

   if (!form.ReasonforWantingIbogaineTherapy.value)
   { 
   alert("You must enter your reason for wanting Ibogaine therapy.");
   return false;
   }
	      
	if ((form.DoYouHaveAnyAllergies[0].checked==false) && (form.DoYouHaveAnyAllergies[1].checked==false)) {
		alert ( "Please indicate whether you have any allergies or not." );
   return false;
	}
	
	if ((form.DoYouHaveAnySpecificDietaryNeeds[0].checked==false) && (form.DoYouHaveAnySpecificDietaryNeeds[1].checked==false)) {
		alert ( "You must indicate if you have any specific dietary needs." );
   return false;
	}

	if ((form.DoYouHaveExperienceWithPsychedelicsOrVisionaryPlantMedicines[0].checked==false) && (form.DoYouHaveExperienceWithPsychedelicsOrVisionaryPlantMedicines[1].checked==false)) {
		alert ( "You must indicate whether you have experience with psychedelics or visionary plant medicines." );
   return false;
	}
	
	if ((form.DoYouHaveAPassport[0].checked==false) && (form.DoYouHaveAPassport[1].checked==false)) {
		alert ( "You must indicate whether you have a passport." );
   return false;
	}
	
	if ((form.AnyPendingLegalIssues[0].checked==false) && (form.AnyPendingLegalIssues[1].checked==false)) {
		alert ( "You must indicate if you have any pending legal issues." );
   return false;
	}
	
	if ((form.DoYouSmoke[0].checked==false) && (form.DoYouSmoke[1].checked==false)) {
		alert ( "You must indicate whether you smoke." );
   return false;
	}
	
	if ((form.DoYouDrinkAlcohol[0].checked==false) && (form.DoYouDrinkAlcohol[1].checked==false)) {
		alert ( "You must indicate whether you drink alcohol." );
   return false;
	}
	
	if ((form.AreYouCurrentlyUsingAnyOtherSubstances[0].checked==false) && (form.AreYouCurrentlyUsingAnyOtherSubstances[1].checked==false)) {
		alert ( "You must indicate whether you are currently using any other substances." );
   return false;
	}

	if (!form.ListMedicationsYouAreTakingAndDailyDosage.value)
	{ 
	alert("If you are taking any medication, you must indicate what kind of medication(s) and the daily dosage you take.");
	return false;
	}
   	
	if ((form.AreYouSufferingFromAnyEmotionalOrMentalConditions[0].checked==false) && (form.AreYouSufferingFromAnyEmotionalOrMentalConditions[1].checked==false)) {
		alert ( "You must indicate whether you are suffering from any emotional or mental conditions." );
   return false;
	}
	
	if ((form.DoYouHaveAnyPhysicalConditions[0].checked==false) && (form.DoYouHaveAnyPhysicalConditions[1].checked==false)) {
		alert ( "You must indicate whether you are suffering from any physical conditions." );
   return false;
	}
	
	if ((form.WaiverToUseInfoProvidedForFurtheringIbogaineKnowledge[0].checked==false) && (form.WaiverToUseInfoProvidedForFurtheringIbogaineKnowledge[1].checked==false)) {
		alert ( "INFORMATION USAGE & PRIVACY POLICY ACCEPTANCE OR REJECTION REQUIRED:\nYou must indicate whether you agree to allow the information that you are providing in this form to be used to further the general knowledge of Ibogaine as a therapy/treatment." );
   return false;
	}
	
   return true;
}
*/