function popWindow(arg,argw,argh) {
		winSiteMap=window.open(arg,"","width="+argw+",height="+argh+",left=25,top=25,scrollbars=no,menubar=no,resizable=no;location=no");
	}	
	
	function total(whichform) {
		l = parseInt(eval("theform.large" + whichform + ".value"));
		if (isNaN(l)) {l=0}
		xl = parseInt(eval("theform.xlarge" + whichform +".value"));
		if (isNaN(xl)) {xl=0}
		xxl = parseInt(eval("theform.xxlarge" + whichform + ".value"));
		if (isNaN(xxl)) {xxl=0}
		xxxl = parseInt(eval("theform.xxxlarge" + whichform + ".value"));
		if (isNaN(xxxl)) {xxxl=0}
		eval("theform.thetotal" + whichform).value = (l + xl + xxl + xxxl)*16 + ".00";
	}
	function greysocktotal() {
		l = parseInt(theform.ladies.value);
		if (isNaN(l)) {l=0}
		m1 = parseInt(theform.mens1.value);
		if (isNaN(m1)) {m1=0}
		m2 = parseInt(theform.mens2.value);
		if (isNaN(m2)) {m2=0}
		theform.thetotald.value = (l + m1 + m2)*10 + ".00";
	}
	function whitesocktotal() {
		l3 = parseInt(theform.ladies3.value);
		if (isNaN(l3)) {l3=0}
		m3 = parseInt(theform.mens3.value);
		if (isNaN(m3)) {m3=0}
		theform.thetotale.value = (l3 + m3)*10 + ".00";
	}
	function misctotal(formname,quantity) {
		fn = parseInt(eval("theform." + formname + ".value"));
		if (isNaN(fn)) {fn=0}
		eval("theform.thetotal" + formname).value = fn*quantity + ".00";
	}
	function misc2total(formname,quantity) {
		fn2 = parseInt(eval("theform." + formname + ".value"));
		if (isNaN(fn2)) {fn2=0}
		eval("theform.thetotal" + formname).value = fn2*quantity;
	}
	function grandtotal() {
		total('a1');
		total('a');
		total('b');
		total('c');
		greysocktotal();
		whitesocktotal();
		misctotal('bumpersticker','1' );
		misctotal('bumpersticker2','1' );
		misctotal('plate','5');
		misctotal('stickers','1');
		misctotal('toy','10');
		//misctotal('card1','10');
		misctotal('card2','10');
		misc2total('book1','15.95');
		misc2total('booklet','5.95');
		ta1 = parseInt(theform.thetotala1.value);
		if (isNaN(ta1)) {ta1=0}
		t1 = parseInt(theform.thetotala.value);
		if (isNaN(t1)) {t1=0}
		t2 = parseInt(theform.thetotalb.value);
		if (isNaN(t2)) {t2=0}
		t3 = parseInt(theform.thetotalc.value);
		if (isNaN(t3)) {t3=0}
		t4 = parseInt(theform.thetotald.value);
		if (isNaN(t4)) {t4=0}
		t5 = parseInt(theform.thetotale.value);
		if (isNaN(t5)) {t5=0}
		t6 = parseInt(theform.thetotalbumpersticker.value);
		if (isNaN(t6)) {t6=0}
		t7 = parseInt(theform.thetotalplate.value);
		if (isNaN(t7)) {t7=0}
		t8 = parseInt(theform.thetotalstickers.value);
		if (isNaN(t8)) {t8=0}
		t9 = parseInt(theform.thetotaltoy.value);
		if (isNaN(t9)) {t9=0}
		//t10 = parseInt(theform.thetotalcard1.value);
		//if (isNaN(t10)) {t10=0}
		t11 = parseInt(theform.thetotalcard2.value);
		if (isNaN(t11)) {t11=0}
		t12 = parseInt(theform.thetotalbook1.value);
		t13 = parseInt(theform.thetotalbooklet.value);
		t14 = parseInt(theform.thetotalbumpersticker2.value);
		if (isNaN(t14)) {t14=0}
		if ( theform.book1.value > 0 ){
			addbook = .95*theform.book1.value;
		} else {
			addbook = 0;
		}
		if ( theform.booklet.value > 0 ){
			addbook2 = .95*(theform.booklet.value);
		} else {
			addbook2 = 0;
		}
		subtotal = (ta1 + t1 + t2 + t3 + t4 + t5 + t6 +t7 + t8 + t9 + t11 + t12 + t13 + t14);
		theform.Grandtotal.value = "$" + ( subtotal + addbook + addbook2 );
		
		largea1 = theform.largea1.value;
		if ( largea1 > 0 ){
			if ( largea1 > 1 ) {
				largea1 = largea1 + " Large Win...Or Die, ";
			} else {
				largea1 = largea1 + " Large Win...Or Die, ";
			}
		} else {
			largea1 = "";
		}
		xlargea1 = theform.xlargea1.value;
		if ( xlargea1 > 0 ){
			if ( xlargea1 > 1 ) {
				xlargea1 = xlargea1 + " XLarge Win...Or Die, ";
			} else {
				xlargea1 = xlargea1 + " XLarge Win...Or Die, ";
			}
		} else {
			xlargea1 = "";
		}
		xxlargea1 = theform.xxlargea1.value;
		if ( xxlargea1 > 0 ){
			if ( xxlargea1 > 1 ) {
				xxlargea1 = xxlargea1 + " XXLarge Win...Or Die, ";
			} else {
				xxlargea1 = xxlargea1 + " XXLarge Win...Or Die, ";
			}
		} else {
			xxlargea1 = "";
		}
		xxxlargea1 = theform.xxxlargea1.value;
		if ( xxxlargea1 > 0 ){
			if ( xxxlargea1 > 1 ) {
				xxxlargea1 = xxxlargea1 + " XXXLarge Win...Or Die, ";
			} else {
				xxxlargea1 = xxxlargea1 + " XXXLarge Win...Or Die, ";
			}
		} else {
			xxxlargea1 = "";
		}
		largea = theform.largea.value;
		if ( largea > 0 ){
			if ( largea > 1 ) {
				largea = largea + " Large Stop The Killing T-Shirts, ";
			} else {
				largea = largea + " Large Stop The Killing T-Shirt, ";
			}
		} else {
			largea = "";
		}
		xlargea = theform.xlargea.value;
		if ( xlargea > 0 ){
			if ( xlargea > 1 ) {
				xlargea = xlargea + " XLarge Stop The Killing T-Shirts, ";
			} else {
				xlargea = xlargea + " XLarge Stop The Killing T-Shirt, ";
			}
		} else {
			xlargea = "";
		}
		xxlargea = theform.xxlargea.value;
		if ( xxlargea > 0 ){
			if ( xxlargea > 1 ) {
				xxlargea = xxlargea + " XXLarge Stop The Killing T-Shirts, ";
			} else {
				xxlargea = xxlargea + " XXLarge Stop The Killing T-Shirt, ";
			}
		} else {
			xxlargea = "";
		}
		xxxlargea = theform.xxxlargea.value;
		if ( xxxlargea > 0 ){
			if ( xxxlargea > 1 ) {
				xxxlargea = xxxlargea + " XXXLarge Stop The Killing T-Shirts, ";
			} else {
				xxxlargea = xxxlargea + " XXXLarge Stop The Killing T-Shirt, ";
			}
		} else {
			xxxlargea = "";
		}
		largeb = theform.largeb.value;
		if ( largeb > 0 ){
			if ( largeb > 1 ) {
				largeb = largeb + " Large Race Cars Not Dogs T-Shirts, ";
			} else {
				largeb = largeb + " Large Race Cars Not Dogs T-Shirt, ";
			}
		} else {
			largeb = "";
		}
		xlargeb = theform.xlargeb.value;
		if ( xlargeb > 0 ){
			if ( xlargeb > 1 ) {
				xlargeb = xlargeb + " XLarge Race Cars Not Dogs T-Shirts, ";
			} else {
				xlargeb = xlargeb + " XLarge Race Cars Not Dogs T-Shirt, ";
			}
		} else {
			xlargeb = "";
		}
		xxlargeb = theform.xxlargeb.value;
		if ( xxlargeb > 0 ){
			if ( xxlargeb > 1 ) {
				xxlargeb = xxlargeb + " XXLarge Race Cars Not Dogs T-Shirts, ";
			} else {
				xxlargeb = xxlargeb + " XXLarge Race Cars Not Dogs T-Shirt, ";
			}
		} else {
			xxlargeb = "";
		}
		xxxlargeb = theform.xxxlargeb.value;
		if ( xxxlargeb > 0 ){
			if ( xxxlargeb > 1 ) {
				xxxlargeb = xxxlargeb + " XXXLarge Race Cars Not Dogs T-Shirts, ";
			} else {
				xxxlargeb = xxxlargeb + " XXXLarge Race Cars Not Dogs T-Shirt, ";
			}
		} else {
			xxxlargeb = "";
		}
		largec = theform.largec.value;
		if ( largec > 0 ){
			if ( largec > 1 ) {
				largec = largec + " Large Stop Greyhound Racing T-Shirts, ";
			} else {
				largec = largec + " Large Stop Greyhound Racing T-Shirt, ";
			}
		} else {
			largec = "";
		}
		xlargec = theform.xlargec.value;
		if ( xlargec > 0 ){
			if ( xlargec > 1 ) {
				xlargec = xlargec + " XLarge Stop Greyhound Racing T-Shirts, ";
			} else {
				xlargec = xlargec + " XLarge Stop Greyhound Racing T-Shirt, ";
			}
		} else {
			xlargec = "";
		}
		xxlargec = theform.xxlargec.value;
		if ( xxlargec > 0 ){
			if ( xxlargec > 1 ) {
				xxlargec = xxlargec + " XXLarge Stop Greyhound Racing T-Shirts, ";
			} else {
				xxlargec = xxlargec + " XXLarge Stop Greyhound Racing T-Shirt, ";
			}
		} else {
			xxlargec = "";
		}
		xxxlargec = theform.xxxlargec.value;
		if ( xxxlargec > 0 ){
			if ( xxxlargec > 1 ) {
				xxxlargec = xxxlargec + " XXXLarge Stop Greyhound Racing T-Shirts, ";
			} else {
				xxxlargec = xxxlargec + " XXXLarge Stop Greyhound Racing T-Shirt, ";
			}
		} else {
			xxxlargec = "";
		}
		
		ladies = theform.ladies.value;
		if ( ladies > 0 ){
			ladies = ladies + " Medium 9-11 Grey-Trouser Style Socks, ";
		} else {
			ladies = "";
		}
		mens1 = theform.mens1.value;
		if ( mens1 > 0 ){
			mens1 = mens1 + " Large 10-13 Grey-Trouser Style Socks, ";
		} else {
			mens1 = "";
		}
		mens2 = theform.mens2.value;
		if ( mens2 > 0 ){
			mens2 = mens2 + " Large 13-15 Grey-Trouser Style Socks, ";
		} else {
			mens2 = "";
		}
		
		ladies3 = theform.ladies3.value;
		if ( ladies3 > 0 ){
			ladies3 = ladies3 + " Medium 9-11 White Athletic-Style Socks, ";
		} else {
			ladies3 = "";
		}
		mens3 = theform.mens3.value;
		if ( mens3 > 0 ){
			mens3 = mens3 + " Large 10-13 White Athletic-Style Socks, ";
		} else {
			mens3 = "";
		}
		
		bumpersticker = theform.bumpersticker.value;
		if ( bumpersticker > 0 ){
			if ( bumpersticker > 1 ) {
				bumpersticker = bumpersticker + " Race Cars Not Dogs Bumper Stickers, ";
			} else {
				bumpersticker = bumpersticker + " Race Cars Not Dogs Bumper Sticker, ";
			}
		} else {
			bumpersticker = "";
		}
		
		bumpersticker2 = theform.bumpersticker2.value;
		if ( bumpersticker2 > 0 ){
			if ( bumpersticker2 > 1 ) {
				bumpersticker2 = bumpersticker2 + " Greyhound Racing, The Sport That Kills Bumper Stickers, ";
			} else {
				bumpersticker2 = bumpersticker2 + " Greyhound Racing, The Sport That Kills Bumper Sticker, ";
			}
		} else {
			bumpersticker2 = "";
		}
		
		plate = theform.plate.value;
		if ( plate > 0 ){
			if ( plate > 1 ) {
				plate = plate + " Plastic License Plates, ";
			} else {
				plate = plate + " Plastic License Plate, ";
			}
		} else {
			plate = "";
		}
		stickers = theform.stickers.value;
		if ( stickers > 0 ){
			stickers = stickers + " Envelope Stickers, ";
		} else {
			stickers = "";
		}
		toy = theform.toy.value;
		if ( toy > 0 ){
			if ( toy > 1 ) {
				toy = toy + " Greyhound Plush Toys, ";
			} else {
				toy = toy + " Greyhound Plush Toy, ";
			}
		} else {
			toy = "";
		}
		//card1 = theform.card1.value;
		//if ( card1 > 0 ){
			//card1 = card1 + " Holiday Greeting Cards, ";
		//} else {
			//card1 = "";
		//}
		card2 = theform.card2.value;
		if ( card2 > 0 ){
			card2 = card2 + " Greyhound Protection League Notecards, ";
		} else {
			card2 = "";
		}
		book1 = theform.book1.value;
		if ( book1 > 0 ){
			if ( book1 > 1 ) {
				book1 = book1 + " Greyhounds Tales Books, ";
			} else {
				book1 = book1 + " Greyhounds Tales Book, ";
			}
		} else {
			book1 = "";
		}
		booklet = theform.booklet.value;
		if ( booklet > 0 ){
			if ( booklet > 1 ) {
				booklet = booklet + " My Greyhound Friends Booklets, ";
			} else {
				booklet = booklet + " My Greyhound Friends Booklet, ";
			}
		} else {
			booklet = "";
		}
		
		brochure1 = theform.brochure1.value;
		if ( brochure1 > 0 ){
			brochure1 = brochure1 + " Pack of Brochures, ";
		} else {
			brochure1 = "";
		}
		
		theform.Items.value = largea1 + xlargea1 + xxlargea1 + xxxlargea1 + largea + xlargea + xxlargea + xxxlargea + largeb + xlargeb + xxlargeb + xxxlargeb + largec + xlargec + xxlargec + 
								xxxlargec + ladies + mens1 + mens2 + ladies3 + mens3 + bumpersticker + bumpersticker2 + plate + stickers + toy + card2 + 
								book1 + booklet + brochure1 + ".";
	}