<!-- Hide from old browsers
function handleEnter (field, event) {
	var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
	if (keyCode == 13) {
		var i;
		for (i = 0; i < field.form.elements.length; i++)
			if (field == field.form.elements[i])
				break;
		i = (i + 1) % field.form.elements.length;
		field.form.elements[i].focus();
		return false;
	} 
	else
	return true;
}      

function validateIntegerNN( n ){
return /^\d+$/.test(n);
}
function isPrice(str) { 
isprice = /^\d+\.\d{2}$/; 
return isprice.test( str ); 
} 
function isMulti(str) { 
isprice = /^\d+\.\d{3}$/; 
return isprice.test( str ); 
} 
function isNotEmpty(elem)
{
	var str = elem.value;
	if(str == null || str.length == 0) {
		alert("Please fill in the required field");
		return false;
	} else {
		return true;
	}
} // end isNotEmpty

function focusElement(formName, elemName)
{	
	var elem = document.forms[formName].elements[elemName];
	elem.focus();
	elem.select();
} // end focusElement

function validatePosInt(elem)
{
	if (!validateIntegerNN(elem.value)) {
		alert ("Please enter a value of 0 or more.");
		setTimeout("focusElement('" + elem.form.name + "', '" + elem.name + "')",0);
		return false;
	}
	return true;
}
function validatePrice(elem)
{
	if (!isPrice(elem.value)) {
		alert ("Please enter dollars and cents");
		setTimeout("focusElement('" + elem.form.name + "', '" + elem.name + "')",0);
		return false;
	}
	return true;
}
function validateMulti(elem)
{
	if (!isMulti(elem.value)) {
		alert ("Please enter a number in the form of 0.105 (with the leading 0.)");
		setTimeout("focusElement('" + elem.form.name + "', '" + elem.name + "')",0);
		return false;
	}
	return true;
}


function callPayPal(name, firm, phone, email, date_venue, total_guests, guest1, meal1, guest2, meal2, guest3, meal3, guest4, meal4, guest5, meal5, guest6, meal6, guest7, meal7, guest8, meal8, meal_cost, businessName) 
{
	
	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.");

	item_name_1 = date_venue;
//	alert (item_name_1);
	amount_1 = "0.00";
//	alert (amount_1);

	on0_1 = "Contact Info";
	os0_1 = name+', '+firm+', '+phone+', '+email

	
	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;
	}
//	alert (business);

	paypalStr = "https://www.paypal.com/cgi-bin/webscr?&cmd=_cart&upload=1&business="+business+"&item_name_1="+item_name_1+"&amount_1="+amount_1+"&quantity_1="+total_guests;
	if (guest1 != "") { item_name_2 = guest1+", "+meal1; paypalStr += "&item_name_2="+item_name_2+"&amount_2="+meal_cost; }
	if (guest2 != "") { item_name_3 = guest2+", "+meal2; paypalStr += "&item_name_3="+item_name_3+"&amount_3="+meal_cost; }
	if (guest3 != "") { item_name_4 = guest3+", "+meal3; paypalStr += "&item_name_4="+item_name_4+"&amount_4="+meal_cost; }
	if (guest4 != "") { item_name_5 = guest4+", "+meal4; paypalStr += "&item_name_5="+item_name_5+"&amount_5="+meal_cost; }
	if (guest5 != "") { item_name_6 = guest5+", "+meal5; paypalStr += "&item_name_6="+item_name_6+"&amount_6="+meal_cost; }
	if (guest6 != "") { item_name_7 = guest6+", "+meal6; paypalStr += "&item_name_7="+item_name_7+"&amount_7="+meal_cost; }
	if (guest7 != "") { item_name_8 = guest7+", "+meal7; paypalStr += "&item_name_8="+item_name_8+"&amount_8="+meal_cost; }
	if (guest8 != "") { item_name_9 = guest8+", "+meal8; paypalStr += "&item_name_9="+item_name_9+"&amount_9="+meal_cost; }
	
	paypalStr += "&on0_1="+on0_1+"&os0_1="+os0_1+"&no_shipping=1&tax_cart=0&currency_code=USD&lc=US&return=http://www.bnhba.com/Activities/gen_meeting_thanks.htm";
//	alert (paypalStr);

//	window.open(paypalStr);
document.reg_form.action=paypalStr;
document.reg_form.submit();
	return true;
}
function callPayPal2(name, firm, phone, email, date_venue, total_guests, guest1, meal1, guest2, meal2, guest3, meal3, guest4, meal4, guest5, meal5, guest6, meal6, guest7, meal7, guest8, meal8, tables, tables_cost, meal_cost, businessName) 
{
	var total_items = 0.0;
	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.");

	item_name_1 = date_venue;
//	alert (item_name_1);
	amount_1 = "0.00";
//	alert (amount_1);

	on0_1 = "Contact Info";
	os0_1 = name+', '+firm+', '+phone+', '+email

total_items = 1;
//	total_items = (1*total_guests)+(1*tables);
	if (total_items <=0) {
		alert ("Please enter some guests and/or purchase a table and try again.");
		return false;
	} 

	if (businessName == 'BNHBA') {
		business = 'admin@bnhba.com';
	} else {
		alert ("Business not identified");
		return false;
	}
//	alert (business);

	paypalStr = "https://www.paypal.com/cgi-bin/webscr?&cmd=_cart&upload=1&business="+business+"&item_name_1="+item_name_1+"&amount_1="+amount_1+"&quantity_1="+total_items;
	if (tables > 0) {
		item_name_2 = "Reserve "+tables+" tables of 8 guests"; paypalStr += "&item_name_2="+item_name_2+"&quantity_2="+tables+"&amount_2="+tables_cost;

		if (guest1 != "") { item_name_3 = guest1+", "+meal1; paypalStr += "&item_name_3="+item_name_3+"&amount_3="+meal_cost; }
		if (guest2 != "") { item_name_4 = guest2+", "+meal2; paypalStr += "&item_name_4="+item_name_4+"&amount_4="+meal_cost; }
		if (guest3 != "") { item_name_5 = guest3+", "+meal3; paypalStr += "&item_name_5="+item_name_5+"&amount_5="+meal_cost; }
		if (guest4 != "") { item_name_6 = guest4+", "+meal4; paypalStr += "&item_name_6="+item_name_6+"&amount_6="+meal_cost; }
		if (guest5 != "") { item_name_7 = guest5+", "+meal5; paypalStr += "&item_name_7="+item_name_7+"&amount_7="+meal_cost; }
		if (guest6 != "") { item_name_8 = guest6+", "+meal6; paypalStr += "&item_name_8="+item_name_8+"&amount_8="+meal_cost; }
		if (guest7 != "") { item_name_9 = guest7+", "+meal7; paypalStr += "&item_name_9="+item_name_9+"&amount_9="+meal_cost; }
		if (guest8 != "") { item_name_10 = guest8+", "+meal8; paypalStr += "&item_name_10="+item_name_10+"&amount_10="+meal_cost; }
	} else {
		if (guest1 != "") { item_name_2 = guest1+", "+meal1; paypalStr += "&item_name_2="+item_name_2+"&amount_2="+meal_cost; }
		if (guest2 != "") { item_name_3 = guest2+", "+meal2; paypalStr += "&item_name_3="+item_name_3+"&amount_3="+meal_cost; }
		if (guest3 != "") { item_name_4 = guest3+", "+meal3; paypalStr += "&item_name_4="+item_name_4+"&amount_4="+meal_cost; }
		if (guest4 != "") { item_name_5 = guest4+", "+meal4; paypalStr += "&item_name_5="+item_name_5+"&amount_5="+meal_cost; }
		if (guest5 != "") { item_name_6 = guest5+", "+meal5; paypalStr += "&item_name_6="+item_name_6+"&amount_6="+meal_cost; }
		if (guest6 != "") { item_name_7 = guest6+", "+meal6; paypalStr += "&item_name_7="+item_name_7+"&amount_7="+meal_cost; }
		if (guest7 != "") { item_name_8 = guest7+", "+meal7; paypalStr += "&item_name_8="+item_name_8+"&amount_8="+meal_cost; }
		if (guest8 != "") { item_name_9 = guest8+", "+meal8; paypalStr += "&item_name_9="+item_name_9+"&amount_9="+meal_cost; }
	}

	
	paypalStr += "&on0_1="+on0_1+"&os0_1="+os0_1+"&no_shipping=1&tax_cart=0&currency_code=USD&lc=US&return=http://www.bnhba.com/Activities/gen_meeting_thanks.htm";
//	alert (paypalStr);

//	window.open(paypalStr);
document.reg_form.action=paypalStr;
document.reg_form.submit();
	return true;
}
function callPayPal3(name, firm, phone, email, date_venue, total_guests, guest1, meal1, guest2, meal2, guest3, meal3, guest4, meal4, guest5, meal5, guest6, meal6, guest7, meal7, guest8, meal8, tables, table_cost, meal_cost, businessName) 
{
	var total_items = 0.0;
	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.");

	item_name_1 = date_venue;
//	alert (item_name_1);
	amount_1 = "0.00";
//	alert (amount_1);

	on0_1 = "Contact Info";
	os0_1 = name+', '+firm+', '+phone+', '+email

	total_items = 1;

	if (businessName == 'BNHBA') {
		business = 'admin@bnhba.com';
	} else {
		alert ("Business not identified");
		return false;
	}
//	alert (business);

	paypalStr = "https://www.paypal.com/cgi-bin/webscr?&cmd=_cart&upload=1&business="+business+"&item_name_1="+item_name_1+"&amount_1="+amount_1+"&quantity_1="+total_items;
	if (tables > 0) {
		item_name_2 = "Reserve "+tables+" tables of 8 guests"; paypalStr += "&item_name_2="+item_name_2+"&quantity_2="+tables+"&amount_2="+table_cost;

		if (guest1 != "") { item_name_3 = guest1+", "+meal1; paypalStr += "&item_name_3="+item_name_3+"&amount_3="+meal_cost; }
		if (guest2 != "") { item_name_4 = guest2+", "+meal2; paypalStr += "&item_name_4="+item_name_4+"&amount_4="+meal_cost; }
		if (guest3 != "") { item_name_5 = guest3+", "+meal3; paypalStr += "&item_name_5="+item_name_5+"&amount_5="+meal_cost; }
		if (guest4 != "") { item_name_6 = guest4+", "+meal4; paypalStr += "&item_name_6="+item_name_6+"&amount_6="+meal_cost; }
		if (guest5 != "") { item_name_7 = guest5+", "+meal5; paypalStr += "&item_name_7="+item_name_7+"&amount_7="+meal_cost; }
		if (guest6 != "") { item_name_8 = guest6+", "+meal6; paypalStr += "&item_name_8="+item_name_8+"&amount_8="+meal_cost; }
		if (guest7 != "") { item_name_9 = guest7+", "+meal7; paypalStr += "&item_name_9="+item_name_9+"&amount_9="+meal_cost; }
		if (guest8 != "") { item_name_10 = guest8+", "+meal8; paypalStr += "&item_name_10="+item_name_10+"&amount_10="+meal_cost; }
	} else {
		if (guest1 != "") { item_name_2 = guest1+", "+meal1; paypalStr += "&item_name_2="+item_name_2+"&amount_2="+meal_cost; }
		if (guest2 != "") { item_name_3 = guest2+", "+meal2; paypalStr += "&item_name_3="+item_name_3+"&amount_3="+meal_cost; }
		if (guest3 != "") { item_name_4 = guest3+", "+meal3; paypalStr += "&item_name_4="+item_name_4+"&amount_4="+meal_cost; }
		if (guest4 != "") { item_name_5 = guest4+", "+meal4; paypalStr += "&item_name_5="+item_name_5+"&amount_5="+meal_cost; }
		if (guest5 != "") { item_name_6 = guest5+", "+meal5; paypalStr += "&item_name_6="+item_name_6+"&amount_6="+meal_cost; }
		if (guest6 != "") { item_name_7 = guest6+", "+meal6; paypalStr += "&item_name_7="+item_name_7+"&amount_7="+meal_cost; }
		if (guest7 != "") { item_name_8 = guest7+", "+meal7; paypalStr += "&item_name_8="+item_name_8+"&amount_8="+meal_cost; }
		if (guest8 != "") { item_name_9 = guest8+", "+meal8; paypalStr += "&item_name_9="+item_name_9+"&amount_9="+meal_cost; }
	}

	
	paypalStr += "&on0_1="+on0_1+"&os0_1="+os0_1+"&no_shipping=1&tax_cart=0&currency_code=USD&lc=US&return=http://www.bnhba.com/Activities/gen_meeting_thanks.htm";
//	alert (paypalStr);

//	window.open(paypalStr);
document.reg_form.action=paypalStr;
document.reg_form.submit();
	return true;
}

function callPayPal4(name, firm, phone, email, date_venue, total_guests, guest1, guest2, guest3, guest4, guest5, guest6, guest7,guest8, meal_cost, businessName, className, retURL) 
{
	var total_items = 0.0;
	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.");

	item_name_1 = className+" on "+date_venue;
//	alert (item_name_1);
	amount_1 = "0.00";
//	alert (amount_1);

	on0_1 = "Contact Info";
	os0_1 = name+', '+firm+', '+phone+', '+email;

	total_items = 1;

	if (businessName == 'BNHBA') {
		business = 'admin@bnhba.com';
	} else {
		alert ("Business not identified");
		return false;
	}
//	alert (business);

	paypalStr = "https://www.paypal.com/cgi-bin/webscr?&cmd=_cart&upload=1&business="+business+
		"&item_name_1="+item_name_1+"&amount_1="+amount_1+"&quantity_1="+total_items;
	
	if (guest1 != "") { item_name_2 = guest1; paypalStr += "&item_name_2="+item_name_2+"&amount_2="+meal_cost; }
	if (guest2 != "") { item_name_3 = guest2; paypalStr += "&item_name_3="+item_name_3+"&amount_3="+meal_cost; }
	if (guest3 != "") { item_name_4 = guest3; paypalStr += "&item_name_4="+item_name_4+"&amount_4="+meal_cost; }
	if (guest4 != "") { item_name_5 = guest4; paypalStr += "&item_name_5="+item_name_5+"&amount_5="+meal_cost; }
	if (guest5 != "") { item_name_6 = guest5; paypalStr += "&item_name_6="+item_name_6+"&amount_6="+meal_cost; }
	if (guest6 != "") { item_name_7 = guest6; paypalStr += "&item_name_7="+item_name_7+"&amount_7="+meal_cost; }
	if (guest7 != "") { item_name_8 = guest7; paypalStr += "&item_name_8="+item_name_8+"&amount_8="+meal_cost; }
	if (guest8 != "") { item_name_9 = guest8; paypalStr += "&item_name_9="+item_name_9+"&amount_9="+meal_cost; }
	
	paypalStr += "&on0_1="+on0_1+"&os0_1="+os0_1+"&no_shipping=1&tax_cart=0&currency_code=USD&lc=US&return=http://www.bnhba.com/Activities/"+retURL;
//	alert (paypalStr);

//	window.open(paypalStr);
document.reg_form.action=paypalStr;
document.reg_form.submit();
return true;
}

// GOLF 2008
function callPayPal_golf(name, firm, phone, email, 
					  max_guests, total_guests, dinner_only, total_dinner_only, sponsor_cost,
					  free_tickets, ticket_price,
					  guest1, guest2, guest3, guest4, guest5, guest6, guest7, guest8, 
					  sponsor_op, sponsor_name, 
					  businessName, function_name, 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 (businessName == 'BNHBA') {
		business = 'admin@bnhba.com';
	} else {
		alert ("Business not identified");
		return false;
	}

	// set up the first item as the description
	description = function_name;
	description += ' for '+total_guests+" golfers";
	if (dinner_only >= 1) {
		description += ' and '+dinner_only+" dinners";
	}

//	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;

//	on1_1 = 'Local Assn';	
//	os1_1 = local;
//	alert (os1);

	paypalStr += "&on0_1="+on0_1+"&os0_1="+os0_1;
//	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++;
	}
	if (dinner_only >= 1) {
		paypalStr += "&item_name_"+itemNum+"= Dinner Only";
		paypalStr += "&quantity_"+itemNum+"="+dinner_only;
		paypalStr += "&amount_"+itemNum+"="+total_dinner_only;
		itemNum++;
	}
	for (i=1; i<=max_guests; 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/Activities/"+return_page;
//	alert ("after loop: "+paypalStr);

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

	return true;
}

// GOLF 2008
function callPayPal_golf1(name, firm, phone, email, 
					  max_guests, max_dinners, total_guests, dinner_only, total_dinner_only, sponsor_cost,
					  free_tickets, ticket_price, dinner_price, 
					  guest1, guest2, guest3, guest4, guest5, guest6, guest7, guest8, 
					  dinner1, dinner2, dinner3, dinner4, 
					  sponsor_op, sponsor_name, 
					  businessName, function_name, 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 (businessName == 'BNHBA') {
		business = 'admin@bnhba.com';
	} else {
		alert ("Business not identified");
		return false;
	}

	// set up the first item as the description
	description = function_name;
	description += ' for '+total_guests+" golfers";
	if (dinner_only >= 1) {
		description += ' and '+dinner_only+" dinners";
	}

//	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;

//	on1_1 = 'Local Assn';	
//	os1_1 = local;
//	alert (os1);

	paypalStr += "&on0_1="+on0_1+"&os0_1="+os0_1;
//	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<=max_guests; 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+"= Golfer - "+eval(guestVar);
			paypalStr += "&amount_"+itemNum+"="+eval(amountVar);
			itemNum++;
		}
	}
	for (i=1; i<=max_dinners; i++) {
		var guestVar = 'dinner' + i;
		var itemVar = 'item_name_' + itemNum;
		var amountVar = 'amount_' + itemNum;

		if (eval(guestVar) != "") {
//			if (i <= free_tickets) {
//				amountVar=0;
//			} 
//			else 
//			{
				amountVar=dinner_price;
//			}
//			alert (eval(amountVar));
			paypalStr += "&item_name_"+itemNum+"= Dinner - "+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/Activites/"+return_page;
//	alert ("after loop: "+paypalStr);

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

	return true;
}
// Vendor Night 2009
function callPayPal_vendornight(name, firm, phone, email, 
					  total_guests, 
					  guest1, guest2, guest3, guest4, guest5, guest6, guest7, guest8, 
					  meal_cost, table_cost, numtables,  
					  businessName, function_name, 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 (businessName == 'BNHBA') {
		business = 'admin@bnhba.com';
	} else {
		alert ("Business not identified");
		return false;
	}

	// set up the first item as the description
	description = function_name;
	description += ' for '+total_guests+" attendees";

//	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);
//
	paypalStr += "&on0_1="+on0_1+"&os0_1="+os0_1;
//	alert (paypalStr);
	// the first item is tables
	var itemNum = 2;
	if (table_cost > 0) {
		paypalStr += "&item_name_"+itemNum+"= Vendor Table";
		paypalStr += "&quantity_"+itemNum+"="+numtables;
		paypalStr += "&amount_"+itemNum+"="+table_cost;
		itemNum++;
	}
//	alert (paypalStr);
	for (i=1; i<=total_guests; i++) {
		var guestVar = 'guest' + i;
		var itemVar = 'item_name_' + itemNum;
		if (i <= numtables) {
			var amountVar = 0.0;
		} else {
			var amountVar = meal_cost;
		}

		paypalStr += "&item_name_"+itemNum+"= Attendee - "+eval(guestVar);
		paypalStr += "&amount_"+itemNum+"="+eval(amountVar);
		itemNum++;
//		alert (paypalStr);
	}

	paypalStr += "&no_shipping=1&tax_cart=0&currency_code=USD&lc=US&return=http://www.bnhba.com/Activities/"+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;
}
// -->
