function CheckIt() {

	var formName		= document.forms[0].name;
	var	productCount	= eval('document.' + formName + '.productcount');

	if (listProductQtyCheck(productCount.value) == false) return false;
}

function MultipleFormCheckIt(formName) {

	var	productCount	= eval('document.' + formName + '.productcount');

	if (MultipleFormListProductQtyCheck(formName, productCount.value) == false) return false;
}

function CheckForm() {

	var formName		= document.forms[0].name;
	var	productCount	= eval('document.' + formName + '.productcount');

	var	opt1Label		= eval('document.' + formName + '.opt1Label');
	var	opt2Label		= eval('document.' + formName + '.opt2Label');
	var	opt3Label		= eval('document.' + formName + '.opt3Label');
	var	opt4Label		= eval('document.' + formName + '.opt4Label');
	var	opt5Label		= eval('document.' + formName + '.opt5Label');
	var	opt6Label		= eval('document.' + formName + '.opt6Label');

	var CountUp			= 0;
	var validCharacters = "0123456789.";

	for (var n = 0; n < productCount.value; n++) {

		var textBit			= "";
		if (n < 10)			textBit += "0";
		if (n < 100)		textBit += "0";
		textBit				+= n;

		var stringContent	= eval('document.' + formName + '.QTY' + textBit + '.value');

		var	opt1			= eval('document.' + formName + '.OPT1' + textBit);
		var	opt2			= eval('document.' + formName + '.OPT2' + textBit);
		var	opt3			= eval('document.' + formName + '.OPT3' + textBit);
		var	opt4			= eval('document.' + formName + '.OPT4' + textBit);
		var	opt5			= eval('document.' + formName + '.OPT5' + textBit);
		var	opt6			= eval('document.' + formName + '.OPT6' + textBit);

		var	prod			= eval('document.' + formName + '.PROD' + textBit);

		CountUp += (stringContent - 0);

		var j = stringContent.length;

		if (stringContent != "") {

			for (i = 0; i < j; i++) {

				var thisCharacter = stringContent.charAt(i);
				if (validCharacters.indexOf(thisCharacter) == -1) {
					window.alert('One or more of the fields contains invalid characters');
					return false;
				}
			}
			if (opt1) {
				if (stringContent == "0" && opt1.selectedIndex > 0) {
					alert('Please choose a quantity for product ID:'+prod.value);
					return false;
				}
			}
			if (opt2) {
				if (stringContent == "0" && opt1.selectedIndex > 0) {
					alert('Please choose a quantity for product ID:'+prod.value);
					return false;
				}
			}
			if (opt3) {
				if (stringContent === "0" && opt3.selectedIndex > 0) {
					alert('Please choose a quantity for product ID:'+prod.value);
					return false;
				}
			}
			if (opt4) {
				if (stringContent == "0" && opt4.selectedIndex > 0) {
					alert('Please choose a quantity for product ID:'+prod.value);
					return false;
				}
			}
			if (opt5) {
				if (stringContent == "0" && opt5.selectedIndex > 0) {
					alert('Please choose a quantity for product ID:'+prod.value);
					return false;
				}
			}
			if (opt6) {
				if (stringContent == "0" && opt6.selectedIndex > 0) {
					alert('Please choose a quantity for product ID:'+prod.value);
					return false;
				}
			}
		}

		if (opt1) {
			if (stringContent != "0" && opt1.selectedIndex == 0) {
				alert('Please choose a '+opt1Label.value+' for product ID:'+prod.value);
				return false;
			}
		}
		if (opt2) {
			if (stringContent != "0" && opt2.selectedIndex == 0) {
				alert('Please choose a '+opt2Label.value+' for product ID:'+prod.value);
				return false;
			}
		}
		if (opt3) {
			if (stringContent != "0" && opt3.selectedIndex == 0) {
				alert('Please choose a '+opt3Label.value+' for product ID:'+prod.value);
				return false;
			}
		}
		if (opt4) {
			if (stringContent != "0" && opt4.selectedIndex == 0) {
				alert('Please choose a '+opt4Label.value+' for product ID:'+prod.value);
				return false;
			}
		}
		if (opt5) {
			if (stringContent != "0" && opt5.selectedIndex == 0) {
				alert('Please choose a '+opt5Label.value+' for product ID:'+prod.value);
				return false;
			}
		}
		if (opt6) {
			if (stringContent != "0" && opt6.selectedIndex == 0) {
				alert('Please choose a '+opt6Label.value+' for product ID:'+prod.value);
				return false;
			}
		}

	}
	if (CountUp == 0) {
		window.alert('You must select more than 0 items to add to your cart');
		return false;
	}
}


