	//set the hidden form value to send them to the pay now screens
    function checkKey()
    {
		if (window.event.keyCode == 13)
			document.form_subscribe.email = "";
    }

	function checkEmail(sVal) 
	{
		var newString;
		newString = sVal.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.int)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
		if (!newString)
			return(false);
		else
			return(true);
	}

	function checkUsrEmail(){
		if (!(checkEmail(window.document.form_subscribe.email.value))) {
		alert("Please enter a valid Email Address.");
		window.document.form_subscribe.email.focus();
		return false;
	}
	else return true;
	}

	function isNull(str) {
		if (str.length == 0 ) return true;
		else return false;
	}

	function validateEmail() {
		if (isNull(window.document.form_subscribe.email.value)) {
			alert("Please enter your Email Address.");
			window.document.form_subscribe.email.focus();
		return false;
	}
	else return true;
	}


	function hasBlank(str) {
		for (var i=0; i < str.length; ++i) {
			if (str.charAt(i) == " " ) return true;
		}
		return false;
	}

   function checkSpaces() {
		if (hasBlank(window.document.form_subscribe.email.value)) {
			alert("Please enter a valid Email Address.");	
			window.document.form_subscribe.email.focus();
			return false;
		}
		else return true;
	}
	
	
	function checkForm() {
		return (validateEmail() &&
				checkUsrEmail() &&
				checkSpaces());
	}