</td>
										</tr>
									</table>
								</td>
								<td style="border: 0px;">
									<p>
										Email <a href="mailto:support@sailthru.com">support@sailthru.com</a> for any help you may need!
									</p>
								</td>
							</tr>
						</table>					
					</form>
				</p>
			<?php 
} elseif ($action == 'forms') {
    $sailthru_forms = sailthru_form::get_forms();
    ?>
				Edit Forms | <a href="options-general.php?page=sailthru&action=blast">Send an Email Blast</a>| <a href="options-general.php?page=sailthru&action=options">General Options</a> | <a href="options-general.php?page=sailthru&action=datafeeds">Manage Datafeeds</a>
			<?php 
    if (isset($_GET['form_id']) && $_GET['form_id']) {
        $form_id = $_GET['form_id'] == 'new' ? false : $_GET['form_id'];
    } else {
        $form_id = false;
    }
    try {
        $form = new sailthru_form($form_id);
    } catch (Exception $e) {
        echo '<br />';
        echo '<span style="color: red; font-weight: bold;">';
        echo "Error: {$e->getMessage()}";
        echo '</span>';
 function get_sailthru_form($form_id)
 {
     $sailthru_forms = sailthru_form::get_forms();
     if (isset($sailthru_forms[$form_id])) {
         $form = new sailthru_form($form_id);
         return $form->get_form();
     }
     return '';
 }