function validateform()
{
//name validation
	var name = document.form1.name.value;
	var address1 = document.form1.address1.value;
	var address2 = document.form1.address2.value;
	var city = document.form1.city.value;
	var state = document.form1.state.value;
	//var other = document.form1.other.value;
	var zip = document.form1.zip.value;
	var telephone = document.form1.telephone.value;
	var fax = document.form1.fax.value;
	var email = document.form1.visitoremail.value;
	var website = document.form1.website.value;
	if(name == "")
	{
	alert( "Name field is blank");
	document.form1.name.focus();
	return false;
	}
	if(address1 == "")
	{
	alert("Please Enter your Address");
	document.form1.address1.focus();
	return false;
	}
	if(city == "")
	{
	alert("City field is Blank");
	document.form1.city.focus();
	return false;
	}
	if(state == "" && other == "")
	{
	alert("Select or enter a state");
	document.form1.state.focus();
	return false;
	}

	if(state == "XX")
	{
	if(other == "" )
	{
	alert("Please Enter the other State");
	document.form1.other.focus();
	return false;
	}
	}

	if(other != "")
	{
	if(state != "XX" )
	{
	alert("Please Select Other from the list box then Enter the other State");
	document.form1.state.focus();
	return false;
	}
	}

	if(document.form1.country.selectedIndex <= 0)
	{
	alert("Select or Enter the country");
	document.form1.country.focus();
	return false;
	}
	
	if(document.form1.country.value=="other")
	{
	 if(document.form1.othercountry.value=="")
	 { 
	  alert("Enter Other Country");
	  document.form1.othercountry.focus();
	  return false;
	 }
	 
	}
	if(zip == "")
	{
	alert("Please Enter the Zipcode");
	document.form1.zip.focus();
	document.form1.zip.select();
	return false;
	}
	if(website == "")
	{
	alert("Website field is Blank");
	document.form1.website.focus();
	return false;
	}
	return true;
}
