function validate(f) {
	var bErrorFound = false;
	var strErrorMsg = 'Please correct the following problems:\n'

	//if (f.vTitle.value.replace(/\s*/g,'').length == 0) {
	//	strErrorMsg = strErrorMsg + '\n - Title is required';
	//	bErrorFound = true;
	//}

	if (f.vWrittenBy.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Your name is required';
		bErrorFound = true;
	}

	if (f.vEmail.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Your e-mail is required';
		bErrorFound = true;
	}
 
	if (f.vEmail.value.replace(/\s*/g,'').length > 0 && !verifyEmail(f.vEmail.value)) {
		strErrorMsg = strErrorMsg + '\n - Your e-mail must be a valid e-mail address';
		bErrorFound = true;
	}

	if (f.tStory.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Your story is required';
		bErrorFound = true;
	}

	if (bErrorFound == true) {
		alert(strErrorMsg);
		return false;
	} else {		
		return true;	
	}
}
