function checkForm(theForm) {
	if (IsBlank(theForm.name)) {
		alert("Please enter your name");
		theForm.name.focus();
		return false;
	}
		if (IsBlank(theForm.email) || IsEmail(theForm.email)) {
		alert("Please enter your email address");
		theForm.email.focus();
		return false;
	}
		if (IsBlank(theForm.address)) {
		alert("Please enter your address");
		theForm.address.focus();
		return false;
	}
	if (IsBlank(theForm.tel)) {
		alert("Please enter your telephone number");
		theForm.tel.focus();
		return false;
	}
	if (IsBlank(theForm.comments)) {
		alert("Please enter your query");
		theForm.comments.focus();
		return false;
	}
	return true
}
function IsBlank(theInput) {
	if (theInput.value == "") {
		return true
	}
	return false
}
function IsEmail(theInput) {
	if (theInput.value.indexOf('@') == -1 || theInput.value.indexOf('.') == -1 ) {
		return true
	}
	return false
}

