function isReady(form) {
	if (isFilled(form.Name) === false) {
		alert("Please enter your name and try again.");
		form.Name.focus();
		return false;
	}
	
	if (isFilled(form.Organisation) === false) {
		alert("Please enter the name of your organisation and try again.");
		form.Organisation.focus();
		return false;
	}
	
	if (isFilled(form.Address1) === false) {
		alert("Please enter at least the first line of your address and try again.");
		form.Address1.focus();
		return false;
	}
	
	if (isFilled(form.TownCity) === false) {
		alert("Please enter the town or city of your address and try again.");
		form.TownCity.focus();
		return false;
	}
	
	if (isFilled(form.Postcode) === false) {
		alert("Please enter your postcode and try again.");
		form.Postcode.focus();
		return false;
	}
	
	if (isFilled(form.Telephone) === false) {
		alert("Please enter your telephone number and try again.");
		form.Telephone.focus();
		return false;
	}
	
	if (isFilled(form.Email) === false) {
		alert("Please enter your email address and try again.");
		form.Email.focus();
		return false;
	}
	if (isFilled(form.Email) === true) {
		if (isEmail(form.Email) === false) {
			alert("Your Email address appears to be incorrect. \n\Please check it and try again.");
			form.Email.focus();
			return false;
		}
	}
		return true;
	}

// check for null and for empty
function isFilled(elm) {
	if (elm.value === "" || elm.value === null) {
		return false;
	}
	else {
		return true;
	}
}

// check for Email addy: looking for [@] & [.]
function isEmail(elm) {
	if (elm.value.indexOf("@") != "-1" && elm.value.indexOf(".") != "-1" && elm.value != " ") {
		return true;
	}
	else {
		return false;
	}
}
