/**
 * @method validateRVSearchForm - Validate the RV search form, alert any errors. Return true if validation successful.
 * Validation is fairly simple: 
 *	- If yearTo is defined then yearFrom should be empty, or less then yearTo.
 * @since 2010-02-23
 * @author gregs 
 */
function validateRVSearchForm(form) {

	/* Check yearFrom / yearTo */
	var yearFrom = form.yearFrom.value;
	var yearTo = form.yearTo.value;
	
	if (yearTo.length && yearFrom.length) {
		if (yearFrom > yearTo) {
			alert('Please select an minimum RV year that is less than the maximum year.');
			return false;
		}		
	};
	
	return true;
}
