// JavaScript Document
	
function checkOut(passform)
	{
		if(passform.x_first_name.value == "")
				{
				alert("You need to enter your first name")
				passform.x_first_name.focus()
				return false
				}
		if(passform.x_last_name.value == "")
				{
				alert("You need to enter your last name")
				passform.x_last_name.focus()
				return false
				}
		if(passform.x_address.value == "")
				{
				alert("You need to enter your address")
				passform.x_address.focus()
				return false
				}
		if(passform.x_city.value == "")
				{
				alert("You need to enter your city")
				passform.x_city.focus()
				return false
				}
				
		if(passform.x_state.value == "")
				{
				alert("You need to enter your state")
				passform.x_state.focus()
				return false
				}
				
		if(passform.x_zip.value == "")
				{
				alert("You need to enter your zip")
				passform.x_zip.focus()
				return false
				}
		else if(passform.x_country.value == "United States")
				{
				//alert("You must add the proper state abbreviation")
					var state_length = passform.x_state.value.length
					if(state_length <2)
						{
						alert("You must add the proper state abbreviation")
						passform.x_state.focus()
						return false
						}
				
				}
		else if(passform.x_country.value == "other")
				{
				
					if(passform.other_country.value == "")
						{
							alert("You must add your country");
							passform.other_country.focus()
							return false
						}
				}
				
		if(passform.x_phone.value == "")
				{
				alert("You need to enter a phone number")
				passform.x_phone.focus()
				return false
				}
		
		
		/*if(passform.use_ship.value == "on")
			{
			
				if(passform.x_ship_to_address.value == "")
						{
						alert("You need to enter your address")
						passform.x_ship_to_address.focus()
						return false
						}
				if(passform.x_ship_to_city.value == "")
						{
						alert("You need to enter your city")
						passform.x_ship_to_city.focus()
						return false
						}
				
				if(passform.x_ship_to_state.value == "")
						{
						alert("You need to enter your state")
						passform.x_ship_to_state.focus()
						return false
						}
				
				if(passform.x_ship_to_zip.value == "")
						{
						alert("You need to enter your zip")
						passform.x_ship_to_zip.focus()
						return false
						}	
			
			
		}
		else
		{
				if(passform.x_ship_to_address.value == "")
				{
					alert("You need to check the box for the shipping address for us to ship to this address")
					passform.x_ship_to_address.focus()
					return false
				}
		}*/		
		
		
		
		
		
		if(passform.x_email.value == "")
				{
				alert("You need to enter an email address")
				passform.x_email.focus()
				return false
				}
		else
				{
					var x = passform.x_email.value;
					var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
							if (filter.test(x)) 
									{
										//document.paypal_form.submit();
										return true
									}
							else 
									{
										alert('Enter a valid email address. We will never give this out to anybody');
										passform.x_email.value="";
										passform.x_email.focus();
										return false
									}
				}
				
		
				
		
	}
	
