function valButton(btn) {
    var cnt = -1;
    for (var i=btn.length-1; i > -1; i--) {
        if (btn[i].checked) {cnt = i; i = -1;}
    }
    if (cnt > -1) return btn[cnt].value;
    else return null;
}

function postProject(form) {
	

	if (valButton(form.options_strategic) == null) {
		alert('(1) Please rate the Phase 1 strategic options ');
		form.options_strategic[5].focus();
		return false
	}
	
	if (valButton(form.options_creative) == null) {
		alert('(1) Please rate the phase 1 creative options ');
		form.options_creative[5].focus();
		return false
	}
	
	if (valButton(form.subsequent_phases_strategic) == null) {
		alert('(2) Please rate whether the subsequent Phase was on-target strategically. ');
		form.subsequent_phases_strategic[5].focus();
		return false
	}
	
	if (valButton(form.subsequent_phases_creative) == null) {
		alert('(2) Please rate whether the subsequent Phase was on-target creatively. ');
		form.subsequent_phases_creative[5].focus();
		return false
	}
	
	if (valButton(form.requirements_strategic) == null) {
		alert('(3) Please rate whether the approved design(s) met your requirements strategically. ');
		form.requirements_strategic[5].focus();
		return false
	}
	
	if (valButton(form.requirements_phases_creative) == null) {
		alert('(3) Please rate whether the approved design(s) met your requirements creatively. ');
		form.requirements_phases_creative[5].focus();
		return false
	}
	
	if (valButton(form.visual_components) == null) {
		alert('(4) Please rate whether the photography, illustration and other visual components were created to meet your requirements. ');
		form.visual_components[5].focus();
		return false
	}
	
	if (valButton(form.requirements_technical) == null) {
		alert('(5) Please rate whether the final artwork handed over to the filmmaker/printer was accurate and met their technical requirements.');
		form.requirements_technical[5].focus();
		return false
	}
	
	if (valButton(form.requirements_schedule) == null) {
		alert('(6) Please rate whether the project schedule from Davis met your requirements?');
		form.requirements_schedule[5].focus();
		return false
	}
	
	if (valButton(form.timely_revisions) == null) {
		alert('(7) Please rate whether the design revisions were completed in a thorough and timely manner.');
		form.timely_revisions[5].focus();
		return false
	}
	
	if (valButton(form.director_service) == null) {
		alert('(8) Please rate whether the service from the account director met your requirements.');
		form.director_service[5].focus();
		return false
	}
	
	if (valButton(form.informed) == null) {
		alert('(9) Please rate whether the account director and the account team kept you informed of project status.');
		form.informed[5].focus();
		return false
	}
	
	if (valButton(form.communication) == null) {
		alert('(10) Please rate whether the account director and the account team communicated with you or other resources (translator, filmmaker, printer, etc) to ensure clarity and common understanding of details.');
		form.communication[5].focus();
		return false
	}
	
	if (valButton(form.communication_level) == null) {
		alert('(11) Please rate whether the level of communication.');
		form.communication_level[5].focus();
		return false
	}
	
	if (valButton(form.reasonable_cost) == null) {
		alert('(12) Please rate whether the cost was reasonable and represented good value for the work completed.');
		form.reasonable_cost[5].focus();
		return false
	}
	
	if (valButton(form.recommend) == null) {
		alert('(13) Please rate how likely is it that you would recommend this company to a friend or colleague.');
		form.recommend[5].focus();
		return false
	}
	
	if (form.captchaText.value == "") {
		alert("Please type the value of the image into the text box.");
		form.captchaText.focus();
		form.captchaText.select();
		return false;
	}
	
	return true;
}