Corrections:

mysql_..php
req_lock : Escape the para_data


=====================================================================================================
// editor/plugins/samples/fckplugins.js

/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2007 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * This is a sample plugin definition file.
 */

// Here we define our custom Style combo, with custom widths.
var oMyBigStyleCombo = new FCKToolbarStyleCombo() ;
oMyBigStyleCombo.FieldWidth = 250 ;
oMyBigStyleCombo.PanelWidth = 300 ;
FCKToolbarItems.RegisterItem( 'My_BigStyle', oMyBigStyleCombo ) ;


// ##### Defining a custom context menu entry.

// ## 1. Define the command to be executed when selecting the context menu item.
var oMyCMCommand = new Object() ;
oMyCMCommand.Name = 'SuggestList' ;

// This is the standard function used to execute the command (called when clicking in the context menu item).
/*******************************************************
// This method opens a dialog window using the standard dialog template.
oMyCMCommand.Execute = function( dialogName, dialogTitle, dialogPage, width, height, customValue, parentWindow, resizable )
{
//	,'Suggested Word','../editor/plugins/samples/get_suggested_words.html?name=1',300,400);
	// Setup the dialog info.
	var oDialogInfo = new Object() ;
	oDialogInfo.Title = dialogTitle ;
	oDialogInfo.Page = dialogPage ;
	oDialogInfo.Editor = window ;
	oDialogInfo.CustomValue = customValue ;		// Optional

	var sUrl = FCKConfig.BasePath + 'fckdialog.html' ;
	this.Show( oDialogInfo, 'Suggested Word', sUrl, 300,400, parentWindow, resizable ) ;
}

===================================================*/
oMyCMCommand.Execute = function()
{

//	alert(FCKSelection.GetSelectedElement() );
	var tag = FCKSelection.GetParentElement();
//	alert(tag);
//	alert(FCKSelection.GetType());
//	alert("FCKSelection.GetSelectedElement"+FCKSelection.GetSelectedElement() );
	alert(tag.innerHTML);
	//var oCommand = new FCKDialogCommand( 'Anchor','Misspelled_word','',370, 170);
	var dg= new Object();
	dg=FCKDialog;
	
//	alert(dg);
// Send input as query string..return using this.returnValue
// 
	//FCK.EditorWindow.showModalDialog("test.html");
//k	var return_val=dg.OpenDialog('Suggested Word','Suggested Word','../editor/plugins/samples/get_suggested_words.html?name=1',300,400,"testing");
//k	alert(dg.GetE('te'));
//	alert("FCKDIALOG "+ oDialogInfo);
//	alert(oCommand);
	tag.innerHTML = "Hi ";
	
	// Get the actual selected tag (if any).
//	var oTag, sTagName ;

	// The extra () is to avoid a warning with strict error checking. This is ok.
//	if ( (oTag = FCKSelection.GetSelectedElement()) )
//		sTagName = oTag.tagName ;
		
//	alert("s " +sTagName);
//	alert(FCK.ContextMenu._InnerContextMenu.OnItemClick);
}

// This is the standard function used to retrieve the command state (it could be disabled for some reason).
oMyCMCommand.GetState = function()
{
	// Let's make it always enabled.
	return FCK_TRISTATE_OFF ;
}

// ## 2. Define the context menu "listener".
var oMyContextMenuListener = new Object() ;

// This is the standard function called right before sowing the context menu.
oMyContextMenuListener.AddItems = function( contextMenu, tag, tagName )
{
	var tag = FCKSelection.GetParentElement();
	if ( tag.tagName == 'FONT' )
	{
		FCK.ContextMenu._InnerContextMenu.RemoveAllItems() ;
		contextMenu.AddSeparator() ;
		contextMenu.AddItem(  'Suggested Words' ) ;
		contextMenu.AddItem(  'Testing' ) ;
//		contextMenu.AddItem( 'SuggestList', 'Suggested Words' ) ;
//		contextMenu.AddItem('SuggestList','testing....');
	} 
}


FCK.ContextMenu._InnerContextMenu.OnItemClick=function(item)
{

	FCK.Focus();

	var tag = FCKSelection.GetParentElement();
	tag.innerHTML = item.Name +" ";
}

// ## 3. Register our context menu listener.
FCK.ContextMenu.RegisterListener( oMyContextMenuListener ) ;


=====================================================================================================
/* Highlight all button is clicked 
function highlight()
{
//Kausalya: var bodyText=GetWPEditorText();
	var bodyText=getEditorDOMtext();
	alert(bodyText);
	// "Highlight Key" button is clicked
	if(document.getElementById('search_highlight').value=="Highlight Key")
	{
		if(bodyText!="")
		{
			var search_key=prompt("Enter the search key","key word or phrase");
			if(search_key=="")
			{
				alert("Invalid search key value");
				append_message("Invalid search key value");
			}
			else if(search_key=="null")
			{
				// Cancel button is clicked	
			}
			else
			{
				SetWPEditorText(doHighlight(bodyText, search_key));
				document.getElementById('search_highlight').value="Cancel Highlight";
			}
		}
		else
		 append_message("Cannot Highlight text. No file is opened.");
	 }
	 else
	 {
		document.getElementById('search_highlight').value="Highlight Key";
		var text= GetWPEditorText() + "";
		text = text.replace("\n","");
		text=text.replace(/<font style=\"color: blue; background\-color: yellow;\">/g,"");
		text=text.replace(/<\/font>/g,"");
		SetWPEditorText(text);
	 }
}*/


===================================================

// highlight
			// Get the editor instance that we want to interact with.
			var oEditor = parent.editorFrame.editor;
			// Get the Editor Area DOM (Document object).
			var oDOM = oEditor.EditorDocument ;
			var iLength ;

			// The are two diffent ways to get the text (without HTML markups).
			// It is browser specific.
			if ( document.all )		// If Internet Explorer.
			{
				iLength = oDOM.body.innerText.length ;
				alert("IEEe");
			}
			else					// If Gecko.
			{	

				var r = oDOM.createRange();
				r.selectNodeContents( oDOM.body ) ;
				iLength = r.toString().length ;
				alert("str:" +r.toString());
			}

//			alert( 'Actual text length (without HTML markups): ' + iLength + ' characters' ) ;
					

=====================================
// left_operations

  </p>
  <label>
  <input name="search_prev" type="button" id="search_prev" value="&lt;&lt; Previous" />
  </label>
  <label>
  <input name="search_next" type="button" id="search_next" value="Next &gt;&gt;" />
  </label>
  
  
  
  <table width="100%" height="100%">
  <tr>
    <label>Search Keyword </label>

    <input type="text" name="search_key" value="Enter keyword" onfocus="this.select();" size="15" />
    <label>
	<input name="go_search" type="button" id="Search" value="Go" />
    </label>
  <label>
  <input name="search_highlight" type="button" id="search_highlight" value=" Highlight All" />
  </label>
  <label>
  <input name="search_reset" type="button" id="search_reset" value=" Cancel " />
  </label>
</table>



=====================================
// Editor_frame.html
============================================
<body >
<form name="editor_form">
  <textarea name="MyTextarea" cols="100" rows="100" id="MyTextarea">This is <b>the</b> initial value.</textarea>
  </form>
  <script type="text/javascript">
		//	var targetLayer = document.getElementById("myeditor");
			// Previous pattern....- next 2 steps
//			var myFCKeditor = new FCKeditor("text_area");
//			targetLayer.innerHTML = myFCKeditor.CreateHtml();

// Next 2 lines commented.--- config setting
		//	myFCKeditor.Config[" CustomConfigurationsPath"] = "/CustomSettings/MyCustomConfig.js"
		//	document.getElementById("myeditor").style.wordWrap="break-word";
		
		
		/*  
			Create textarea dynamically...
		    var textarea=document.createElement('textarea');
			textarea.setAttribute('id',"text_area");
			textarea.setAttribute('name',"text_area");
			targetLayer.appendChild(textarea);
			var myFCKeditor = new FCKeditor("text_area");
			myFCKeditor.ReplaceTextarea();
			*/


		</script>

</body>
</html>
=================================================
<script type="text/javascript">
			window.onload = function()
			{
			var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
			var sBasePath="../fckeditor/";
			oFCKeditor.BasePath=sBasePath;
			oFCKeditor.Height=415;
			oFCKeditor.ToolbarSet	= 'Basic' ; // or 'Default'
		/*	var sSkin = 'office2003';
			var sSkinPath = sBasePath + 'editor/skins/' + sSkin + '/' ;
	     	oFCKeditor.Config['SkinPath'] = sSkinPath ;
			oFCKeditor.Config['PreloadImages'] =sSkinPath + 'images/toolbar.start.gif' + ';' +sSkinPath + 'images/toolbar.end.gif' + ';' +sSkinPath + 'images/toolbar.buttonbg.gif' + ';' +sSkinPath + 'images/toolbar.buttonarrow.gif' ;*/
			oFCKeditor.ReplaceTextarea() ;
	
			}
		</script> 
		
=====================================================

02/23/08
<div id='user' style="height:auto">
		<b><label id='user_label' ></label></b>
		<label id="logout_symbol_1">, [</label> 
		<a name="logout_link" onclick="logout()" id="logout_link_id"><u><span style="cursor:pointer">
logout</span></u></a><label id="logout_symbol_2">]</label><br/> 
		<label id='display_filename'></label><br/><label> Messages: </label><br/>
<!--
		<div id='msg_textarea'>-->
		<textarea rows="4" cols="26" readonly="readonly" wrap="soft" style="background-color:EEFFEE; border: groove #0000CC;  overflow:auto; font-size:12px; color:#000099" ></textarea>		
	</div>