Extended index of a quadratic form