Let
α = right ascension
δ = declination
Suppose one object is at coordinates (α1,δ1) and the other is at (α2,δ2). The angle D between the two is given by
cos D = sin δ1 sin δ2 + cos δ1 cos δ2 cos (α1 - α2)
You find D by taking the arc-cosine of the right side, and D will be between 0 and 180 degrees. (Of course, if D=10 degrees, another solution is D=350 degrees. These are the short and long paths along the great circle that passes through the two points.)
This formula can be derived easily by forming a triangle consisting of the two objects and the north celestial pole, and applying the rules of spherical trigonometry (specifically, the law of cosines for three sides and an angle).
http://en.wikipedia.org/wiki/Spherical_law_of_cosines
Instead of using the above formula, you might use this online calculator:
http://celestialwonders.com/tools/starAngleCalc.html