UserInputForm = function() {}

UserInputForm.prototype.isEmailShareValidated = function()
{
		isValid = ($F('user_email').isValidEmailAddress() && $F('friend_email').isValidEmailAddress()); 
		if (!isValid)
		{
			alert('Please enter valid email addresses.');
			return false;
		}
		if ($F('user_name').isEmpty() || $F('friend_name').isEmpty())
		{
			alert('Please fill out all of the fields.');
			return false;
		}
		return true;
}

UserInputForm.prototype.isEpisodeReminderValidated = function()
{
		if (!$F('email').isValidEmailAddress())
		{
			alert('Please enter a valid email address.');
			return false;
		}
		if ($F('name').isEmpty())
		{
			alert('Please enter your name.');
			return false;
		}
		return true;
}
