<!-- Hide from old browsers

function callPayPal(name, firm, phone, email, 
					  sponsor_op, total_guests, sponsor_cost,
					  free_tickets, ticket_price, 
					  guest1, guest2, guest3, guest4, guest5, guest6, guest7, guest8, 
					  sponsor_name, 
					  businessName, return_page) 
{
	alert ("You will now be sent to PayPal to complete your transaction. We request that you use PayPal to pay with your credit card. You DO NOT need a PayPal account for this transaction. If you do not have a PayPal account, simply click on CONTINUE on the PayPal screen. If you have difficulty with this process, please contact "+businessName+" directly.");

	if (total_guests <=0 ) {
		alert ("Please enter some guests and try again.");
		return false;
	}
	
	if (businessName == 'BNHBA') {
		business = 'admin@bnhba.com';
	} else {
		alert ("Business not identified");
		return false;
	}

	// set up the first item as the description
	description = sponsor_op;
	description += ' with '+free_tickets+" free tickets";
//	alert (description);

	paypalStr = "https://www.paypal.com/cgi-bin/webscr?&cmd=_cart&upload=1&business="+business+"&item_name_1="+description+"&amount_1=0";
	
	// options for the 
	on0_1 = "Contact Info";
	os0_1 = name+', '+firm+', '+phone+', '+email;
//	alert (on0_1);
//	alert (os0_1);
	
//	on1_1 = 'Local Assn';	
//	os1_1 = local;
//	alert (on1_1);
//	alert (os1_1);

	paypalStr += "&on0_1="+on0_1+"&os0_1="+os0_1;
//	alert (paypalStr);
//	paypalStr += "&on1_1="+on1_1+"&os1_1="+os1_1;

	// the first item is sponsor
	var itemNum = 2;
	if (sponsor_cost > 0) {
		paypalStr += "&item_name_"+itemNum+"="+sponsor_op+" Package for "+sponsor_name;
		paypalStr += "&quantity_"+itemNum+"=1";
		paypalStr += "&amount_"+itemNum+"="+sponsor_cost;
		itemNum++;
	}
	for (i=1; i<=8; i++) {
		var guestVar = 'guest' + i;
		var itemVar = 'item_name_' + itemNum;
		var amountVar = 'amount_' + itemNum;

		if (eval(guestVar) != "") {
			if (i <= free_tickets) {
				amountVar=0;
			} else {
				amountVar=ticket_price;
			}
//			alert (eval(amountVar));
			paypalStr += "&item_name_"+itemNum+"="+eval(guestVar);
			paypalStr += "&amount_"+itemNum+"="+eval(amountVar);
			itemNum++;
		}
	}
	paypalStr += "&no_shipping=1&tax_cart=0&currency_code=USD&lc=US&return=http://www.bnhba.com/Advertising/"+return_page;
//	alert ("after loop: "+paypalStr);

document.reg_form.action=paypalStr;
document.reg_form.submit();

	return true;
}

function viewPayPalCart (businessName) {
	if (businessName == 'BNHBA') {
		business = 'admin@bnhba.com';
	} else {
		alert ("Business not identified");
		return false;
	}
    window.open("https://www.paypal.com/cgi-bin/webscr?add=1&cmd=_cart&business="+business+"&display=1");
	
	return true;
}
// -->