def check_duration_element_proc(element, policy, name, filename)
duration = element.text
last_digit = duration[duration.length-1, 1].downcase
if (last_digit == "m" && !(/T/=~duration))
log(LOG_WARNING, "In #{(policy == "conf.xml") ? 'Configuration' : 'policy ' + policy + ', '} M used in duration field for #{name} (#{duration})" +
" in #{filename} - this will be interpreted as 31 days")
end
if (last_digit == "y")
log(LOG_WARNING, "In #{(policy == "conf.xml") ? 'Configuration' : 'policy ' + policy + ', '} Y used in duration field for #{name} (#{duration})" +
" in #{filename} - this will be interpreted as 365 days")
end
end