
function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
  {alert(alerttxt);return false}
else {return true}
}
}

function validate_contact(thisform)
{
 	with (thisform)
 		{
 		if (validate_required(from_email,"Please enter a value for the \"E-mail\" field.")==false)
 			{from_email.focus();return false}
 		}
	
	with (thisform)
 		{
		if (validate_required(from_name,"Please enter a value for the \"Name\" field.")==false)
 			{from_name.focus();return false}
		}
				
 	with (thisform)
 		{
 		if (validate_required(address,"Please enter a value for the \"Address\" field.")==false)
 			{address.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(city,"Please enter a value for the \"City\" field.")==false)
 			{city.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(state_province,"Please enter a value for the \"State Province\" field.")==false)
 			{state_province.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(zip_postal_code,"Please enter a value for the \"Zip Postal Code\" field.")==false)
 			{zip_postal_code.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(country,"Please enter a value for the \"Country\" field.")==false)
 			{country.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(phone,"Please enter a value for the \"Phone\" field.")==false)
 			{phone.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(home_church,"Please enter a value for the \"Home Church\" field.")==false)
 			{home_church.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(fall_semester,"Please enter a value for the \"Fall Semester\" field.")==false)
 			{fall_semester.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(graduation_date,"Please enter a value for the \"Graduation Date\" field.")==false)
 			{graduation_date.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(subject,"Please enter a value for the \"subject\" field.")==false)
 			{subject.focus();return false}
 		}
		
 	with (thisform)
 		{
 		if (validate_required(message,"Please enter a value for the \"message\" field.")==false)
 			{message.focus();return false}
 		}


 }
