	//create product class
	function product(sku,title, text, color, size, price, origPrice, pic, qty, ignoreQty){
		this.sku=sku;
		this.title=title;
		this.text=text;
		this.color=color;
		this.size=size;
		this.price=price;
		this.origPrice=origPrice;
		this.pic=pic;
		this.qty=qty;
		this.ignoreQty=ignoreQty;
	}
	// function for zoom shot popup
	function zoom(pic){
		var zoomWin = null;
		if(!zoomWin || zoomWin.closed){
			zoomWin=window.open('zoomshot.cfm?pic='+pic, 'zoomWin', 'left=30, top=30, screenx=30, screeny=30, toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=yes, width=600, height=725');
			zoomWin.focus();
		}
	}
	//function for customizing notes popup
	function custNote(theType){
		eval('tempNote=note'+theType);
		noteShown=eval('note'+theType+'Shown');
		if (!noteShown)alert(tempNote);
		eval('note'+theType+'Shown=1');
	}
	// function to change content based on selection
	function changeSelection(sku){
		for (i=1; i<prodArray.length; i++){
			if(prodArray[i].sku==sku)prodNum=i;
		}
		if(typeof prodNum=='undefined')prodNum=-1;
		if(document.getElementById && typeof document.getElementById("priceDiv").innerHTML != 'undefined' && prodNum>=0){
			chosenProd=prodNum;
			if(prodArray[chosenProd].origPrice!='' && prodArray[chosenProd].origPrice > 0) priceToWrite="<span style='font-weight:bold;'>Price:</span> <span style='text-decoration: line-through;'>"+ dollarFormat(prodArray[chosenProd].origPrice)+"</span> <span style='color:#DA1B28;'>"+ dollarFormat(prodArray[chosenProd].price)+"</span>";
			else priceToWrite="<span style='font-weight:bold;'>Price:</span> "+ dollarFormat(prodArray[chosenProd].price);
			textToWrite="<span style='font-weight:bold;'>Description:</span> "+prodArray[chosenProd].text;
			document.getElementById("priceDiv").innerHTML = priceToWrite;
			document.getElementById("textDiv").innerHTML = textToWrite;
			document.getElementById("prodShot").src = "../product_shots/thumbnails/"+prodArray[chosenProd].pic+".jpg";
		}
		else location="details-06.cfm?sku="+sku;
	}
	// validate submit
	function validateSubmit(){
		if(prodArray[chosenProd].qty < document.addForm.quantity.value && prodArray[chosenProd].ignoreQty < 1){
			document.addForm.quantity.value=prodArray[chosenProd].qty;
			confirmQty = confirm("There are currently only "+prodArray[chosenProd].qty+" of these in stock. We've changed the quantity you're adding to your cart to that amount. Click cancel if you no longer wish to add this item to your cart.");
		}
		else confirmQty=1;
		if(!confirmQty) return false;
		//do regular exp tests
		quantityREString="[^0-9]";
		quantityRE=new RegExp(quantityREString);
		if(quantityRE.test(document.addForm.quantity.value)){
			alert("Please only enter numbers into the quantity field!");
			return false;
		}
		//confirm customizing if necessary
		tempName=document.addForm.cName.value;
		tempNumber=document.addForm.cNumber.value;
		for(i=0; i < document.addForm.cType.length; i++){
			if(document.addForm.cType[i].checked) tempType = document.addForm.cType[i].value;
		}
		if (typeof tempType == 'undefined') tempType='';
		if((tempName != '' || tempNumber!='') && tempType =='')confirmCust=confirm("No customizing will be applied to this item; you have not specified the type of customizing to apply. Add item to cart anyway?");
		else if(tempType!='' && tempName=='' && tempNumber=='')confirmCust=confirm("No customizing will be applied to this item; you have not specified a name or number to apply. Add item to cart anyway?");
		else confirmCust=1;
		if(!confirmCust)return false;
	}