	

	//Open new window for the coupon:
	function printCoupon() {
		window.open('/coupon_print.asp','Coupon','width=500,height=480');
	}
	
	//-------------------------------------
	// Set the style when focusing on a certain element
	function setInputStyle(elem,theStyle) {
		if (elem) {
			elem.className = theStyle;
		}
	}
	
	

	//-------------------------------------
	// Very simple (not thorough) form validation check:
	function validateContactForm(){
	theForm = document.forms.contactForm;
	var flagged = false;
		if (theForm) {
			if (theForm.txtName.value == "" || theForm.txtEMail.value == "" || theForm.txtSubject.value == "" || theForm.txtMessage.value == "") {
				
				//show the message
				alert('Your message cannot be sent until you fill in all information in this form.\n\nPlease review the information then try again.');
			
				//now set the focus on the errant field:
				if (theForm.txtName.value == "") { theForm.txtName.focus(); flagged = true; }
				if (theForm.txtEMail.value == "" && !flagged) { theForm.txtEMail.focus(); flagged = true; }
				if (theForm.txtSubject.value == "" && !flagged) { theForm.txtSubject.focus(); flagged = true; }
				if (theForm.txtMessage.value == "" && !flagged) { theForm.txtMessage.focus(); flagged = true; }
				
				return false;
				
			}
			else
			{
				theForm.submit();
			}
		}
	}
	
	