
<!--
var msg="";
var haveerrors=0;

function check_friend_info()
{
	haveerrors=0;
	msg="";

	var source_email = document.friend_form.source_email.value;
	var msg_subject = document.friend_form.msg_subject.value;
	var f_toemail = document.friend_form.f_toemail.value;
	var s_toemail = document.friend_form.s_toemail.value;
	var t_toemail = document.friend_form.t_toemail.value;



	isValidEmailAddress(trim(source_email));
	
	if (s_toemail.length > 0)
	{
		isValidEmailAddress(trim(s_toemail));
	}
	
	if (t_toemail.length > 0)
	{
		isValidEmailAddress(trim(t_toemail));
	}
	
	isValidEmailAddress(trim(f_toemail));
	


	if (haveerrors)
	{
		if (msg!="")
		{
			showErrorMsg(msg);
		}
		return false;
	}

	return true;
}
//-->
