function validateReview(f, bookTitle, sitePrefix) {
	var bErrorFound = false;
	var strErrorMsg = 'Please correct the following problems:\n';
	var spTitle = '';

	if (!f.profStud[0].checked && !f.profStud[1].checked) {
		strErrorMsg = strErrorMsg + '\n - Select if you are a Professor or Student';
		bErrorFound = true;
	}

	if (f.profStud[0].checked) {
		spTitle = 'Professor';

		if (f.prof_name.value == '') {
			strErrorMsg = strErrorMsg + '\n - Name is required';
			bErrorFound = true;			
		}
		if (f.prof_school.value == '') {
			strErrorMsg = strErrorMsg + '\n - School is required';
			bErrorFound = true;			
		}
		if (f.prof_courses.value == '') {
			strErrorMsg = strErrorMsg + '\n - Courses Taught is required';
			bErrorFound = true;			
		}		
		if (f.prof_email.value == '') {
			strErrorMsg = strErrorMsg + '\n - Email Address is required';
			bErrorFound = true;			
		}		
	}
	
	if (f.profStud[1].checked) {
		spTitle = 'Student';		
		
		if (f.stud_name.value == '') {
			strErrorMsg = strErrorMsg + '\n - Name is required';
			bErrorFound = true;			
		}
		if (f.stud_school.value == '') {
			strErrorMsg = strErrorMsg + '\n - School is required';
			bErrorFound = true;			
		}
		if (f.stud_year.value == '') {
			strErrorMsg = strErrorMsg + '\n - Year in School is required';
			bErrorFound = true;			
		}		
		if (f.stud_email.value == '') {
			strErrorMsg = strErrorMsg + '\n - Email Address is required';
			bErrorFound = true;			
		}			
	}
	
	if (f.comments.value == '') {
		strErrorMsg = strErrorMsg + '\n - Your Comments are required';
		bErrorFound = true;			
	}

	if (f.vCode.value == '') {
		strErrorMsg = strErrorMsg + '\n - Verification Code required';
		bErrorFound = true;			
	}

	if (bErrorFound == true) {
		alert(strErrorMsg);
		return false;
	} else {		
		cmCreatePageviewTag(sitePrefix + ":Comment on this Book:" + bookTitle, sitePrefix + ":PRODUCT:" + bookTitle, null, null, "-_--_--_--_--_--_--_--_--_-" + spTitle);
		return true;
	}
}

function showProf() {
	var elProf, elStud;
	elProf = document.getElementById('prof');
	elStud = document.getElementById('stud');
	
	elProf.style.display = '';
	elStud.style.display = 'none';
}

function showStud() {
	var elProf, elStud;
	elProf = document.getElementById('prof');
	elStud = document.getElementById('stud');
	
	elProf.style.display = 'none';
	elStud.style.display = '';
}
