  <script type="text/javascript" src="scripts/tiny_mce/tiny_mce.js">
  </script>
  <script type="text/javascript">
  tinyMCE.init({
	mode : "exact",
	elements: "foreword_text",
	theme: "advanced",    
	plugins : "style,insertdatetime,preview,searchreplace,contextmenu,paste,nonbreaking",
	theme_advanced_buttons1_add : "fontselect,fontsizeselect",
	theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
	theme_advanced_buttons3_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
	theme_advanced_buttons3_add : "styleprops,nonbreaking",
	theme_advanced_buttons4 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_path_location : "bottom",
	theme_advanced_disable : "image",
	content_css : "example_full.css",
	plugin_insertdate_dateFormat : "%Y-%m-%d",
	plugin_insertdate_timeFormat : "%H:%M:%S",
	extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
	external_link_list_url : "example_link_list.js",
	external_image_list_url : "example_image_list.js",
	file_browser_callback : "fileBrowserCallBack",
	theme_advanced_resize_horizontal : false,
	theme_advanced_resizing : true,
	nonbreaking_force_tab : true,
	apply_source_formatting : true,
	relat2ive_urls : false,
	rem2ove_script_host : false

  });
  function fileBrowserCallBack(field_name, url, type, win) {
	// This is where you insert your custom filebrowser logic
	alert("Example of filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type);
	// Insert new URL, this would normaly be done in a popup
	win.document.forms[0].elements[field_name].value = "someurl.htm";
  }
  </script>

  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <form action="controllers/inputController.php" method="post" name="systemform" id="systemform" enctype="multipart/form-data">
  <tr valign=top>
  <td valign=top width=150 class=formlabel>
  Welcome Note Text
  </td>
  <td valign=top width=610 class=formvalue>
  <input name="foreword_pkey" type="hidden" id="foreword_pkey" value="<?=$welcomenote_data['foreword_pkey'];?>">
  <? 
  //include_once('hdr_editorbar.php');
  //include_once('obj_editorbar.php');
  //$any = editor_printbar("foreword_text"); 
  ?>
  <!--textarea name="foreword_text" id="foreword_text" cols=80 rows=30 onSelect="return storeCaret(this);" onClick="return storeCaret(this);" onKeyup="return storeCaret(this);"><?=$welcomenote_data['foreword_text'];?></textarea-->
  <textarea name="foreword_text" id="foreword_text" cols=80 rows=30><?=$welcomenote_data['foreword_text'];?></textarea>
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>
  Background Picture
  </td>
  <td valign=top width=610 class=formvalue>
  <input type="file" name="foreword_background" size=70>
  <br>
  <?
  if ($welcomenote_data['foreword_backgroundpkey']!="") {
    $mypicturefile=image_getfilename($welcomenote_data['foreword_backgroundpkey']);
    echo "<img src='images/".$mypicturefile."' width=140 height=200 border=0>";
  }
  ?>
  </td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>
  Photo Picture
  </td>
  <td valign=top width=610 class=formvalue>
  <input type="file" name="foreword_photo" size=70>
  <br>
  <?
  if ($welcomenote_data['foreword_photopkey']!="") {
    $mypicturefile=image_getfilename($welcomenote_data['foreword_photopkey']);
    echo "<img src='images/".$mypicturefile."' width=140 height=200 border=0>";
  }
  ?>
  </td>
  </tr>
  <input name="job" type="hidden" id="job" value="">
  </form>
  </table>

