function keyp(e, from, to) {
    var acceptedkey = false;
    var isNN4up = (window.Event) ? true : false;
    if (isNN4up) {
        var whichKey = e.which;
        if (whichKey == 8 || whichKey == 0)
            acceptedkey = true;
    }
    else
    { var whichKey = window.event.keyCode; }
    
    return ((whichKey >= from && whichKey <= to)|| acceptedkey);
}
