<div class="controls">
                        <label class="checkbox" for="email_ann">
                            <input id="email_ann" class="checkbox" type="checkbox" value="1" name="email_ann" checked> ' . get_lang('EmailOption') . '</label>
                    </div>
                </div>';
    } else {
        if (!isset($announcement_to_modify)) {
            $announcement_to_modify = "";
        }
        $email_ann == '1' || !empty($surveyid) ? $checked = 'checked' : ($checked = '');
        echo '<div class="control-group">
              <div class="controls">
              <input class="checkbox" type="checkbox" value="1" name="email_ann" ' . $checked . '>
              ' . get_lang('EmailOption') . ': <span id="recipient_overview">' . get_lang('MyGroup') . '</span>
              <a href="#" onclick="toggle_sendto();">' . get_lang('ModifyRecipientList') . '</a>';
        AnnouncementManager::show_to_form_group($group_id);
        echo '</div></div>';
    }
    // the announcement title
    echo '	<div class="control-group">
				<div id="msg_error" style="display:none;color:red;margin-left:20%"></div>
				<label class="control-label">
					<span class="form_required">*</span> ' . get_lang('EmailTitle') . '
				</label>
				<div class="controls">
					<input type="text" id="emailTitle" name="emailTitle" value="' . Security::remove_XSS($title_to_modify) . '" class="span4">
				</div>
			</div>';
    unset($title_to_modify);
    $title_to_modify = null;
    if (!isset($announcement_to_modify)) {