﻿// JavaScript Document

function count_change(form)
{
Msg     = form.smsbody.value;
Msglen  = Msg.length;
MaxLen  = 160;
        if ( Msglen > MaxLen ){ form.smsbody.value=Msg.substring(0,MaxLen);}
        form.cnt.value = (MaxLen - form.smsbody.value.length);
}
function msg_info(form)
{
str     = "Dlina SMS: "+form.smsbody.value.length;
        alert(str);
}

