function validate(f) {
	var bErrorFound = false;
	var strErrorMsg = 'Please correct the following problems:\n'

	if (f.tQuestion.value.replace(/\s*/g,'').length == 0) {
		strErrorMsg = strErrorMsg + '\n - Your question is required';
		bErrorFound = true;
	}

	if (f.iPrivate.checked && f.vEmail.value.replace(/\s*/g,'').length < 1) {
		strErrorMsg = strErrorMsg + '\n - Your e-mail is required if you want a private response';
		bErrorFound = true;
	}

	if (f.iPrivate.checked && 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.iMailingList.checked && f.vEmail2.value.replace(/\s*/g,'').length < 1) {
		strErrorMsg = strErrorMsg + '\n - Your e-mail is required if you want to join the mailing list';
		bErrorFound = true;
	}

	if (f.iMailingList.checked && f.vEmail2.value.replace(/\s*/g,'').length > 0 && !verifyEmail(f.vEmail2.value)) {
		strErrorMsg = strErrorMsg + '\n - Your e-mail must be a valid e-mail address';
		bErrorFound = true;
	}

	if (bErrorFound == true) {
		alert(strErrorMsg);
		return false;
	} else {		
		return true;	
	}
}
