function get_validation_error_title(nb) {
	if (nb==1) return 'Error:';
	return 'Errors:';
}

function get_validation_error_message(errcode, description, spec) {
	if (errcode==errcode_mandatory) return 'The following field must be filled in: '+description;
	if (errcode==errcode_minlen) return 'The field '+description + ' must contain at least '+spec+' characters';
	if (errcode==errcode_maxlen) return 'the field '+description + ' may not contain more than '+spec+' characters';
	if (errcode==errcode_maxval) return 'The value of the field '+description + ' must be less than or equal to '+spec;
	if (errcode==errcode_minval) return 'The value of the field '+description + ' must be greater than or equal to '+spec;
	if (errcode==errcode_maxvalcheckyear) return 'The value of the field '+description + ' must be greater than or equal to '+spec;
	if (errcode==errcode_minvalcheckyear) return 'The value of the field '+description + ' must be less than or equal to '+spec;
	if (errcode==errcode_invalid) return 'Value invalid for: '+description;
	return 'Internal error =='+errcode;	
}
