<script type="text/javascript">
var limitNum = 250;
var message = 'You are not able to type more than ' + limitNum + ' characters!';
var counter = $get('counter');
function LimitLength(mode)
{
var rtfEditor = $find("<%=RadEditor.ClientID %>");
if (mode == 2){
var oValue = rtfEditor.get_textArea().innerHTML.trim().length;
}
else{var oValue = rtfEditor.get_html(true).trim();}