function ContactDetailsValidator(theForm)
{
	var strReason = "";

	strReason += validateEmpty(theForm.name, "name");
	strReason += validateEmpty(theForm.address, "address");
	strReason += validateEmpty(theForm.pcode, "postcode");

	if (strReason != "") {
		alert("Sorry, we need a little more information...\n\n" + strReason);
		return false;
	}

	return true;
}

function validateEmpty(fldFieldField, strFriendlyName) {
	var error = "";

	if (fldFieldField.value.length == 0) {
		fldFieldField.style.background = '#84c441'; 
		error = " - Please fill in your " + strFriendlyName + "\n"
	} else {
		fldFieldField.style.background = 'White';
	}
	return error;   
}
