	// Conference unit prices 2009-04-22
	var pr_reg = 65;
	var pr_regs = 65;
	var pr_lregs = 85;
	var pr_navyYard = 40;
	var pr_navalAcad = 50;
	var pr_thursSymp = 65;
	var pr_thursSympLunch = 20;
	var pr_London = 40;
	var pr_stMichaels = 50;
	var pr_friReception = 35;
	var pr_trolleytour = 30;
	var pr_conferenceLunch = 20;
	var pr_banquetChicken = 40;
	var pr_banquetPrimeRib = 45;
	var pr_banquetSalmon = 40;

	var newchg = 0;
	var runtot = 0;
	var str = "";
	var popper = null;

	function pop(dest) {
		if (popper && popper.open) {popper.close();}
		popper = window.open(dest,"popMap","scrollbars=no,status=no,toolbar=no,location=0,directories=0,menubar=0,resizable=0,copyhistory=0,width=500,height=500");
		return;
	}

	function mult(choice) {
		if (choice==1) {
			newchg = pr_reg*document.form1.regs.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.regsTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==2) {
			newchg = pr_lregs*document.form1.lregs.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.lregsTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==3) {
			newchg = pr_navyYard*document.form1.navyYard.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.navyYardTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==51) {
			newchg = pr_navalAcad*document.form1.navalAcad.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.navalAcadTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==52) {
			newchg = pr_thursSymp*document.form1.thursSymp.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.thursSympTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==53) {
			newchg = pr_thursSympLunch*document.form1.thursSympLunch.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.thursSympLunchTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==54) {
			newchg = pr_London*document.form1.London.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.LondonTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==7) {
			newchg = pr_stMichaels*document.form1.stMichaels.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.stMichaelsTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==7) {
			newchg = pr_friReception*document.form1.friReception.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.friReceptionTot.value = str.substring(0,str.indexOf("."))+".00";
		}





		if (choice==11) {
			newchg = pr_trolleytour*document.form1.trolleytour.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.trolleytourTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==12) {
			newchg = pr_conferenceLunch*document.form1.conferenceLunch.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.conferenceLunchTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==13) {
			newchg = pr_banquetChicken*document.form1.banquetChicken.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.banquetChickenTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==14) {
			newchg = pr_banquetPrimeRib*document.form1.banquetPrimeRib.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.banquetPrimeRibTot.value = str.substring(0,str.indexOf("."))+".00";
		}
		if (choice==15) {
			newchg = pr_banquetSalmon*document.form1.banquetSalmon.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.banquetSalmonTot.value = str.substring(0,str.indexOf("."))+".00";
		}

		////////////////////////////////////////////
		runthecharge("2");
	}

	function runthecharge(val) {
		if (val==4) {	// form is being submitted
			var msg = "";
			// check for minimum requirements
			if (document.form1.name.value=="") {msg="Please enter your NAME ...";document.form1.name.focus();}
			else if (document.form1.hphone1.value=="" && document.form1.hphone2.value=="" && document.form1.hphone3.value=="") {
				msg="Please enter your HOME PHONE NUMBER ...";
				document.form1.hphone1.focus();
			}
			else if (document.form1.hphone1.value.length<3 || 
				document.form1.hphone1.value<200 || 
				document.form1.hphone2.value.length<3 || 
				document.form1.hphone3.value.length<4
				) {
					msg="Please enter a valid HOME PHONE NUMBER ...";
					document.form1.hphone1.value="";
					document.form1.hphone2.value="";
					document.form1.hphone3.value="";
					document.form1.hphone1.focus();
			}
			else if (document.form1.regs.value=="" || document.form1.regs.value==0) {
				msg="Please enter the number of PEOPLE ATTENDING ...";
				document.form1.regs.focus();
			}
			if (msg!="") {alert(msg);}
			return true;
		}
		else if (val==1) {
			var nmbrs = 0;
			nmbrs = document.form1.regs.value + 
					document.form1.lregs.value + 
					document.form1.navyYard.value + 
					document.form1.navalAcad.value + 
					document.form1.thursSymp.value + 
					document.form1.thursSympLunch.value + 
					document.form1.London.value + 
					document.form1.stMichaels.value + 
					document.form1.friReception.value + 
					document.form1.trolleytour.value + 
					document.form1.conferenceLunch.value + 
					document.form1.banquetChicken.value + 
					document.form1.banquetPrimeRib.value + 
					document.form1.banquetSalmon.value;
			if (nmbrs==0) {alert("Please type in the NUMBER OF REGISTRATIONS ...");document.form1.regs.focus();return false;}
			else if (document.form1.name.value=="") {alert("Please give us YOUR NAME ...");document.form1.name.focus();return false;}
			else if (document.form1.hphone1.value=="") {alert("Please type in YOUR HOME PHONE AREA CODE ...");document.form1.hphone1.focus();return false;}
			else if (document.form1.hphone2.value=="") {alert("Please type in YOUR FULL HOME PHONE NUMBER ...");document.form1.hphone2.focus();return false;}
			else if (document.form1.hphone3.value=="") {alert("Please type in YOUR FULL HOME PHONE NUMBER ...");document.form1.hphone3.focus();return false;}
		}
		else if (val==3) {
			if (document.form1.regs.value)				{mult("1");}
			if (document.form1.lregs.value)				{mult("2");}
			if (document.form1.navyYard.value)			{mult("3");}
			if (document.form1.navalAcad.value)			{mult("51");}
			if (document.form1.thursSymp.value)			{mult("52");}
			if (document.form1.thursSympLunch.value)	{mult("53");}
			if (document.form1.London.value)			{mult("54");}
			if (document.form1.stMichaels.value)		{mult("6");}
			if (document.form1.friReception.value)		{mult("7");}
			if (document.form1.trolleytour.value)		{mult("11");}
			if (document.form1.conferenceLunch.value)	{mult("12");}
			if (document.form1.banquetChicken.value)	{mult("13");}
			if (document.form1.banquetPrimeRib.value)	{mult("14");}
			if (document.form1.banquetSalmon.value)		{mult("15");}
			return;
		}
				
		runtot = 0;
		newchg = 0;

		if (document.form1.regs.value!="" && document.form1.regs.value!=0) {
			newchg = pr_regs*document.form1.regs.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.regsTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
		if (document.form1.lregs.value!="" && document.form1.lregs.value!=0) {
			newchg = pr_lregs*document.form1.lregs.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.lregsTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
		if (document.form1.navyYard.value!="" && document.form1.navyYard.value!=0) {
			newchg = pr_navyYard*document.form1.navyYard.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.navyYardTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.navalAcad.value!="" && document.form1.navalAcad.value!=0) {
			newchg = pr_navalAcad*document.form1.navalAcad.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.navalAcadTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.thursSymp.value!="" && document.form1.thursSymp.value!=0) {
			newchg = pr_thursSymp*document.form1.thursSymp.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.thursSympTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.thursSympLunch.value!="" && document.form1.thursSympLunch.value!=0) {
			newchg = pr_thursSympLunch*document.form1.thursSympLunch.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.thursSympLunchTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.London.value!="" && document.form1.London.value!=0) {
			newchg = pr_London*document.form1.London.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.LondonTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.stMichaels.value!="" && document.form1.stMichaels.value!=0) {
			newchg = pr_stMichaels*document.form1.stMichaels.value;
			newchg = Math.round(newchg*100) / 100 + .001;
			str = "" + newchg;
			document.form1.stMichaelsTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}

		if (document.form1.friReception.value!="" && document.form1.friReception.value!=0) {
			newchg = pr_friReception*document.form1.friReception.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.friReceptionTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.trolleytour.value!="" && document.form1.trolleytour.value!=0) {
			newchg = pr_trolleytour*document.form1.trolleytour.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.trolleytourTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.conferenceLunch.value!="" && document.form1.conferenceLunch.value!=0) {
			newchg = pr_conferenceLunch*document.form1.conferenceLunch.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.conferenceLunchTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}

		if (document.form1.banquetChicken.value!="" && document.form1.banquetChicken.value!=0) {
			newchg = pr_banquetChicken*document.form1.banquetChicken.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.banquetChickenTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.banquetPrimeRib.value!="" && document.form1.banquetPrimeRib.value!=0) {
			newchg = pr_banquetPrimeRib*document.form1.banquetPrimeRib.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.banquetPrimeRibTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}
	
		if (document.form1.banquetSalmon.value!="" && document.form1.banquetSalmon.value!=0) {
			newchg = pr_banquetSalmon*document.form1.banquetSalmon.value;
			newchg = Math.round(newchg*100) / 100 + .001;
				str = "" + newchg;
				document.form1.banquetSalmonTot.value = str.substring(0,str.indexOf("."))+".00";
			runtot = eval(runtot + newchg);
		}

		if (runtot>0) {
			str = "" + runtot;
			document.form1.totalCharge.value = str.substring(0,str.indexOf("."))+".00";
		}
		else {
			document.form1.totalCharge.value = "0.00";
		}
		
		return true;		
	}
