// JavaScript Document
function editbox(){
	document.editfrm.flag.value=1;
	document.editfrm.submit();
}

function subeditbox(){
	document.subeditfrm.subflag.value=1;
	document.subeditfrm.submit();
}

function update(){
	document.htmlfrm.submit();
}

function cancel(){
	document.htmlfrm.cancel.value=1;
	document.htmlfrm.submit();
}

function logout(){
	document.logoutfrm.submit();
}

function FCKeditor_OnComplete( editorInstance )
{
	editorInstance.Events.AttachEvent( 'OnBlur'	, FCKeditor_OnBlur ) ;
	editorInstance.Events.AttachEvent( 'OnFocus', FCKeditor_OnFocus ) ;
}

function FCKeditor_OnBlur( editorInstance )
{
	editorInstance.ToolbarSet.Collapse() ;
}

function FCKeditor_OnFocus( editorInstance )
{
	editorInstance.ToolbarSet.Expand() ;
}
