- '<center><b>'.
- '<FORM name=rfc822 action="message_details_download.php?savemessage=1&passed_id='."$passed_id".'" METHOD=POST>' .
- '<input type="button" value="' . _("Print") . '" onClick="printPopup()">   '.
- '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">  '.
- '<input type="submit" value="' . _("Save Message") . '"> '.
- '<input type="hidden" name="mailbox" value="'. "$mailbox" . '"> ' .
- '</form>'.
- '</b>'.
+ '<div style="text-align: center;">' .
+ addForm(SM_PATH . 'src/download.php', 'GET').
+ addHidden('mailbox', $mailbox).
+ addHidden('passed_id', $passed_id).
+ addHidden('ent_id', $passed_ent_id).
+ addHidden('absolute_dl', 'true').
+ (checkForJavascript() ?
+ '<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
+ '<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" /> ' :'').
+ addSubmit(_("Save Message")).
+ '</form></div>'.