Nicola,
If you are using JEDI-SDL, in the OpenGL directory you should find Mike Lischke's excellent Geometry.pas file which has all sorts of 3D functions including Quaternions.

IHTH.