function validate_radio()
{
	var radio_choice =false;
	var radios = document.getElementsByName("choice")
	for (counter = 0; counter < radios.length; counter++)
	{
		if (radios[counter].checked)
			radio_choice = true; 
	}

	if (!radio_choice)
	{
		window.alert("Please select a Postcard.")
		return (false);
	}
	return (true);
}

function validate_email()
{
	x = document.pcardf
	at = x.to.value.indexOf("@")
	at2 = x.from.value.indexOf("@")
	if( at == -1  || at2 == -1)
	{
		alert("You've entered an invalid E-mail address." + '\n' + "Please recheck spelling.")
		return false
	}
	return true
}

function validate_name()
{
	x = document.pcardf
	len = x.postext.value.length
	if( len == 0 )
	{
		alert("You've not entered a message." + '\n' + "Please enter a a message.")
		return false
	}
	return true
}

function validate()
{
	if(validate_name() && validate_email() && validate_radio())
		{return true}
	else
		return false
			
}