// Allow only numbers
var IE = /*@cc_on!@*/false;
function onlyDigits(e, allowKey) 
{
    var _ret = true;
    var charCode = (e.which) ? e.which : event.keyCode;

    if ((charCode < 46 || charCode > 57) && (charCode != allowKey)) {
        _ret = false; 
    
        // IE
        if(IE){
            event.keyCode = 0;
        } // All others
        else {
            // backspace in Firefox
            if (charCode != 8 ) {  
                e.preventDefault();
            }
        }
    }
    return (_ret); 
}
function noEntry(e)
{
    // IE
    if(IE){
        e.returnValue = false;
    } // All others
    else { 
        e.preventDefault();
    }
}
