﻿<!--
   var smsLength = parseInt('2000');

   function CheckInputWordCount()
   {
    //检查字数
    CheckInputWord(1);
   }  
   function CheckInputWord(needAlert)
   {
      //检查字数
    var word = document.getElementById("tbContent").value;
    var num = word.length;
    if (num <= smsLength)
    {
     document.getElementById("fontInputed").innerText = num;
     document.getElementById("fontLeaved").innerText = smsLength-num;   
    }
    else
    {
     //去掉该汉字
     document.getElementById("tbContent").value = document.getElementById("tbContent").value.substring(0,smsLength);
     if (needAlert == 1)
     {
     //对象失去焦点，同时弹出
        document.getElementById("tbContent").blur();
        alert("The Most is "+smsLength+" Bytes !");
     }
    }
   }
-->