﻿// JScript File


 function CheckMaxLength(e, txt,max) 
         {
             
             if (txt.value.length >= max && e.keyCode != 8)
             {
                txt.value = txt.value.slice(0,max);
                alert('Maximum length is ' + max);
                
               return false;
             }
             else
             {
               return true;
             }
         } 
     

