function validate_email(email)
{
   	var emailExp;
	emailExp = /^[a-z_0-9\.\-]+@[a-z_0-9\.\-]+\.[a-z]+/i
	if (emailExp.test(email)==false)
	{
		return false;
	}
	return true;
}

function validateForm()
{

	var fname=document.signup_form.fname.value;
	var lname=document.signup_form.lname.value;
	var address=document.signup_form.address.value;
	var zip=document.signup_form.zip.value;
	var city=document.signup_form.city.value;
	var state=document.signup_form.state.value;
	var country=document.signup_form.country.value;
	var password=document.signup_form.password.value;
	var email=document.signup_form.email.value;
	var checked=document.signup_form.agree.checked;

	if (fname=="")
	{
		alert('You must specify a first name to go on !');
		return false;
	}	

	if (lname=="")
	{
		alert('You must specify a last name to go on !');
		return false;
	}

	if (address=="")
	{
		alert('You must specify an address to go on !');
		return false;
	}

	if (zip=="")
	{
		alert('You must specify a zip to go on !');
		return false;
	}

	if (city=="")
	{
		alert('You must specify a city to go on !');
		return false;
	}

	if (state=="")
	{
		alert('You must specify a state to go on !');
		return false;
	}

	if (country=="")
	{
		alert('You must specify a country to go on !');
		return false;
	}

	if (password=="")
	{
		alert('You must specify a password to go on !');
		return false;
	}

	if (email=="")
	{
		alert('You must specify an email to go on !');
		return false;
	}

	if (!validate_email(email))
	{
		alert('You must specify a valid email to go on !');
		return false;		
	}

	if (checked)
	{
		return true;
	}
	else
	{
		alert('You must agree to our terms and conditions to go on !');
		return false;
	}
}
