If you destroy all crates on certain levels, you will unlock a colored gem. There are some levels were you can't destroy all crates without use of a colored gem. (i.e. You cannot destroy all crates on the Jungle Rollers level without the green gem.)
Enter these codes at the passowrd screen.