function CheckForm(f)
{
	outString = "Please add/change the data in the following fields\n\n";
	
	focusSet = 0;
	if((isBlank(document.postcards.toEmail.value)) || (!isEmail(document.postcards.toEmail.value)) || (isBlank(document.postcards.fromEmail.value)) || (!isEmail(document.postcards.fromEmail.value)))
	{
		if(isBlank(document.postcards.toEmail.value))
		{
			
			outString += "-- Recipient's Email Address\n";
			document.postcards.toEmail.focus();
			focusSet = 1;

		}else if(!isEmail(document.postcards.toEmail.value))
		{
			outString += "-- Recipient's Email Address is formed incorrectly\n";
			outString += "    Please use the form: username@domain.com\n\n";
			if(focusSet == 0)
			{
				document.postcards.toEmail.focus();
				focusSet = 1;
			}
		}
		if(isBlank(document.postcards.fromEmail.value))
		{
			
			outString += "-- Your Email Address\n";
			if(focusSet == 0)
			{
				document.postcards.fromEmail.focus();
				focusSet = 1;
			}
		}else if(!isEmail(document.postcards.fromEmail.value))
		{
			outString += "-- Your Email Address is formed incorrectly\n";
			outString += "    Please use the form: username@domain.com\n\n";
			if(focusSet == 0)
			{
				document.postcards.fromEmail.focus();
				focusSet = 1;
			}
		}
		
		alert(outString);
		return false;
	}
	return true;
} 