function joinform() {
	var FormPath;
	FormPath = document.registration;
	
	if (FormPath.email.value == "") {
		  alert("Your e-mail address is a required field.");
		  FormPath.email.focus();
		  return false;
	} else if (FormPath.email.value.indexOf('@') == -1 || FormPath.email.value.indexOf('.') == -1) {
		  alert("Your e-mail address is not formatted correctly. Please check it and try again.");
		  FormPath.email.focus();
		  return false;
	} else if (FormPath.password.value == "") {
		  alert("Your password is necessary.");
		  FormPath.password.focus();
		  return false;
	} else if (FormPath.password.value != FormPath.password2.value) {
		  alert("The passwords you typed in do not match.");
		  FormPath.password.focus();
		  return false;
	} else if (FormPath.first_name.value == "") {
		  alert("Please enter your first name in the \"First Name\" field.");
		  FormPath.first_name.focus();
		  return false;
	} else if (FormPath.last_name.value == "") {
		  alert("Please enter your last name in the \"Last Name\" field.");
		  FormPath.last_name.focus();
		  return false;
	} else if (FormPath.birthplace.value == "") {
		  alert("Please enter your birthplace in the \"Place of birth\" field.");
		  FormPath.birthplace.focus();
		  return false;
	} else if (FormPath.terms.checked == false) {
		  alert("You must accept the terms and conditions.");
		  FormPath.terms.focus();
		  return false;
	} else if (FormPath.title.value == "") {
		  alert("Please enter your title in the \"Title\" field.");
		  FormPath.title.focus();
		  return false;
	} else if (FormPath.company.value == "") {
		  alert("Please enter your company in the \"Company\" field.");
		  FormPath.company.focus();
		  return false;
	} else if (FormPath.address1.value == "") {
		  alert("Please enter your address in the \"Address\" field.");
		  FormPath.address1.focus();
		  return false;
	} else if (FormPath.city.value == "") {
		  alert("Please enter your city in the \"City\" field.");
		  FormPath.city.focus();
		  return false;
	} else if (FormPath.state.value == "") {
		  alert("Please enter your state in the \"State\" field.");
		  FormPath.state.focus();
		  return false;
	} else if (FormPath.zip.value == "") {
		  alert("Please enter your Postal Code in the \"Postal Code\" field.");
		  FormPath.zip.focus();
		  return false;
	} else if (FormPath.country.value == "") {
		  alert("Please enter your country in the \"Country\" field.");
		  FormPath.country.focus();
		  return false;
	} else {
		if (FormPath.billcompany.value == "") {
			FormPath.billcompany.value = FormPath.company.value;
		}
		if (FormPath.billaddress1.value == "") {
			FormPath.billaddress1.value = FormPath.address1.value;
			FormPath.billcountry.options[FormPath.billcountry.selectedIndex].value = FormPath.country.options[FormPath.country.selectedIndex].value
		}
		if (FormPath.billaddress2.value == "") {
			FormPath.billaddress2.value = FormPath.address2.value;
		}
		if (FormPath.billcity.value == "") {
			FormPath.billcity.value = FormPath.city.value;
		}
		if (FormPath.billstate.value == "") {
			FormPath.billstate.value = FormPath.state.value;
		}
		if (FormPath.billzip.value == "") {
			FormPath.billzip.value = FormPath.zip.value;
		}
		if (FormPath.billphone.value == "") {
			FormPath.billphone.value = FormPath.phone.value;
		}
		if (FormPath.billext.value == "") {
			FormPath.billext.value = FormPath.ext.value;
		}
		if (FormPath.billfax.value == "") {
			FormPath.billfax.value = FormPath.fax.value;
		}
		
		FormPath.submit();
	}
} 
