				function displayRegistrationTotal(){
					var l_input;
					var l_price = 0;
					var l_member_price = j_member_price = j_addition = 0;
					var l_total = 0;
					l_input = document.getElementById('renew_member');
					if (l_input != null && l_input.value == "renew"){
						l_input = document.getElementById('member_fee');
						if (l_input != null){
							l_price = parseInt(l_input.value,10);
							if (!isNaN(l_price)){
								l_member_price = parseInt(l_input.value,10);
							}
						}
					}
					l_input = document.getElementsByName('registration');
					if (l_input[0].checked){
						l_total += 595;
                        j_member_price += 595;
					} else if (l_input[1].checked){
						l_total += 695;
                        j_member_price += 695;
					} else if (l_input[2].checked) {
						l_total += 695;
                        j_member_price += 695;
					} else if (l_input[3].checked){
						l_total += 795;
                        j_member_price += 795;
					}

					l_input = document.getElementById('day_1_1_1');
					if (l_input.checked) {
                        l_total += 35;
                        j_addition += 35;
                    }
					
					l_input = document.getElementById('day_1_1_2');
					if (l_input.checked) {
                        l_total += 150;
                        j_addition += 150;
                    }

					l_input = document.getElementById('day_3_1');
					if (l_input.checked) {
                        l_total += 150;
                        j_addition += 150;
                    }

					l_input = document.getElementById('day_4_5');
					if (l_input.checked) {
                        l_total += 120;
                        j_addition += 120;
                    }
                    
                    l_input = document.getElementById('day_4_3_1');
                    if (l_input.checked) {
                        l_total += 5;
                        j_addition += 5;
                    }

					l_input = document.getElementById('day_5_1');
					if (l_input.checked) {
                        l_total += 150;
                        j_addition += 150;
                    }

					l_input = document.getElementById('payment_membership_fee');
					if (l_input != null) l_input.value = l_member_price;
					l_input = document.getElementById('payment_registration_fees');
					if (l_input != null) l_input.value = j_member_price;
					l_total += l_member_price;
					l_input = document.getElementById('payment_subtotal');
					if (l_input != null) l_input.value = j_addition;
					l_input = document.getElementById('payment_additional');
					l_member_price = 0;
					if (l_input != null){
						l_price = parseInt(l_input.value,10);
						if (!isNaN(l_price)){
							l_member_price = parseInt(l_input.value,10);
						}
					}

					l_total += l_member_price;
					l_input = document.getElementById('payment_total');
					if (l_input != null) l_input.value = l_total;
				}
				
				function checkRegistrationSubmit(){
					var l_input;
					var l_total;
					var l_valid = false;
					
					displayRegistrationTotal();

					l_input = document.getElementById('payment_total');
					if (l_input != null){
						l_total = parseInt(l_input.value,10);
						if (!isNaN(l_total) && l_total > 0){
							l_valid = true;
						}
					}

					if (l_valid){
						l_input = document.getElementById("contact_name");
						if (l_input != null && l_input.value == ""){
							alert("Please enter your name");
							l_valid = false;
						}
						if (l_valid){
							l_input = document.getElementById("contact_address");
							if (l_input != null && l_input.value == ""){
								alert("Please enter your street address");
								l_valid = false;
							}
						}
						if (l_valid){
							l_input = document.getElementById("contact_city");
							if (l_input != null && l_input.value == ""){
								alert("Please enter your city");
								l_valid = false;
							}
						}
						if (l_valid){
							l_input = document.getElementById("contact_state");
							if (l_input != null && l_input.value == ""){
								alert("Please enter your state");
								l_valid = false;
							}
						}
						if (l_valid){
							l_input = document.getElementById("contact_zip");
							if (l_input != null && l_input.value == ""){
								alert("Please enter your zip code");
								l_valid = false;
							}
						}
						if (l_valid){
							l_input = document.getElementById("contact_phone_1");
							if (l_input != null && l_input.value == ""){
								alert("Please enter a daytime phone number");
								l_valid = false;
							}
						}
						if (l_valid){
							l_input = document.getElementById("contact_phone_2");
							if (l_input != null && l_input.value == ""){
								alert("Please enter an evening phone number");
								l_valid = false;
							}
						}
					} else {
						alert("Please select an event or a registration type.");
					}
					if (l_valid){
						var l_form = document.getElementById("form_register");
						if (l_form != null){
							l_form.action = "index.php";
						} else {
							alert("can't find form");
						}
					}
					return l_valid;
				}

				function displayGalaRegistrationTotal(){
					var l_input;
					var l_number = 0;
					var l_total = 0;

					l_input = document.getElementById('ticket_count');
					if (l_input != null){
						l_number = parseInt(l_input.value,10);
						if (!isNaN(l_number)){
							l_total = l_number*100;
						}
					}

					l_input = document.getElementById('ticket_price');
					if (l_input != null) l_input.value = "$ "+l_total+".00";
				}
				
				function checkGalaRegistrationSubmit(){
					var l_input;
					var l_total;
					var l_valid = false;
					displayGalaRegistrationTotal();
					
					l_input = document.getElementById('ticket_count');
					if (l_input != null){
						l_total = parseInt(l_input.value,10);
						if (!isNaN(l_total) && l_total > 0){
							l_valid = true;
						}
					}
					return l_valid;
				}
				
				function showHideBuildingInfo(){
					var l_show = false;
					var l_check = document.getElementById("wright_owner_yes");
					
					if (l_check != null && l_check.checked){
						l_show = true;
					} else {
						l_check = document.getElementById("wright_site_yes");
						if (l_check != null && l_check.checked){
							l_show = true;
						}
					}
					l_check = document.getElementById("building_info");
					if (l_check != null){
						if (l_show == true){
							if (l_check.style.display == "none"){
								alert("Please fill in the Building Name and Location below.");
							}
							l_check.style.display = "inline";
						} else {
							l_check.style.display = "none";
						}
					}
				}

