// Verify form field submissions of required fields before submission
<!--
function validate() {
	
	var themessage = "Please complete the following fields:\n";
	var str = "";
	
	if (document.tellFriendForm.f_friends_name.value=="") {
		themessage = themessage + "- Friend's Name\n";
	}
	if (document.tellFriendForm.f_friends_email.value=="") {
		themessage = themessage + "- Friend's Email Address\n";
	}
	if (document.tellFriendForm.f_your_name.value=="") {
		themessage = themessage + "- Your Name\n";
	}
	if (document.tellFriendForm.f_your_email.value=="") {
		themessage = themessage + "- Your Email Address\n";
	}
	//alert if fields are empty and cancel form submit
	if (themessage == "Please complete the following fields:\n") {
		document.tellFriendForm.submit();
	}
	else {
		alert(themessage);
	return false;
	   }
	}
//-->
