function validate(){
	
	if (document.goldkit.first_name.value == ""){
		document.goldkit.first_name.value = "Please enter your first name";
		document.goldkit.first_name.style.borderColor = '#ff0000';
		return false;
	}
	
	if (document.goldkit.last_name.value == ""){
		document.goldkit.last_name.value = "Please enter your last name";
		document.goldkit.last_name.style.borderColor = '#ff0000';
		return false;
	}
	
	if (document.goldkit.address1.value == ""){
		document.goldkit.address1.value = "Please enter your adress";
		document.goldkit.address1.style.borderColor = '#ff0000';
		return false;
	}
	
	if (document.goldkit.city.value == ""){
		document.goldkit.city.value = "Please enter city";
		document.goldkit.city.style.borderColor = '#ff0000';
		return false;
	}
	
	if (document.goldkit.state.value == "" || document.goldkit.state.value == "Select One"){
		
		document.goldkit.state.style.borderColor = '#ff0000';
		
		return false;
	}
	
	var zip_replace = document.goldkit.zipcode.value.replace(/[\(\)\.\-\ ]/g, '');   
	
	if (document.goldkit.zipcode.value == ""){
		document.goldkit.zipcode.value = "Please enter zip code";
		document.goldkit.zipcode.style.borderColor = '#ff0000';
		return false;
	}
	
	if(document.goldkit.zipcode.value.length != 5) {
		
		document.goldkit.zipcode.value = "Please enter valid zip code";
		document.goldkit.zipcode.style.borderColor = '#ff0000';
		return false;
	}
	
	if(isNaN(parseInt(zip_replace))) {
		
		document.goldkit.zipcode.value = "Please enter valid zip code";
		document.goldkit.zipcode.style.borderColor = '#ff0000';
		return false;
	}
	
	var phone_replace = document.goldkit.phone.value.replace(/[\(\)\.\-\ ]/g, '');   

	if(isNaN(parseInt(phone_replace))) {
		
		document.goldkit.phone.value = "Please enter valid phone";
		document.goldkit.phone.style.borderColor = '#ff0000';
		return false;
	}
	
	if(document.goldkit.phone.value == "") {
		
		document.goldkit.phone.value = "Please enter phone number";
		document.goldkit.phone.style.borderColor = '#ff0000';
		return false;
	}
	
	if (document.goldkit.email.value == ""){
		document.goldkit.email.value = "Please enter E-mail";
		document.goldkit.email.style.borderColor = '#ff0000';
		return false;
	}
	
	if (document.goldkit.email.value.indexOf("@", 0) < 0){
		document.goldkit.mail.value = "Please enter valid E-mail";
		document.goldkit.mail.style.borderColor = '#ff0000';
		return false;
	}
	
	if (document.goldkit.passwd.value == ""){
		
		document.goldkit.passwd.style.borderColor = '#ff0000';
		alert("Pelase enter your password");
		return false;
	}
	
	if (document.goldkit.passwd.value.length < 3 && document.goldkit.passwdv.value.length < 3 && document.goldkit.passwdv.value == document.goldkit.passwd.value){
		
		document.goldkit.passwd.style.borderColor = '#ff0000';
		document.goldkit.passwdv.style.borderColor = '#ff0000';
		alert("Your password must be at least 4 characters long");
		return false;
	}
	
	if (document.goldkit.passwdv.value != document.goldkit.passwd.value || document.goldkit.passwdv.value == ""){
		
		document.goldkit.passwdv.style.borderColor = '#ff0000';
		alert("Your password and password confirmation do not match. Please re-enter this information.");
		return false;
	}
	
	if(document.goldkit.check.checked != true){
		
		alert("Please confirm that you are agree to Terms of Service and Privacy Policy");
		
		return false;
	}
	
return true;
}

