function validate(f)
{
	var ok;
	ok = true;
	if (f.n.value.length == 0) {
		f.n.style.borderColor = '#ff0000';
		ok = false;
	}
	if (f.e.value.length == 0) {
		f.e.style.borderColor = '#ff0000';
		ok = false;
	}
	if (f.m.value.length == 0) {
		f.m.style.borderColor = '#ff0000';
		ok = false;
	}
	if (!ok) {
		document.getElementById('ep').innerHTML = '<strong>Your message could not be sent.</strong> Please complete all the fields highlighted in <span style=\"color: #f00\">red</span>, then try again.';
		return false;
	}
	return true;
}

function resetborder(o)
{
	if (o.value.length > 0) { 
		o.style.borderColor = '#aaaaaa';
	}
	return true;
}

