﻿/* 템플릿에서 사용할 스크립트 추가 */
function FCKeditorRequiredValidate(sender, args)
{
	var editor = FCKeditorAPI.GetInstance(sender.controltovalidate);

	var content = editor.GetXHTML(true);

	editor.Focus();

	args.IsValid = (content == null || content == '') ? false : true;
}

function Comment_Edit(commentID)
{
	$get(Hidden_CommentID_ID).value = commentID;

	var editor = FCKeditorAPI.GetInstance(FCKeditor_ID);
	editor.SetHTML($get('_' + commentID).innerHTML);

	VWebGlobal_ShowPanel('CommentEditFormPanel');

	editor.Focus();
}

function Comment_Cancel()
{
	VWebGlobal_HidePanel('CommentEditFormPanel');
}