﻿
function checkDonationForm() {
	
	var f = document.forms[0];
	
	//Check form for required fields
	var bOk = false;
	f.first_name.fieldlabel="First Name";
	f.last_name.fieldlabel="Last Name";
	f.os0.fieldlabel = "Help By";
	f.os0.optional = true;
	f.amount.fieldlabel = "Amount";
	f.amount.min = 1.00;
	f.amount.max = 10000.00;
	f.os1.fieldlabel="Employer/Occupation";
	bOk = verifyForm(f);
	
	//Create string of checkboxes to pass to paypal
	var s = "";
	if (f.cb1.checked) { s += " Signatures,"; }
	if (f.cb2.checked) { s += " Walking,"; }
	if (f.cb3.checked) { s += " Meeting,"; }
	if (f.cb4.checked) { s += " Yard Sign,"; }

	f.os0.value = s;
	
	return bOk;
}


