function tellafriendcheckfield()
{
	var err="";
	if(ValidatorTrim(document.formmain.tellafriend_sendername.value)=="") 
		err+="You must specify your name.\n";
	if(ValidatorTrim(document.formmain.tellafriend_recepientname.value)=="") 
		err+="You must specify your friend's name.\n";

	if(ValidatorTrim(document.formmain.tellafriend_senderemail.value)=="") 
		err+="You must specify your e-mail address.\n";
	if(document.formmain.tellafriend_senderemail.value!="")
		err += checkEmail(document.formmain.tellafriend_senderemail.value);
	if(ValidatorTrim(document.formmain.tellafriend_recepientemail.value)=="") 
		err+="You must specify your friend's e-mail address.\n";
	if(document.formmain.tellafriend_recepientemail.value!="")
		err += checkEmail(document.formmain.tellafriend_recepientemail.value);
	
	if(ValidatorTrim(document.formmain.tellafriend_recepientname2.value)!="")
	{
		if(ValidatorTrim(document.formmain.tellafriend_recepientemail2.value)=="") 
			err+="You must specify your friend's e-mail address.\n";
		if(document.formmain.tellafriend_recepientemail2.value!="")
			err += checkEmail(document.formmain.tellafriend_recepientemail2.value);
	}
	else if(ValidatorTrim(document.formmain.tellafriend_recepientemail2.value)!="")
	{
		if(ValidatorTrim(document.formmain.tellafriend_recepientname2.value)=="") 
			err+="You must specify your friend's name.\n";
	}

	if(ValidatorTrim(document.formmain.tellafriend_recepientname3.value)!="")
	{
		if(ValidatorTrim(document.formmain.tellafriend_recepientemail3.value)=="") 
			err+="You must specify your friend's e-mail address.\n";
		if(document.formmain.tellafriend_recepientemail3.value!="")
			err += checkEmail(document.formmain.tellafriend_recepientemail3.value);
	}
	else if(ValidatorTrim(document.formmain.tellafriend_recepientemail3.value)!="")
	{
		if(ValidatorTrim(document.formmain.tellafriend_recepientname3.value)=="") 
			err+="You must specify your friend's name.\n";
	}

	if(err!="")
	{
		alert(err);
		return false;
	}
	else
	{
		document.formmain.submited.value="1";
		document.formmain.tellafriend_action.value="send";
		document.formmain.submit();
		return true;
	}
}