
function validateOrderInvoice()
{
x=document.getElementById('form1')
//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
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 (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}
	}
	

function validateContact()
{
x=document.getElementById('form1')
//n = document.anchors

//var radio_choice = false;

Name=x.Name.value
/*phone=x.phone.value
address1=x.address1.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}
	}
	

function validatePetition()
{
x=document.getElementById('form1')
//n = document.anchors

//var radio_choice = false;

Name=x.Name.value
Address=x.Address.value
/*address1=x.address1.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 (Address.length<3) {alert("Please enter an address");x.Address.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}*/
	}
