function checkItem(item){
var itemId = eval('document.orderForm.vwitem' + item);
var itemQty = eval('document.orderForm.vwquantity' + item + '.value');

	if (itemQty > 0){
	 itemId.checked = true;
	}else{
	 itemId.checked = false;
	}
}
function buyMore(){
	if(document.getElementById('buyMoreDiv').style.visibility == 'hidden'){
	document.getElementById('buyMoreDiv').style.visibility = 'visible'
	document.getElementById('buyMoreDiv').style.display = 'block'
	}else if(document.getElementById('buyMoreDiv').style.visibility == 'visible'){
	document.getElementById('buyMoreDiv').style.visibility = 'hidden'
	document.getElementById('buyMoreDiv').style.display = 'none'
	}
}
function forcedOpts(frm) {
	var sels = frm.getElementsByTagName('select');
	for (var i=0; i<sels.length; i++) {
		var num = sels[i].name.match(/\d+/);
		var qtynum = "quantity-box" + num;
		if ((sels[i].value == "" || sels[i].value == "-" || sels[i].value.match(/^Select/) || sels[i].value.match(/^select/)) && parseInt(document.getElementById(qtynum).value) > 0) {
			alert("Please select an option from the " + sels[i].name.replace(/^vwattr\d+_/,'') + " select box!");
			return false;
		}
	}
}
