// $Id: find_tellFriend.js 10219 2011-05-12 09:00:31Z tal $
// Functions to support validation of find_tellFriend

// Variables to be populated in the HTML: 
// none, but valStrings should come from requiredFields.js

// A fall-back to prevent failure in case the function emailCheck doesn't exist.
if (typeof checkEmail == "undefined") {
	function checkEmail () {
		return true;
	}
}

// Conditions for form submission
function submitTellFriend (checkForm) {
	return (checkRequiredFields(checkForm) 
	     && checkEmail (checkForm.email));
}

function submitTellFriendSite (checkForm) {
	return (checkRequiredFields(checkForm) 
	     && checkEmail (checkForm.friendEmail));
}

function submitTellFriendSiteG (checkForm) {
	return (checkRequiredFields(checkForm) 
	     && checkEmail (checkForm.senderEmail)
	     && checkEmail (checkForm.friendEmail));
}


