

function validate()
{
x=document.contact_form
//n = document.anchors

//var radio_choice = false;

name=x.name.value
address1=x.address1.value
city=x.city.value
state=x.state.value
zip=x.zip.value
country=x.country.value
email=x.email.value.indexOf("@")&&x.email.value.indexOf(".")

// payment period
//payment_period=x.payment_period.value
//email=x.email.value

	 if (name.length<1) {alert("Please enter your name"); x.name.focus();return false}
	 if (address1.length<3) {alert("Please enter an address");x.address1.focus();return false}
	 if (city.length<3) {alert("Please enter a city");x.city.focus();return false}
	 if (state.length<2) {alert("Please enter a state");x.state.focus();return false}
	 if (zip.length<5) {alert("Please enter a zip");x.zip.focus();return false}
	 if (country.length<2) {alert("Please enter a country");x.country.focus();return false}
	 if (email == -1) {alert("Please enter a valid email address. Your email address should be in this format: xxx@xxx.com");x.email.focus();return false}
 
	}