<?php $cs->registerScript("isNumberKey", " function isNumberKey(evt,num=0) { 
            console.log('is-number-key'); 
            var charCode = (evt.which) ? evt.which : evt.keyCode; 
            /*added by jisha for checking already hav decimal---start----*/
            var non_decimal_flag=true;
            if(charCode==46){
                if(num.includes('.')){
                    non_decimal_flag=false;
                }
            }
            /*added by jisha for checking already decimal --end--*/
            if ((charCode > 31 && (charCode < 48 || charCode > 57) && charCode !== 46 && charCode !== 37 && charCode !== 45  && charCode !== 8 && charCode !== 35) ||!(non_decimal_flag)) {
                return false;
            }
            return true; 
        }", CClientScript::POS_HEAD); ?>