<!--
function chkNewReg (f) {

	if (isBlank(f.Title.value) || (f.Title.value == 'Please Select...')) {
		alert("Your title must be entered");
		f.Title.focus();
		return false;
	}
	
	if (isBlank(f.Forename.value)) {
		alert("Your first name must be entered");
		f.Forename.focus();
		return false;
	}

	if (isBlank(f.Surname.value)) {
		alert("Your surname must be entered");
		f.Surname.focus();
		return false;
	}
	
	if (isBlank(f.Email.value)) {
		alert("The email address must be entered");
		f.Email.focus();
		return false;
	}

	if(!isEmail(f.Email.value)) {
		alert("The email address is not in the correct format");
		f.Email.focus();
		return false;
	}
	if (isBlank(f.LoginPassword.value)) {
		alert("You must enter a password");
		f.LoginPassword.focus();
		return false;
	}

	if (isBlank(f.ConfirmPassword.value)) {
		alert("You must confirm your password");
		f.ConfirmPassword.focus();
		return false;
	}

	if ((f.LoginPassword.value) != (f.ConfirmPassword.value)) {
		alert("Your passwords must match!");
		f.LoginPassword.focus();
		return false;
	}

	if (isBlank(f.PhoneNumber.value)) {
		alert("You must enter your phone number");
		f.PhoneNumber.focus();
		return false;
	}

	if (f.Interest1.checked == false) {
		alert("You must confirm you're 18 or over");
		f.Interest1.focus();
		return false;
	}

	if (f.Country.value == 'UK:United Kingdom') {
		if (isBlank(f.FindDeliveryAddressCheck.value)) {
			alert("You must enter a valid address, please use the 'Find Address' option.");
			f.DeliveryLine1.focus();
			return false;
		} else {
			if (isBlank(f.DeliveryAddress1.value)) {
				alert("You must enter the first line of your address");
				f.DeliveryAddress1.focus();
				return false;
			}
			if (isBlank(f.DeliveryAddress4.value)) {
				alert("You must enter the town in which you live");
				f.DeliveryAddress4.focus();
				return false;
			}
			if (isBlank(f.DeliveryAddress6.value)) {
				alert("You must enter the postcode in which you live");
				f.DeliveryAddress6.focus();
				return false;
			}
			if (!isPostcode(f.DeliveryAddress6.value)) {
				alert("The postcode is not valid");
				f.DeliveryAddress6.focus();
				return false;
			}		
		}
	}

	return chkStandardFields(f);
}

function chkStandardFields (f) {

	if (isBlank(f.Email.value)) {
		alert("The email address must be entered");
		f.Email.focus();
		return false;
	}

	if(!isEmail(f.Email.value)) {
		alert("The email address is not in the correct format");
		f.Email.focus();
		return false;
	}

	return true;
}

-->