<!-- 
	function checkProductForm(formObj)
	{
	
		if(! isInteger(formObj.qty.value) ||  formObj.qty.value == ""){
			alert("Please enter the number of items to add to your cart.");
			formObj.qty.focus();
			return false;
		}
		
		nCount = formObj.optionCount.value;
		
		if( nCount > 0) //be sure the product has options
		{
			if(nCount == 1) //there is only one option on the page
			{

				if(formObj.prodOptionList.options[formObj.prodOptionList.options.selectedIndex].value == "-1")
				{
					alert("The option you selected is not available.\nPlease select a different option.");
					return false;
				}
				else{
					//check to be sure the qty entered by the user is available
					sVal = formObj.prodOptionList.options[formObj.prodOptionList.options.selectedIndex].value;
					sQOH = sVal.substring((sVal.indexOf("|")+1), sVal.length);
					sOptionID = sVal.substring(0, sVal.indexOf("|"))
					
					if(sQOH != "x"){ //if x it means the option does not track inventory
						if( parseInt(formObj.qty.value) > parseInt(sQOH))
						{
							alert("The option you selected is not available in the quantity you entered.\nPlease select a different option.");
							formObj.qty.focus();
							return false;
						}
					}
					//assign the selected product options to the hidden field
					formObj.prodOption.value = sOptionID;
				}
			}
			else //there are mulitple options for the product
			{
				sOptList = "";
				
				for(i=0; i<= nCount-1; i++)
				{
					oSelect = formObj.prodOptionList[i]
					if(oSelect.options[oSelect.options.selectedIndex].value == "-1")
					{
						alert("An option you selected is not available.\nPlease select a different option.");
						oSelect.options.focus();
						return false;
					}
					else{
					
					sVal = oSelect.options[oSelect.options.selectedIndex].value;
					sQOH = sVal.substring((sVal.indexOf("|")+1), sVal.length);
					sOptionID = sVal.substring(0, sVal.indexOf("|"))
					
					if(sQOH != "x"){
						if( parseInt(formObj.qty.value) > parseInt(sQOH))
						{
							alert("An option you selected is not available in the quantity you entered.\nPlease select a different option.");
							formObj.qty.focus();
							return false;
						}
					}
					sOptList += sOptionID + ",";
					
				}
				
				if(sOptList != ""){
					//trim the tailing comma
					sOptList = sOptList.substr(0, sOptList.length-1);
					//assign the selected product options to the hidden field
					formObj.prodOption.value = sOptList;
				}
			}
			}
		}
		
		return true;
	}
	 -->
