<%def name="ifalert()"> % if msg:

${msg}

% endif