function formScoresCheck() {

	error_msg = "";
	guide = $('guide_id').getValue();
	county = $('find_scores_county').getValue();
	grade = $('find_scores_grade').getValue();
	
	$('find_scores_submit').hide();
	$('scores_loading').show();

	if( county == "") {
		error_msg += 'Please select a county.\n';
	}
	
	if( grade == "") {
		error_msg += 'Please select a grade.';
	}
	
	if( error_msg != "") {
		alert(error_msg);
		$('find_scores_submit').show();
		$('scores_loading').hide();
		return false;
	} else {
		//$('find_scores_submit').hide();
		//$('scores_loading').show();
	
		county_grade = county + "/" + grade;
		window.location = "/guides/" + guide + "/" + county_grade;
		//return county_grade;
		return true;
	}
}

//document.observe('dom:loaded', function() {
//  $('find_scores_submit').observe('click', formScoresCheck);
//});

