			function openCart(productCode, productType, i)
			{

				var returnPageName = "/StoreAction.do";

				var pathName = window.location.pathname;

				//alert(pathName.substring(0, returnPageName.length)); return;

				//alert("name = ");
				//return;

				if (pathName.substring(0, returnPageName.length) != returnPageName)
					returnPageName = pathName;
				else
				{
				 	var productCategory = request("productCategory");
				 	var formatId = request("formatId");
				 	var prodCode = request("productCode");
					if (productCategory != null)
						returnPageName += "?productCategory=" + request("productCategory");
					else
					if (formatId != null)
						returnPageName += "?formatId=" + request("formatId");
					else
					if (prodCode != null)
						returnPageName += "?productCode=" + request("productCode");
						
				}


				//alert(returnPageName); return;

				
				var loc = "http://www.ccnow.com/cgi-local/cart.cgi?chrisi_" + productCode;


				if (productType == "2")
				{
					if (document.StoreForm.sizeId[i].selectedIndex == 0)
					{
						alert("Must select size");
						document.StoreForm.sizeId[i].focus();
						return;
					}

					loc += "-" + document.StoreForm.sizeId[i][document.StoreForm.sizeId[i].selectedIndex].value;
				}

				loc += "_www.insubordinationrecords.com" + returnPageName;
				//alert("loc = " + loc); return;

				window.location = loc;
			}

			function updateCart(productCode, productType, i, productId)
			{
				var loc = "Cart.jsp?addProductId=" + productId;

				if (productType == "2")
				{
					if (document.StoreForm.sizeId[i].selectedIndex == 0)
					{
						alert("Must select size");
						document.StoreForm.sizeId[i].focus();
						return;
					}

					loc += "&addSize=" + document.StoreForm.sizeId[i][document.StoreForm.sizeId[i].selectedIndex].value + "&addProductCode=" + productCode;
				}

				window.location = loc;
			}

			function openWindow(hyperlink)
			{
				window.open(hyperlink);
			}