function TextInput_onchange() {



}

function textCounter(field, countfield, maxlimit)
{

    if (field.value.length == 0 ) 
    {
        field.style.background="White";
    }
    else if (field.value.length > maxlimit) 
    {
        field.value = field.value.substring(0, maxlimit);
        field.style.background="red";
    }
    else
    {
        countfield.value = maxlimit - field.value.length
        field.style.background="#DBDCF0";
    }
}



function SetBackgroundColor(field)
{

    if (field.value.length == 0 ) 
    {
        field.style.background="White";
    }
   
    else
    {

        field.style.background="#DBDCF0";
    }
}

