<script language="JavaScript" type="text/javascript">
<!--
function bounceSubmit(form)
{
    if (form.to.value == '') {
        alert('<?php echo addslashes(_("You must specify a recipient.")) ?>');
        form.to.focus();
        return false;
    }

    return true;
}
//-->
</script>

<form method="post" action="<?php echo Horde::url($_SERVER['PHP_SELF'] . '?uniq=' . uniqid(rand())) ?>" name="compose" onsubmit="return bounceSubmit(this)">
<input type="hidden" name="mailbox" value="<?php echo htmlspecialchars($mailbox) ?>" />
<input type="hidden" name="index" value="<?php echo htmlspecialchars(Horde::getFormData('index')) ?>" />
<input type="hidden" name="actionID" value="<?php echo BOUNCE_MESSAGE ?>" />
<input type="hidden" name="array_index" value="<?php echo Horde::getFormData('array_index') ?>" />
<table border="0" align="center" width="95%" cellpadding="3" cellspacing="2">
<tr class="header">
    <td colspan="2" class="header">
        <b><?php echo $ACTION_TEXT ?></b>
    </td>
</tr>
<tr>
    <td class="light" align="right"><b><?php echo _("To") ?></b>&nbsp;</td>
    <td class="item">
        <input type="text" size="70" class="fixed" tabindex="1" name="to" value="<?php echo $to ?>" />
    </td>
</tr>

<tr>
    <td>&nbsp;</td>
    <td align="center" class="header">
        <input type="submit" class="button" value="<?php echo _("Redirect Message") ?>" />
        <input type="button" class="button" onclick="confirmCancel();" value="<?php echo _("Cancel Message") ?>" />
    </td>
</tr>
</table>

</form>

<br />

<?php if ($browser->hasFeature('javascript')): ?>
<script language="JavaScript" type="text/javascript">
<!--

document.compose.to.focus();

//-->
</script>
<?php endif; ?>
