﻿// JScript File

function showCount(x,y,Limit)
{
    if (x.value != null)
    {   
        var left = Limit - x.value.length;        
        var countBox = document.getElementById(y)
        countBox.value = left;
        if (left < 0)        
            left = 0
        
        if (left == 0)        
            countBox.style.color="red";
        else
            countBox.style.color="black";
        
            countBox.value = left;
    }
}
