function validateFullCoupon() {
	var coupon = document.getElementById("coupon");
	var date = document.getElementById("expiration");
	var cvv = document.getElementById("cvv");
	
	if (coupon.value == "" || coupon.value.length < 16) {
		alert("Coupon number must be 16 digits in length");
		coupon.focus();
		return false;
	}
	if (date.selectedIndex == 0) {
		alert("Please select a valid expiration date");
		date.focus();
		return false;
	}
	if (cvv.value == "" || cvv.value.length < 3) {
		alert("Please enter a valid 3 digit code from the back of your coupon card");
		cvv.focus();
		return false;
	}

	if (!isNumeric(coupon.value)) {
		alert("Coupon number must be only numeric characters");
		coupon.focus();
		return false;
	}
	if (!isNumeric(cvv.value)) {
		alert("3 digit code must be only numeric characters");
		cvv.focus();
		return false;
	}
	
	document.couponForm.submit();	
}

function isNumeric(num) {
	return /^-?\d+$/.test(num);
}

function noenter() {
  return !(window.event && window.event.keyCode == 13); 
}
