function checkEmail(str){
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	if (filter.test(str)){	return true;	}else{		return false;	}
}

function valSubscribe(theForm){
	if (theForm.firstname.value==""){ 
		alert("Please enter your First Name."); 
		theForm.firstname.select();
		return false;
	}
	if (theForm.lastname.value==""){ 
		alert("Please enter your Last Name."); 
		theForm.lastname.select();
		return false;
	}	
	if (theForm.email.value==""){ 
		alert("Please enter your Email Address."); 
		theForm.email.select();
		return false;
	}
	if (checkEmail(theForm.email.value)==false){	
		alert("Please make sure that your Email Address is a valid email."); 
		theForm.email.select();
		return false; 
	}
	if (theForm.chkAge.checked == false){
		alert("You must be 18 years and above to subscribe");
		return false;
	}
	return true;
}