<!--
	// initialize Total Hot Products qty variables
	totalHotqty = 0;

	// buyItem - adds an item to the shopping basket

	function buyItem() {
		// set up variables for HotProducts

		var whichitem = "Hot Products"
		var qty = Hotproductsqty;
		var size = " ";

		itemNo = product;

		// hard codes color variables as HotProducts colors are not used
		color = "white";
		bgcolor = "red";

		// copy is not used for HotProducts
		copy1 = imprint;

		// copy2 variable is not used for HotProducts
		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 Hotqty cookie so prices can be calculated in view_cart

	function setTotalqty(thisqty)
	{
		thatHotqty = getCookie('totalHotqty');
		if (thatHotqty)
		{	totalHotqty = thatHotqty;
			totalHotqty = (eval(parseInt(totalHotqty) + parseInt(thisqty)));		
		} else {
			totalHotqty = (eval(parseInt(totalHotqty) + parseInt(thisqty))); 
		}
		setCookie('totalHotqty', totalHotqty);
	}

	// set product name for hotproducts
	function hs()
	{
		product = "CP-HS";
		imprint = "Home For Sale";
		additem();
	}
	
	// set product name for hotproducts
	function oh()
	{
		product = "CP-OH";
		imprint = "Open House";
		additem();
	}

	// set product name for hotproducts
	function fr()
	{
		product = "CP-FR";
		imprint = "For Rent";
		additem();
	}

	// set product name for hotproducts
	function th()
	{
		product = "CP-TH";
		imprint = "Open House To";
		additem();
	}
	
	// set product name for hotproducts
	function ahs()
	{
		product = "CP-HS-A";
		imprint = "Home For Sale Arrow";
		additem();
	}
	
	// set product name for hotproducts
	function aoh()
	{
		product = "CP-OH-A";
		imprint = "Open House Arrow";
		additem();
	}



	
	// validates form fields and adds hotproducts info
	function additem()
	 {
		if (product == "CP-HS")
		{	Hotproductsqty = document.Hotproductshs.hotproductshs_qty.value;
			document.Hotproductshs.hotproductshs_qty.focus();
		}
		if (product == "CP-OH")
		{	Hotproductsqty = document.Hotproductsoh.hotproductsoh_qty.value;
			document.Hotproductsoh.hotproductsoh_qty.focus();
		}
		if (product == "CP-FR")
		{	Hotproductsqty = document.Hotproductsfr.hotproductsfr_qty.value;
			document.Hotproductsfr.hotproductsfr_qty.focus();
		}
		if (product == "CP-TH")
		{	Hotproductsqty = document.Hotproductsth.hotproductsth_qty.value;
			document.Hotproductsth.hotproductsth_qty.focus();
		}
		
		if (product == "CP-HS-A")
		{	Hotproductsqty = document.Hotproductsahs.hotproductsahs_qty.value;
			document.Hotproductsahs.hotproductsahs_qty.focus();
		}
		
		if (product == "CP-OH-A")
		{	Hotproductsqty = document.Hotproductsaoh.hotproductsaoh_qty.value;
			document.Hotproductsaoh.hotproductsaoh_qty.focus();
		}


		
		
		
		
		// validates Hotproductsqty
		if (Hotproductsqty == "" || Hotproductsqty == "")
		{
			alert('Please enter a quantity.');
			return;
		}
		
		isNo = chkForNum(Hotproductsqty);
		if (!isNo)
		{
			alert('Please enter only numeric values');
			return;
		}
		// adds info into cart
		buyItem()
	}

// -->	