function testOpt(theOpt,theName) {
	if (theOpt.selectedIndex == 0 && theOpt.options[theOpt.selectedIndex].text.indexOf('Choose')!=-1) {
		alert('Please choose a '+theName);
		return false;
	}
}
function CheckForm(f)
{
	with (f)
	{
		var CountUp		= 0;

		for (i = 0; i < productcount.value; i++)
		{
			qty 			= eval('f.QTY'+i);
			var	opt1 		= eval('f.OPT1'+i);
			var	opt2 		= eval('f.OPT2'+i);
			var	opt3 		= eval('f.OPT3'+i);
				
			if (opt1) { if (testOpt(opt1, opt1Label.value) == false) return false; }
			if (opt2) { if (testOpt(opt2, opt2Label.value) == false) return false; }
			if (opt3) { if (testOpt(opt3, opt3Label.value) == false) return false; }

			if (qty.value.length > 0)
			{
				if (isNaN(qty.value/2))
				{
					window.alert('One or more of the fields contains invalid characters');
					return false;
				}
			}
			CountUp += (qty.value - 0);
		}
		if (qty.value < 0)
		{
			alert('Surprisingly you cannot purchase a negative number of items');
			return false;
		}
		if (CountUp == 0)
		{
			window.alert('You must select more than 0 items');
			return false;
		}
	}
}