ENTANGLEMENT, PURITY AND VIOLATION OF BELL INEQUALITY