function trim(cText) {
	while (cText.substring(0,1) == ' ') { cText = cText.substring(1,cText.length); }
	while (cText.substring(cText.length-1,cText.length) == ' ') { cText = cText.substring(0,cText.length-1); }
	return cText;
}
function emailCheck(f) {
	var filter=/^.+@.+\..{2,4}$/;
	var em = trim(f.youremail.value);
	var bd = trim(f.content.value);
	
	if (em.length == 0) {
		alert('Please enter an email address');
		return false;
	} else if (!filter.test(em)) {
		alert('Please enter a VALID email address or we will be unable to reply to you');
		return false;
	} else if (bd.length == 0) {
		alert('Please enter a message');
		return false;
	} 
	
		
	return true;
}
