function CreatEditor( obj , sBasePath ,height ,width , introduce )
{	
	//$("#"+ obj +"").html("Loading...");
	
	if( !height ) height = 130;
	
	
	
	if( !introduce ) introduce = 'introduce';
	
	var oFCKeditor = new FCKeditor( obj );	
	oFCKeditor.BasePath = sBasePath ; 
	oFCKeditor.DefaultLanguage="en";
	oFCKeditor.Height = height; 
	
	if(!width) oFCKeditor.Width	= $("#"+ obj +"").width() ; 
	else oFCKeditor.Width	= width ;
	
	oFCKeditor.ToolbarSet	= introduce ;
	//$("#"+ obj +"").html("");
	oFCKeditor.ReplaceTextarea();	
	
}

function InserImg(obj,img)
{
	var oEditor = FCKeditorAPI.GetInstance(obj);
	oEditor.InsertHtml('<img src="'+ img +'">');
} 

function FCK_Empty(obj)
{
	var editor = FCKeditorAPI.GetInstance(obj); 
    editor.EditorDocument.body.innerHTML = "";	
}

function FCK_Focus(obj)
{
	var oEditor = FCKeditorAPI.GetInstance( obj );
	oEditor.Focus();
}
