<!--
function ckemail() {
									
				var str = document.form1.email.value;
				if (window.RegExp) {
					var reg1str = "(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)"; //not valid
					var reg2str = "^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$"; //valid
					var reg1 = new RegExp(reg1str);
					var reg2 = new RegExp(reg2str);
					if (!reg1.test(str) && reg2.test(str))
						return true;
					alert("\"" + str + "\" is an invalid e-mail!"); 
					document.form1.email.focus();
					document.form1.email.select();
					return false;
				} else {
					if(str.indexOf("@") >= 0)
					return true;
					alert("\"" + str + "\" is an invalid e-mail!"); 
					document.form1.email.focus();
					document.form1.email.select();
					return false;
				}
			}
			
			//for auction banquet
			function calctl() {
				var tlattending = 0;
				tlattending = (1*(document.form1.chn.value)) + (1*(document.form1.pork.value));  
				//document.write(tlattending);
				document.form1.NuAttending.value = tlattending;
				calc();
				tlattending = 0;
			}
			//for banquets
			function calc() {
				document.form1.Total.value = '$ ' + (document.Form1.NuAttending.value) * 28;
				document.form1.Submit1.focus();

			}
			
		    //Emb. T-Shirts
			function CalcTl(){
				document.form1.Tl1.value = '';
				if (document.form1.Select1.checked == true) {
					if (document.form1.Size1.options[4].selected) {
						var SizeValue = 23;
					}
					else {
						var SizeValue = 20;
					}
					document.form1.Tl1.value = (document.form1.Qty1.value * SizeValue);
					document.form1.Tl1.blur();
				}
				else {
					document.form1.Tl1.value = 0;
				}
				calc2();
								
			}
			
			//Emb. SweatShirts
			function CalcT2(){
				document.form1.Tl2.value = '';
				if (document.form1.Select2.checked == true) {
					if (document.form1.Size2.options[4].selected) {
						var SizeValue = 40;
					}
					else {
						var SizeValue = 35;
					}
					document.form1.Tl2.value = (document.form1.Qty2.value * SizeValue);
					document.form1.Tl2.blur();
				}
				else {
					document.form1.Tl2.value = 0;
				}
				calc2();
								
			}
			//Polo
			function CalcT10(){
				document.form1.Tl10.value = '';
				if (document.form1.Select10.checked == true) {
					if (document.form1.Size10.options[4].selected) {
						var SizeValue = 38;
					}
					else {
						var SizeValue = 35;
					}
					document.form1.Tl10.value = (document.form1.Qty10.value * SizeValue);
					document.form1.Tl10.blur();
				}
				else {
					document.form1.Tl10.value = 0;
				}
				calc2();
								
			}
			
			//Printed T-Shirt
			function CalcT11(){
				document.form1.Tl11.value = '';
				if (document.form1.Select11.checked == true) {
					if (document.form1.Size11.options[4].selected) {
						var SizeValue = 18;
					}
					else {
						var SizeValue = 15;
					}
					document.form1.Tl11.value = (document.form1.Qty11.value * SizeValue);
					document.form1.Tl11.blur();
				}
				else {
					document.form1.Tl11.value = 0;
				}
				calc2();
			}
			
			//Denim
			function CalcT12(){
				document.form1.Tl12.value = '';
				if (document.form1.Select12.checked == true) {
					if (document.form1.Size12.options[4].selected) {
						var SizeValue = 50;
					}
					else {
						var SizeValue = 45;
					}
					document.form1.Tl12.value = (document.form1.Qty12.value * SizeValue);
					document.form1.Tl12.blur();
				}
				else {
					document.form1.Tl12.value = 0;
				}
				calc2();
			}
			
			//Printed Sweat Shirt
			function CalcT13(){
				document.form1.Tl13.value = '';
				if (document.form1.Select13.checked == true) {
					if (document.form1.Size13.options[4].selected) {
						var SizeValue = 30;
					}
					else {
						var SizeValue = 25;
					}
					document.form1.Tl13.value = (document.form1.Qty13.value * SizeValue);
					document.form1.Tl13.blur();
				}
				else {
					document.form1.Tl13.value = 0;
				}
				calc2();
			}
			function OtherMerch(){
											
				
							if (document.form1.Select3.checked == true) {
								(document.form1.Tl3.value) = (document.form1.Qty3.value * 25);
							}
							else {
								document.form1.Tl3.value = 0;
							}
						
							if (document.form1.Select4.checked == true) {
								document.form1.Tl4.value = (document.form1.Qty4.value * 25);
							}
							else {
								document.form1.Tl4.value = 0;
							}
						
							if (document.form1.Select5.checked == true) {
								document.form1.Tl5.value = (document.form1.Qty5.value * 5);
							}
							else {
								document.form1.Tl5.value = 0;
							}
						
							if (document.form1.Select6.checked == true) {
								document.form1.Tl6.value = (document.form1.Qty6.value * 22);
							}
							else {
								document.form1.Tl6.value = 0;
							}
						
							if (document.form1.Select7.checked == true) {
								document.form1.Tl7.value = (document.form1.Qty7.value * 50);
							}
							else {
								document.form1.Tl7.value = 0;
							}
						
							if (document.form1.Select8.checked == true) {
								document.form1.Tl8.value = (document.form1.Qty8.value * 50);
							}
							else {
								document.form1.Tl8.value = 0;
							}
						
							if (document.form1.Select9.checked == true) {
								document.form1.Tl9.value = (document.form1.Qty9.value * 50);
							}
							else {
								document.form1.Tl9.value = 0;
							}
							
							calc2();
						
			}
			
			function calc2() {
				items = new Array();
				for (i = 0; i < 13; i++){
					items[i] = 0;
				}
					
				items[0] = parseInt(document.form1.Tl1.value);
				items[1] = parseInt(document.form1.Tl2.value);
				items[2] = parseInt(document.form1.Tl3.value);
				items[3] = parseInt(document.form1.Tl4.value);
				items[4] = parseInt(document.form1.Tl5.value);
				items[5] = parseInt(document.form1.Tl6.value);
				items[6] = parseInt(document.form1.Tl7.value);
				items[7] = parseInt(document.form1.Tl8.value);
				items[8] = parseInt(document.form1.Tl9.value);
				items[9] = parseInt(document.form1.Tl10.value);
				items[10] = parseInt(document.form1.Tl11.value);
				items[11] = parseInt(document.form1.Tl12.value);
				items[12] = parseInt(document.form1.Tl13.value);
							
				var SubTl = 0;
				for(i = 0; i < 13; i++){
					SubTl = SubTl + (items[i]);
					document.form1.SubTl.value = SubTl;
				}
	
				calcShipping();
				document.form1.GrandTl.value = parseInt(document.form1.SubTl.value) + parseInt(document.form1.ShipTl.value);
				
			}
			
			function calcShipping(){
				if (document.form1.PickUp.checked == false){
					var count = 0;
					Qty = new Array();
					for (x = 0; x < 13; x++){
						Qty[x] = 0;
					}
					if (document.form1.Select1.checked == true){
						count = count + 1;
						Qty[0] = parseInt(document.form1.Qty1.value);
					}
					//alert(document.form1.Qty2.value);
					if (document.form1.Select2.checked == true){
						count = count + 1;
						Qty[1] = parseInt(document.form1.Qty2.value);
					}
					if (document.form1.Select3.checked == true){
						count = count + 1;
						Qty[2] = parseInt(document.form1.Qty3.value);
					}
					if (document.form1.Select4.checked == true){
						count = count + 1;
						Qty[3] = parseInt(document.form1.Qty4.value);
					}
					//keychain - only charged shipping if it is the only thing ordered
					if (document.form1.Select5.checked == true){
						//count = count + 1;
						Qty[4] = parseInt(document.form1.Qty5.value);
					}
					if (document.form1.Select6.checked == true){
						count = count + 1;
						Qty[5] = parseInt(document.form1.Qty6.value);
					}
					if (document.form1.Select7.checked == true){
						count = count + 1;
						Qty[6] = parseInt(document.form1.Qty7.value);
					}
					if (document.form1.Select8.checked == true){
						count = count + 1;
						Qty[7] = parseInt(document.form1.Qty8.value);
					}
					if (document.form1.Select9.checked == true){
						count = count + 1;
						Qty[8] = parseInt(document.form1.Qty9.value);
					}
					if (document.form1.Select10.checked == true){
						count = count + 1;
						Qty[9] = parseInt(document.form1.Qty10.value);
					}
					if (document.form1.Select11.checked == true){
						count = count + 1;
						Qty[10] = parseInt(document.form1.Qty11.value);
					}
					if (document.form1.Select12.checked == true){
						count = count + 1;
						Qty[11] = parseInt(document.form1.Qty12.value);
					}
					if (document.form1.Select13.checked == true){
						count = count + 1;
						Qty[12] = parseInt(document.form1.Qty13.value);
					}
					if (count > 0){		
						var QtyTl = 0;
						for (x = 0; x < 13; x++){
							if (x != 4){
								QtyTl = QtyTl + (Qty[x]);
								//alert(QtyTl);
								document.form1.ShipTl.value = QtyTl * 5;
							}
						}
					}
					else {
						if (document.form1.Select5.checked == true){
							document.form1.ShipTl.value = 5;
						}
						else {
							document.form1.ShipTl.value = 0;
						}
					}
				}
				else {
					document.form1.ShipTl.value = 0;
				}
			}
			
			function calcPedigree() {
				document.form1.TlAdResvs.value = '$ ' + (document.form1.NuAdsResvs.value) * 45;
				document.form1.TlPedigree.value = '$ ' + (document.form1.PedigreeAds.value) * 10;
			}
			
			//you could have made all of the Select fields named Select - then would have been treated as an array automatically.
				/*if (document.form1.PickUp.checked == false){
					var i = 0;
					if (document.form1.Select1.checked == true){
						i=i+1
					}
					if (document.form1.Select2.checked == true){
						i=i+1
					}
					if (document.form1.Select3.checked == true){
						i=i+1
					}
					if (document.form1.Select4.checked == true){
						i=i+1
					}
					if (document.form1.Select5.checked == true){
						i=i+1
					}
					if (document.form1.Select6.checked == true){
						i=i+1
					}
					if (document.form1.Select7.checked == true){
						i=i+1
					}
					if (document.form1.Select8.checked == true){
						i=i+1
					}
					if (document.form1.Select9.checked == true){
						i=i+1
					}
					document.form1.ShipTl.value = (i * 5);
				}
				else {
					document.form1.ShipTl.value = 0;
				}*/
			
				
			
			
			function deny() {
				//alert("This field is calculated");
				document.form1.Select2.focus();
				
			}
			
			function deny2() {
				//alert("This field is calculated");
				document.form1.DogsName.focus();
				
			}
			function deny3() {
				//alert("This field is calculated");
				document.form1.OnSubmit.focus();
				
			}

//-->
