function validateContribute(amount, other, name, address, city, state, zip, phone, phonetype, donate, inof, nameGift, occasion, nameAck, addressAck, cityAck, stateAck, zipAck){
	var found_Amount;
	var found_Type;
	var found_Inof;
	var stripped = phone.value.replace(/[\(\)\.\-\ ]/g, '');
	for (var i=0; i<amount.length; i++)  { 
		if (amount[i].checked)  {
			found_Amount = amount[i].value //set found_it equal to checked button's value

		} 
	}
	for (var i=0; i<phonetype.length; i++)  { 
		if (phonetype[i].checked)  {
			found_Type = phonetype[i].value //set found_it equal to checked button's value

		} 
	}
	for (var i=0; i<inof.length; i++)  { 
		if (inof[i].checked)  {
			found_Inof = inof[i].value //set found_it equal to checked button's value

		} 
	}
	if (found_Amount =="" || found_Amount == null){
		alert("Please select an amount to donate.");
		return false;
	}
	else if (found_Amount=="Other" && (other.value=="" || other.value==null)){
		alert("Please specify an amount to donate.");
		return false;
	}
	else if (isNaN(other.value)){
		alert("Amount must be a number.");
		return false;
	}
	else if (name.value =="" || name.value == null){
		alert("Please enter your Name.");
		return false;
	}
	else if (address.value =="" || address.value == null){
		alert("Please enter your Address.");
		return false;
	}
	else if (city.value =="" || city.value == null){
		alert("Please enter your City.");
		return false;
	}
	else if (state.value =="" || state.value == null){
		alert("Please enter your State.");
		return false;
	}
	else if (zip.value =="" || zip.value == null){
		alert("Please enter your Zip Code.");
		return false;
	}
	else if (isNaN(zip.value)){
		alert("Please enter a valid Zip Code.");
		return false;
	}
	else if (!(zip.value.length == 5)){
		alert("Please enter a valid Zip Code.");
		return false;
	}
	else if (phone.value =="" || phone.value == null){
		alert("Please enter your Phone Number.");
		return false;
	}
	else if (isNaN(parseInt(stripped))){
        	alert("The phone number contains illegal characters.");
        	return false;
	}
	else if (!(stripped.length == 10)) {
        	alert("The phone number is the wrong length. Make sure you included an area code.");
        	return false;
	} 
	else if (found_Type =="" || found_Type == null){
		alert("Please select Phone Number Type.");
		return false;
	}
	else if (donate.checked){
		if (found_Inof =="" || found_Inof == null){
			alert("Please select how you wish to give your gift.");
			return false;
		}
		else if (nameGift.value =="" || nameGift.value == null){
			alert("Please enter who you wish to make your donation to.");
			return false;
		}
		else if (occasion.value =="" || occasion.value == null){
			alert("Please enter an occasion.");
			return false;
		}
		else if (nameAck.value =="" || nameAck.value == null){
			alert("Please enter the name of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (addressAck.value =="" || addressAck.value == null){
			alert("Please enter the address of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (cityAck.value =="" || cityAck.value == null){
			alert("Please enter the city of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (stateAck.value =="" || stateAck.value == null){
			alert("Please enter the state of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (zipAck.value =="" || zipAck.value == null){
			alert("Please enter the zip code of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (isNaN(zipAck.value)){
			alert("Please enter a valid Zip Code.");
			return false;
		}
		else if (!(zipAck.value.length == 5)){
			alert("Please enter a valid Zip Code.");
			return false;
		}
	}
	else {
		return true;
	}
}










function onlineValidate(name, address, city, zip, phone, email, inof, nameGift, occasion, nameAck, addressAck, cityAck, zipAck){
	var found_Inof;
	var stripped = phone.value.replace(/[\(\)\.\-\ ]/g, '');
	for (var i=0; i<inof.length; i++){ 
		if (inof[i].checked)  {
			found_Inof = inof[i].value //set found_it equal to checked button's value

		} 
	}
	if (name.value =="" || name.value == null){
		alert("Please enter your Name.");
		return false;
	}
	else if (address.value =="" || address.value == null){
		alert("Please enter your Address.");
		return false;
	}
	else if (city.value =="" || city.value == null){
		alert("Please enter your City.");
		return false;
	}
	else if (zip.value =="" || zip.value == null){
		alert("Please enter your Zip Code.");
		return false;
	}
	else if (isNaN(zip.value)){
		alert("Please enter a valid Zip Code.");
		return false;
	}
	else if (!(zip.value.length == 5)){
		alert("Please enter a valid Zip Code.");
		return false;
	}
	else if (phone.value =="" || phone.value == null){
		alert("Please enter your Phone Number.");
		return false;
	}
	else if (isNaN(parseInt(stripped))){
        	alert("The phone number contains illegal characters.");
        	return false;
	}
	else if (!(stripped.length == 10)) {
        	alert("The phone number is the wrong length. Make sure you included an area code.");
        	return false;
	} 
	else if (found_Inof =="" || found_Inof == null){
		alert("Please select how you wish to give your gift.");
		return false;
	}
	else if (found_Inof !="Personal"){
		if (nameGift.value =="" || nameGift.value == null){
			alert("Please enter who you wish to make your donation to.");
			return false;
		}
		else if (occasion.value =="" || occasion.value == null){
			alert("Please enter an occasion.");
			return false;
		}
		else if (nameAck.value =="" || nameAck.value == null){
			alert("Please enter the name of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (addressAck.value =="" || addressAck.value == null){
			alert("Please enter the address of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (cityAck.value =="" || cityAck.value == null){
			alert("Please enter the city of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (zipAck.value =="" || zipAck.value == null){
			alert("Please enter the zip code of who you would like the acknowledgement to be sent to.");
			return false;
		}
		else if (isNaN(zipAck.value)){
			alert("Please enter a valid Zip Code.");
			return false;
		}
		else if (!(zipAck.value.length == 5)){
			alert("Please enter a valid Zip Code.");
			return false;
		}
	}
	else {
		return true;
	}
}
