function isBlank(theString) {
	var result = true;
	if (theString != "") {
		for (x=0; x<theString.length; x++) {
			var theChar = theString.charAt(x);
			if (theChar != " ") {
				result = false;
				break;
			}
		}
	}
	return result;
}

function validateForm() {
	var result = true;
    var nameBlank = isBlank(document.frmContact.txtName.value);
	if (nameBlank) {
		alert("Please enter your name so we can respond to your request.");
        document.frmContact.txtName.focus();
		result = false;
	} else {
		if (isBlank(document.frmContact.txtEmail.value) && isBlank(document.frmContact.txtPhone.value)) {
			alert("Please enter either your phone number or your email address so we can respond to your request.");
            document.frmContact.txtPhone.focus();
		    result = false;
		}
	}
	return result;
}
