<!--
	// initialize Total  qty variables
	totalDecalsqty = 0;

	// buyItem - adds an item to the shopping basket

	function buyItem() {
		// set up variables for HotProducts

		var whichitem = "Decals"
		var qty = Decalsqty;
		var size = " ";

		itemNo = product;

		// hard codes color variables 
		color = "red";
		bgcolor = "white";

		// copy is not used for Decals
		copy1 = imprint;

		// copy2 variable is not used for Decals
		copy2 = ""

		// add item to shopping cart
		setTotalqty(qty);		
		oldCart = getCookie('ShopCart');
		newCart = "["+itemNo+"|"+whichitem+"|"+size+"|"+color+"|"+bgcolor+"|"+copy1+"|"+copy2+"|"+qty+"]";
		cartFull = oldCart + newCart;
		setCookie('ShopCart',cartFull);
		self.location.href="shop_view_cart.htm"
	}
	// sets Decals cookie so prices can be calculated in view_cart

	function setTotalqty(thisqty)
	{
		thatDecalsqty = getCookie('totalDecalsqty');
		if (thatDecalsqty)
		{	totalDecalsqty = thatDecalsqty;
			totalDecalsqty = (eval(parseInt(totalDecalsqty) + parseInt(thisqty)));		
		} else {
			totalDecalsqty = (eval(parseInt(totalDecalsqty) + parseInt(thisqty))); 
		}
		setCookie('totalDecalsqty', totalDecalsqty);
	}

	// set product name  
	function addDecal(item,qty)
	{
		product =item;
		Decalsqty = qty;
		additem();
	}
	
	
	
	// validates form fields and adds hotproducts info
	function additem()
	 {
		if (product == "101D")
		{	document.decalsform.qty_101D.focus();
			imprint = "Open House";
		}
		if (product == "129D")
		{	document.decalsform.qty_129D.focus();
			imprint = "Sale Pending";
		}
		if (product == "131D")
		{	document.decalsform.qty_131D.focus();
			imprint = "Sold";
		}
		if (product == "134D")
		{	document.decalsform.qty_134D.focus();
			imprint = "Arrow";
		}
		if (product == "401D")
		{	document.decalsform.qty_401D.focus();
			imprint = "Assortment";
		}
		
		// validates Decalsqty
		if (Decalsqty == "" || Decalsqty == "")
		{
			alert('Please enter a Decal quantity.');
			return;
		}
		
		isNo = chkForNum(Decalsqty);
		if (!isNo)
		{
			alert('Please enter only numeric values');
			return;
		}
		// adds info into cart
		buyItem()
	}

// -->	