function FCKeditor_OnComplete( editorInstance )
{
	window.status = editorInstance.Description    
} 

function FCKTools_SubmitReplacer_hacked(targetObj)
{	
	if (targetObj.updateFCKEditor)
	{
		// Calls all functions in the functions array
		for (var i = 0 ; i < targetObj.updateFCKEditor.length ; i++)
		{
			targetObj.updateFCKEditor[i]() ;
		}
	}
}

function doFckSubmit(form, btnAction, isSubmitForm) {
	if ( btnAction != null )
	{
		// We need the if/else construct below because most forms have an input called
		// 'button', but some (like portalMenuAdminEdit.jsp) have an input called
		// 'siteElement.button'.
		if (form.button != null)
		{
			form.button.value = btnAction;
		}
		
		if (form['siteElement.button'] != null)
		{
			form['siteElement.button'].value = btnAction;
		}
	}
	
	//FCKTools_SubmitReplacer_hacked(form);
	if ( isSubmitForm )
	{
		form.submit();
	}
	return true;
}	

