﻿<!--
   var smsLength = parseInt('500');

   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 !");
     }
    }
   }
-->