﻿
var oEditer;
//服务器控件CustomValidate验证
function CustomValidate(source, arguments)
{
    var value = oEditer.GetXHTML(true);
    if(value=="")
    {
       arguments.IsValid = false;
    }
   else
   { 
       arguments.IsValid = true; 
   } 
}
//客户端验证
 function ClientValidate(msg)
 {
        var value = oEditer.GetXHTML(true);
        if(value=='')
        {
           var obj = document.getElementById('errorDiv');
           obj.innerHTML="<font color='red'>"+msg+"</font>";
           return false;     
       }
       else
       {
             return true;
       }
  }
function FCKeditor_OnComplete( editorInstance )
{ 
    oEditer = editorInstance;
}

