- '<center><b>' .
- '<form action="' . SM_PATH . 'src/download.php" method="GET">' .
- '<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="' . urlencode($mailbox) . '" />' .
- '<input type="hidden" name="passed_id" value="' . urlencode($passed_id) . '" />' .
- '<input type="hidden" name="ent_id" value="0" />' .
- '<input type="hidden" name="absolute_dl" value="true" />' .
- '</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>'.